Hi,
I am currently developing on a windows XP machine and upload my code via
subversion to a linux server. All was great, until I just tried to test out
using Zend Studio.
if ($_SERVER['REMOTE_ADDR']=="127.0.0.1" ) {
$base_path="../path/";
}
else {
$base_path="/home/account/public_html/path/";
}
Zend studio didn't like 'REMOTE_ADDR' - Undefined index: REMOTE_ADDR,
which then meant it couldn't include any files and fell over.
I am also having problems using cookies and sessions ..
if ($_SERVER['REMOTE_ADDR']=="127.0.0.1" ) {
session_set_coo kie_params(7200 );
} else {
session_set_coo kie_params(7200 , '/', '.example.com') ;
}
This works fine on server, but not locally.
Any suggestions on whether I am doing the right method?
Thanks
I am currently developing on a windows XP machine and upload my code via
subversion to a linux server. All was great, until I just tried to test out
using Zend Studio.
if ($_SERVER['REMOTE_ADDR']=="127.0.0.1" ) {
$base_path="../path/";
}
else {
$base_path="/home/account/public_html/path/";
}
Zend studio didn't like 'REMOTE_ADDR' - Undefined index: REMOTE_ADDR,
which then meant it couldn't include any files and fell over.
I am also having problems using cookies and sessions ..
if ($_SERVER['REMOTE_ADDR']=="127.0.0.1" ) {
session_set_coo kie_params(7200 );
} else {
session_set_coo kie_params(7200 , '/', '.example.com') ;
}
This works fine on server, but not locally.
Any suggestions on whether I am doing the right method?
Thanks
Comment