>  I'm trying to improve the admin part of a site and now i must implement 
> some new stuff so here's the question:
>    *how can i delete a file from my server using php?

PHP's unlink() function allows you to delete a file if the web server user
(often "apache") has write access to the file.

http://www.php.net/unlink

>     *i need to get a confirmation before i delete something  any idea of 
> a Java script that can show me a warning with two buttons ?

This google search will display several variations of a technique which I think
will work for you.  It involves the Javascript confirm() function.

http://www.google.com/search?hl=en&q=Javascript+confirm

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester Begins Jan 31 -- New Classes Start Every Few Weeks.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to