You are here: Re: PHP Installation Problems « All PHP « IT news, forums, messages
Re: PHP Installation Problems

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация