Old PHP files not working
| From: | Trout, Travis | Date: | Mon, 19 Aug 2002 15:43:36 +0000 |
| Subject: | Old PHP files not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113211@lists.php.net to get a copy of this message | ||
I am having a very weird problem and am not sure if it is the files or the
php parser it self. I currently have a server running Apache 1.3.23, MySQL
3.23.47, and PHP 4.1.1 on Red Hat 7.2. I have another test server that I
have just set up with the latest of the three packages above on RH 7.3.
My problem is that when I copy the files from the old server to this one it
doesn't seem to want to parse all of the .php files. It is a very simple
site. There is a header.php, footer.php, config.php, and a index.php file.
All of the files except for the index.php parse correctly. Although, the
index.php file doesn't want to do anything with the database. It connects
and chooses the database that I want, but when I try to query the db it
doesn't do anything. It doesn't give a warning or an error at all. What is
weird is if I rewrite the code from scratch on the new PC and then run it,
it works fine. I have checked permissions and everything is same between the
two files. Both of the files have been edited and created using either gedit
or vi.
Some of you may be saying that if I can re-type it and it works fine for
such a small site then just re-type it and let it go. The problem is this
site is small, but there are several others and one being 400+ php files
with over 1,000 lines of code and many of the files.
I have attached a copy of the index.php file to see if any of you may be
able to see what is wrong with it.
<<index.php>>
Thank you,
Travis Trout