Hi guys, I have to write a PHP maintenance program for trimming a website database (MySql). The page will have an input field for a master record number, after validation it then will delete records in a transaction file together with an image stored in another sub-directory. The image name is obtained from the record that is deleted.
Amongst others, I have tried doing the following: $homedir = "http://www.mysite.com/clnt_images/"; $images= $recimage; /* image id is obtained from record */ $userfile= $homedir.$images; unlink ("$userfile"); The error message I get is: Warning: unlink(http://www.mysite.com/clnt_images/tel.gif) [function.unlink]: Invalid argument It needs to work on a Win server as well as Linux. Could you please suggest an alternative? TIA! Peet Office: (021) 422 4195 Cellular: 072 337 6727 This message (including attachments) may contain information that is privileged, confidential or protected from disclosure. If you are not the intended recipient, you are hereby notified that dissemination, disclosure, copying, distribution or use of this message or any information contained in it is strictly prohibited. If you have received this message in error, please immediately notify the sender by reply e-mail and delete this message from your computer. Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
