Connecting Tech Pros Worldwide Help | Site Map

help with unlink and checkbox

David
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi all..

I need a web page who can delete some files into a web server directory with
a form and checkbox..

can somebody forward me in a right web page ( I look into php.net without
success..) where can study these php features?

cheers.


ZeldorBlat
Guest
 
Posts: n/a
#2: Jul 17 '05

re: help with unlink and checkbox


http://www.php.net/function.unlink

unlink() takes a string as an argument, and deletes the file at that
path. For example, to delete /usr/local/foo/bar.txt, just call:

unlink("/usr/local/foo/bar.txt");

Of course this assumes that permissions are set correctly. You'll
probably need write permissions on the file or directory for the user
account that your webserver runs under.

Closed Thread