Re: Problem with CHMOD
| From: | Stephen | Date: | Mon, 30 Dec 2002 21:49:57 +0000 |
| Subject: | Re: Problem with CHMOD | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129718@lists.php.net to get a copy of this message | ||
Actually, it is like that. I just copied one part, forgot you'd probably
want the file variable and pasted that but accidently below. I read this:
$file = $HTTP_GET_VARS['file'].".html";
chmod($file, 0666);
----- Original Message -----
From: "Chris Garaffa" <aquax@optonline.net>
To: <php-general@lists.php.net>
Sent: Monday, December 30, 2002 4:48 PM
Subject: Re: [PHP] Problem with CHMOD
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.