|
Posted by Jerry Stuckle on 10/22/07 12:32
kjsphoto@gmail.com wrote:
> I jsut installed a new PHP 5 server as I wanted to keep the php4
> version server running until I change over all the code to work with
> 5.
>
> Here is the problem and for the life of me I cannot figure it out.
>
> If I create a file and put it in the root of apache 2.2 on the php 5
> server with the command php_info() it displays the php information.
>
> Now if I copy a file from the php4 server into the php5 root and call
> the file it display the php code and not the php_info information.
>
>
> A step forward. I copy my entire website from the php 4 to php 5 and
> http://blahblah.index.php and it show the php code it will not parse
> it.
>
> I create a new file and place it in a new directory on the php 5
> server and everything works fine. I am so frustrated as I do not know
> what is wrong. I really need help here.
>
> Apache 2.0.5.9
> PHP 5.2.4
> Win 20036 SP 1
>
> Anyone have any idea as to why this is not working? If I create a new
> folder and a new file it works. If I copy the project from another
> server to this one and then create a new file in that directory I
> copied over, it will not work.
>
> I am stumped.
>
> Thanks,
>
> Kev
>
>
It could be a lot of things - file ownership, for instance. File
permissions may be different.
I doubt this is a PHP bug, though. There is something different between
the files. It's obviously not content; from what you're saying it's not
the filenames/extensions. So look at your file properties on the
scripts to see what they have. And check your Apache configuration for
any differences between the two systems (although I doubt that's the case).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|