cooldude832 Posted November 9, 2008 Share Posted November 9, 2008 I've tried to flag save mode of in .htaccess with no luck getting an error Warning: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid is 32021 is not allowed to access /tmp/lr5JZ3..................... .htaccess tried: php_flag safe_mode off Any ideas? Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/ Share on other sites More sharing options...
genericnumber1 Posted November 9, 2008 Share Posted November 9, 2008 safe mode is an ini system flag, only ini all/ini perder settings can be flagged in an htaccess file. You'll need to change it in your php.ini or your apache httpd config file with "php_admin_flag safe_mode off". edit: but I'd suggest doing so in the php.ini Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686139 Share on other sites More sharing options...
cooldude832 Posted November 9, 2008 Author Share Posted November 9, 2008 can I bypass the dir use open_dir via .htaccess its not my server so I don't want to do too much to it Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686141 Share on other sites More sharing options...
genericnumber1 Posted November 9, 2008 Share Posted November 9, 2008 What do you mean open_dir? the function opendir()? Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686166 Share on other sites More sharing options...
cooldude832 Posted November 9, 2008 Author Share Posted November 9, 2008 you can see the error here http://www.gwaclan.com/stats/ Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686170 Share on other sites More sharing options...
genericnumber1 Posted November 9, 2008 Share Posted November 9, 2008 There's no way to disable safe_mode other than in your php.ini or your apache configuration file. Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686172 Share on other sites More sharing options...
cooldude832 Posted November 9, 2008 Author Share Posted November 9, 2008 which I can't get to so I"m having him discuss it with the server admin thanks Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686186 Share on other sites More sharing options...
corbin Posted November 9, 2008 Share Posted November 9, 2008 Wouldn't it be pointless to easily be able to disable safe mode? lol Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686202 Share on other sites More sharing options...
cooldude832 Posted November 9, 2008 Author Share Posted November 9, 2008 Wouldn't it be pointless to easily be able to disable safe mode? lol You would think so but no its not cause it can only be done via php.ini or httpdconf or what ever it is and most of the time its blocked. Thus why php 6 has no safe_mode Link to comment https://forums.phpfreaks.com/topic/132041-safe-mode-open_dir-issues/#findComment-686263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.