note 45263 added to features.safe-mode
| From: | Russ at osu1 dot php dot net | Date: | Tue, 31 Aug 2004 15:52:38 +0000 |
| Subject: | note 45263 added to features.safe-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75750@lists.php.net to get a copy of this message | ||
Sometimes you're stuck on a system you don't run and you can't control the setting of
safe mode. If your script needs to run on different hosts (some with safe mode, some without it),
you can code around it with something like:
<?php
// Check for safe mode
if( ini_get('safe_mode') ){
// Do it the safe mode way
}else{
// Do it the regular way
}
?>
----
Manual Page -- http://www.php.net/manual/en/features.safe-mode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45263
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45263&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45263&report=yes
Search -- http://master.php.net/manage/user-notes.php