Re: [PHP-DB] unlink problems

2009-11-25 Thread Chris
Gunawan Wibisono wrote: kesavan is right !! i see the problem in link.. u type "./blabla.pdf" the main problem is in the "./" remove the "./" unless the file you want to remove are in the root ./ means the current directory. take that out - you still reference the current directory. $ touch

Re: [PHP-DB] unlink problems

2009-11-25 Thread Gunawan Wibisono
kesavan is right !! i see the problem in link.. u type "./blabla.pdf" the main problem is in the "./" remove the "./" unless the file you want to remove are in the root On 11/25/09, Kesavan Rengarajan wrote: > Looks like the PDF is not in the admin directory. Try to use the full > path to the

Re: [PHP-DB] unlink problems

2009-11-25 Thread Kesavan Rengarajan
Looks like the PDF is not in the admin directory. Try to use the full path to the PDF file and also check the permissions on the file. Sent from my iPhone On 25/11/2009, at 9:22 PM, Neil Jackson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I use the following to delete a file o

[PHP-DB] unlink problems

2009-11-25 Thread Neil Jackson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I use the following to delete a file on a webserver if( unlink( "./$filename" ) ) { echo $filename." deleted "; $action=''; echo "document.location.href='$PHP_SELF?action=$action&code