Jump to content

Is_writable returns nothing


leimeisei

Recommended Posts

You sure the file/directory is on that server?

 

also, if it's returning "nothing" then perhaps you should post the code context it is in.  Perhaps a condition is not being met or something.  Or...from the manual:

Keep in mind that PHP may be accessing the file as the user id that the web server runs as (often 'nobody'). Safe mode limitations are not taken into account.

 

Did you check that out for that server?

Safe Mode is not enabled for PHP. Also, file_exists, if used with the same file path, returns a true. Here is the code I am using for writability testing:

 

<?php

die( "Status: ".is_writable("pages/default/settings.php"));

?>

 

The output looks like....

 

Status:

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.