Hi ppl,
Am facing a strange problem with php3 installed on iplanet 6.0 Webserver.
We have installed php with following options:
./configure '--with-xml' '--enable-discard-path' '--enable-track-vars=yes' '--enable-sysvshm=yes' '--enable-sysvsem=yes'
The php3.ini is as follows:
#########################################
doc_root=/ecomm/iplanet/nes60/product/docs
safe_mode=on
safe_mode_exec_dir=/usr/local/bin
#########################################
The sample program kk.php is as below:
test.php lies in
doc_root which is /ecomm/iplanet/nes60/product/docs
########################################
<?
require("/test.php");
?>
########################################
Now if I have safe_mode=on in php3.ini and restart the Webserver this file kk.php executes perfectly because somehow test.php gets prefixed by the doc_root path.
On the other hand in case if I have safe_mode=off and try to do the same I get an error saying that the file does not exist. In this case if I specify the path explicitly i.e., the program becomes as below: the program runs fine without any errors.
kk.php
########################################
<?
require("/ecomm/iplanet/nes60/product/docs/test.php");
?>
########################################
Could someone please tell me whether this is normal php3 behaviour becasue I am not getting this problem with php4.
We want to enable safe_mode=on for the time being on our php3 application till we upgrade to php4. Is there a way to circumvent this behaviour because otherwise we have to do a lot of code changes to our application.
Any help would be deeply appreciated..,
\Rohit