Jump to content

Is it safe to keep a directory set to 777?


benphp

Recommended Posts

I'm the owner. I'm using

 

<?php
$fp = fopen($path.$_POST['signup'], 'w') or die("Sorry");
flock($fp, LOCK_EX);
fwrite($fp, $string);
flock($fp, LOCK_UN);
fclose($fp);
?>

 

which works on my windows dev box, but then when I upload it to my Linux server, it doesn't. I have to set the directory to 777. 775 doesn't work - other security settings didn't work.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.