473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Need help, PHP5 no errors show and server will not parse php code.

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

Oct 4 '07 #1
4 2387
On Oct 4, 8:28 am, kjsph...@gmail.com wrote:
I jsut installed a newPHP5 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 thephp5
server with the command php_info() it displays thephpinformation.

Now if I copy a file from the php4 server into the php5 root and call
the file it display thephpcode andnotthe php_info information.

A step forward. I copy my entire website from thephp4 tophp5 andhttp://blahblah.index.phpand it show thephpcode it willnotparse
it.

I create a new file and place it in a new directory on thephp5
server and everything works fine. I am so frustrated as I donotknow
what is wrong. I really need help here.

Apache 2.0.5.9PHP5.2.4
Win 20036 SP 1

Anyone have any idea as to why this isnotworking? 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 willnotwork.

I am stumped.

Thanks,

Kev
I have run into the same issue as well, and as you suggested, this is
a very unusual bug, which should not be happening. I wish I could
help, but I cannot explain why the bug is happening. I think that
this one might need to be filed under a bug in Apache 2 or PHP
4.4.0 .

~Huck

Oct 22 '07 #2
kj******@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.
js*******@attglobal.net
==================

Oct 22 '07 #3
On Oct 4, 8:28 am, kjsph...@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 andhttp://blahblah.index.phpand 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
My guess with the way it sounds would be a file ownership/permission
problem, like Jerry had mentioned. when the files are copied to the
new server, they will by default be created as the user doing the
copying being the owner, where they should be setup to have the
correct permissions for the web server user. That would be what I
would check first at least.

Oct 22 '07 #4
On 4 Oct, 14:28, kjsph...@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 andhttp://blahblah.index.phpand 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
Are you using short tags in your old files?

Oct 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
3
by: gustavo | last post by:
Hi, I've just installed apache 2 on windows98 and works fine. Then, I install php5.0.0 beta and works as expected, but some restrictions apply. Im a newbie to php, and I dont know why, when I...
4
by: badbetty | last post by:
Dear Googlers I have installed PHP5 to run on WinXP against Apache 2. It works! ie. I have tested a few simple scripts and a basic xml document parse. I now want to try the XSL extension so I...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
19
by: McKirahan | last post by:
I am working in two environments neither configuration of which I can change; one's my Web host the other a client. My Web host requires the use of the ".php5" extension to use PHP v5.1.4; where...
3
by: Milagro | last post by:
Hello Everyone, I'm trying to debug someone elses php code. I'm actually a Perl programmer, with OO experience, but not in php. The code is supposed to upload a photo from a form and save it...
3
by: k.rollman | last post by:
I am having a problem using cURL to create an https connection on a non-standard port (440). Using curl_setopt to set the port to 440 has no effect, and I get the following from curl's verbose...
5
by: Chuck Anderson | last post by:
I run Apache 2.0.55, and Php (both 4.4.1 and 5.2.5) on my home PC (Windows XP). One of the scripts that I run daily needs to access a secure URL (https://..............). When I am running Php4,...
2
by: redfog | last post by:
I need help writing some code for this procedure: Inventory – Add to Item Listing menu item (15 points). Application users will use this menu as part of the process of entering inventory...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.