PHP Safe Mode
| From: | KEN - 2mediaZone | Date: | Wed, 14 May 2003 03:04:20 +0000 |
| Subject: | PHP Safe Mode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147531@lists.php.net to get a copy of this message | ||
Hello, I'm having a problem about disabling PHP Safe Mode.
I have a dedicated server and I need to disable PHP Safe Mode because of my
shopping cart script.
I edited php.ini and disable PHP Safe Mode as like " safe_mode = Off " and I
restarted web server.
But my test scripts return that PHP Safe Mode is still Enabled.
Is anyone that has experience like this or know about this problem?
By the way my test script is as follows.
<?php
function on_off($var) {
return ($var ? "On" : "Off");
}
$res = ini_get("safe_mode");
$status = (!empty($res) ? 0 : 1);
$ck_res &= $status;
?>
<html>
<head>
<title>Safe Mode Test Script</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
</head>
<body>
<table width=500 border=0 align=left>
<TR>
<TD>PHP Safe mode is ... <? echo on_off(!$status) ?></TD>
</TR>
</table>
</body>
</html>
KEN