|
Posted by Koncept on 10/21/06 17:08
In article <4539b70a$0$30255$afc38c87@news.optusnet.com.au>, Siegfreed
<sieg@freed.org> wrote:
> I have XP home edition on my machine. How do I "assign write permissions
> to the file", which is: Complete-Guestbook.php , or any other php file?
>
> Thank you.
You could try the chmod command, but I'm not sure how it would work on
Windoze. I work with UNIX-based machines personally. You could try this
perhaps, but I don't even know if Windows will comprehend it.
<?php
$file = 'Complete-Guestbook.php';
if(is_file($file))
chmod($file,0666) || die('Could not alter file perms.');
else die('file does not exist in '.getcwd());
?>
--
Koncept <<
"The snake that cannot shed its skin perishes. So do the spirits who are
prevented from changing their opinions; they cease to be a spirit." -Nietzsche
Navigation:
[Reply to this message]
|