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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php