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?

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.