|
Posted by J.O. Aho on 07/29/07 12:09
John wrote:
> I am setting up one of my PC's as a server. So far I have loaded
> Apache2.2.4 which works fine across my internal network using the IP
> address of the server. I have also loaded PHP5.2.3 and Mysql5. Simple
> PHP also works on webpages across my new intranet.
>
> However I have a number of sites I would like to run that have been
> developed and work fine over the internet at my ISP. The first page is
> getting stuck at the first line when loading-
>
> require_once ($_SERVER['DOCUMENT_ROOT'] . "/site_data.inc");
In that case you are missing the site_data.inc which should be in the
directory you have configured in Apache to be DocumentRoot for that virtual host.
> Now I remember having a problem with Register_Global's before and have
> modified the php.ini to set this ON. I know this is not recommended
> but access will not outside of the intrnet so there is no security
> issue.
This isn't the issue here, if you enable register globals, you will
automatically get a variable $something if you have a $_REQUEST['something'],
this setting hasn't anything to do with enabling or disabling any of the $_*
global variable arrays, as those you will always be enabled.
> If I comment out this line the code moves on to the next require.
> Since the site works fine I really don't want to plough through the
> code trying variants of the Server variables.
The vode is correct, it's just you how didn't manage to copy all the needed files.
--
//Aho
Navigation:
[Reply to this message]
|