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

Posted by John on 07/29/07 10:46

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");

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.

I rebooted but this does not seem to make any difference. Blank page
shows with

<html>
<head>

And that's where the first require_once sits.

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.

Am I doing something very silly here or have I missed a step?
I also remember I had a problem with the location of the php.ini a
couple of years ago when I did this but I can't remember the solution.

I know this is a common problem for newbies at this stuff but I can't
see an answer here or on Google so apologies if I have missed it.

Thanks for you help.

--
John

 

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

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