You are here: Re: Need help, PHP5 no errors show and server will not parse php code. « PHP Programming Language « IT news, forums, messages
Re: Need help, PHP5 no errors show and server will not parse php code.

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]


Удаленная работа для программистов  •  Как заработать на 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

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