scrubbicus Posted July 26, 2009 Share Posted July 26, 2009 So I'm comfortable with the file functions in PHP to open, lock, write, read, or close a file but I'm wondering if there's anywhere in the php.ini file or another configuration file that might not let fopen() work? On one of my servers I'm not able to open a file and therefore can't write to it, or delete it. I copied the same code I was using and put it on another file on another server and it worked just fine. Can anyone point me to the direction I might need to get to get fopen() to work on this other server? Thanks any help is appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/167522-i-cant-open-a-file-on-this-server/ Share on other sites More sharing options...
ignace Posted July 26, 2009 Share Posted July 26, 2009 safe_mode is probably on Quote Link to comment https://forums.phpfreaks.com/topic/167522-i-cant-open-a-file-on-this-server/#findComment-883393 Share on other sites More sharing options...
scrubbicus Posted July 26, 2009 Author Share Posted July 26, 2009 I was excited that might be it! But I got a screen shot here http://scrubbicus.com/images/safemode.jpg Quote Link to comment https://forums.phpfreaks.com/topic/167522-i-cant-open-a-file-on-this-server/#findComment-883455 Share on other sites More sharing options...
Philip Posted July 26, 2009 Share Posted July 26, 2009 Ummm.... that screenie doesn't have anything to do with php's config file. Just your setup on your server. Create a page with just: <?php phpinfo(); ?> and see if anything might be blocking you Quote Link to comment https://forums.phpfreaks.com/topic/167522-i-cant-open-a-file-on-this-server/#findComment-883456 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.