Re: PHP problem ->MrSahaf.com

From: Date: Thu, 24 Apr 2003 17:39:46 +0000
Subject: Re: PHP problem ->MrSahaf.com
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145187@lists.php.net to get a copy of this message
Thanks Brad Cheers, -Ryan ----- Original Message ----- From: <bbonkosk@tampabay.rr.com> To: "Ryan A" <ryan@jumac.com> Sent: Thursday, April 24, 2003 9:37 AM Subject: Re: [PHP] PHP problem ->MrSahaf.com > You could supress the warning with an '@' character. > > i.e. if (@unlink($file)) { > Of course there might be some other issue at play that you would want to fix > this instead of just supressing it, but I will leave that to the rest of the > list. > HTH > -Brad > > > 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 (#145187) next »