Re: Problem with CHMOD
| From: | Chris Garaffa | Date: | Mon, 30 Dec 2002 21:48:27 +0000 |
| Subject: | Re: Problem with CHMOD | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129717@lists.php.net to get a copy of this message | ||
On Monday, December 30, 2002, at 04:34 PM, Stephen wrote:
I'm running the CHMOD function and I get this error: Warning: chmod() [function.chmod]: Permission denied in c:\inetpub\wwwroot\chatness2\admin\save.php on line 13 I'm running IIS 5 which may be causing it. Here's my code: chmod($file, 0666); $file = $HTTP_GET_VARS['file'].".html";Hm. It looks like you're trying to chmod a variable that hasn't been defined yet. Try switching your statements, so that you have: $file = $HTTP_GET_VARS['file'].".html"; chmod($file, 0666); And let us know what happens. -- Chris Garaffa <aquax@optonline.net> http://moondrop.heli0s.net -- coming whenever heli0s pays his bill If you give someone a program, you will frustrate them for one day. If you teach someone how to program, you'll frustrate them for a lifetime.