Re: PHP problem ->MrSahaf.com

From: Date: Thu, 24 Apr 2003 12:02:46 +0000
Subject: Re: PHP problem ->MrSahaf.com
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145142@lists.php.net to get a copy of this message
if you just want to hide the warning message from showing then you can do: if ($tmpfile[0] < (time()-$cachetime)) { if (@unlink($file)) { $delfiles ++; But that would just be work around. The problem here is that your php script is trying to delete index.html (dont know why do u want to delete the file ?) which cannot be done due to incorrect permissions. Send me your add.class.php and permissions of index.html with owner and group of the file. That could help to resolve the problem. Cheers! Nikunj Virani ----- Original Message ----- From: "Ryan A" <ryan@jumac.com> To: <php-general@lists.php.net> Sent: Thursday, April 24, 2003 5:05 PM Subject: [PHP] PHP problem ->MrSahaf.com > Hi guys, > Have a little problem, I have a guestbook at http://mrSahaf.com > and > everytime someone enters their entry into the guestbook they get this > warning: > > Warning: unlink(index.html) [function.unlink]: Permission denied in > /mrsahaf/public_html/GB2/lib/add.class.php on line 80 > > Here are the lines from 79-81 (I can send you the whole file if needed): > > if ($tmpfile[0] < (time()-$cachetime)) { > if (unlink($file)) { > $delfiles ++; > > Other than that that whole thing is working perfectly....adding to the > guestbook etc etc > How to take out that ugly warning? > > Thanks in advance. > Cheers, > -Ryan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#145142) next »