Welcome to WebmasterWorld Guest from 54.145.69.236

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Simple yet Old PHP file not working on new server

PHP, php.ini, Fedora core 7, php 5, plesk, modules

     
9:23 pm on Apr 3, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts: 9
votes: 0


Hello I have spent years on this forum taking in all the info. I try to contribute but this time I must ask for help.

I have a small little php script that worked on an old 2005 dedicated linux server that worked great.

linux fedora core 2

now my host -(godaddy made me go to a new server)

fedora core 7

This simple little php page just will not work. I am certain it is due to the server is not set up to work on old PHP extensions/versions But I cannot figure out how to change it on the new server.

I have spent weeks reading php.ini file info, php data handling/extension books. And Im still in the dar.

I was hoping some one could help

here is some info to help

OLD Server - data-
----------------Fedorea Core 2 Linux-------from phptest.php results--
PHP Extension 20020429

New Server - data-
---------------Fedorea Core 7 Linux-------from phptest.php results--
PHP Extension 20060613

any ideas, thoughts, or just links to resources would help me tackle this needle in a haystack problem

10:09 pm on Apr 3, 2008 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4407
votes: 5


tommy2step, Welcome to WebmasterWorld!

Hello I have spent years on this forum taking in all the info. I try to contribute but this time I must ask for help.

But you did not spend a few seconds scrolling down the one page before the last one :)

Check that thread [webmasterworld.com]

if it does not help then we will need more details...

11:47 pm on Apr 3, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


Hi Henry0 thank you for the reply yes I did everything in that post too :(

I know its just a stupid setting somewhere but as with all problems until you know where it is its a pain in the rear

3:31 am on Apr 4, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


Any one have any idea what to put in a php 5 php.ini to get php4 php3 pages to show up other than a blank page?

I will tackle this 1 thing at a time a php page that worked on a 2 year old,server does not work on a brand new php 5 server?

Im assuming this is an option in php.ini and not aserver module problem

any ideas anyone. My server tells me to f my self and google code is starting to look like alphabet soup

thank you for any help or hints

9:03 am on Apr 4, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15756
votes: 0


if you're just getting blank pages in your browser some things to look at should be

1. view source in the browser, what do you see? php code?
2. what extension do the files have?
3. do you use short tags, as mentioned in the thread henry0 linked to

11:11 am on Apr 4, 2008 (gmt 0)

Preferred Member

5+ Year Member

joined:Dec 10, 2007
posts:507
votes: 0


>> My server tells me to f my self

I should change hosts then if your host tells you that ;)

1:02 pm on Apr 4, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:July 12, 2007
posts:766
votes: 0


If none of your php is working then ask your host to make sure that php has been enabled for your domain.

Try something really simple (the good old <?php echo 'hello world!';?>) just to test if php is actually there.

If you have any rewrites in your htaccess then comment everything out, so that you are working with a blank system. You can add them back in afterwards.

3:44 pm on Apr 4, 2008 (gmt 0)

New User

5+ Year Member

joined:Apr 4, 2008
posts:3
votes: 0


Most of times the problem is PHP4 ! check to see if changing the <? in the first line or middle of your page to <?php will solve the problem or not. it can be the first problem you are facing to ;)
8:18 pm on Apr 4, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


Hello and thank you so much for your help.

Got a little bit firther. I can now get the page to load. It just will not return the rest of the query in the for of a nested array.

1. As far as the host wish I could - long story - hundreds of sites

2. short and long tags have been tried neither cahnges result

3. the good old <?php echo 'hello world!';?> - indeed gives "hello world result

4. Im guessing their is a syntax problem in php5 with the nested array query result but it works fine on other servers ?

anymore insights would be greatly appreciated

9:07 pm on Apr 4, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


K I can get all the forms to load if I take out the require_once newsoap.php line

Any ideas?

9:47 pm on Apr 4, 2008 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4407
votes: 5


Out of curiosity are you sure that it should not read:

require_once('nusoap.php');

$server = new soap_server; etc ...

if not what is newsoap?

10:01 pm on Apr 4, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15756
votes: 0


maybe when they upgraded the setting for display_errors was set to 'no', which would mean you have been getting a silent error the whole time

you could check to see if the path is right

you could try turning up error_reporting [php.net] and see if that guves you more info

7:43 pm on Apr 11, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


To date all the above have been tried and nothing is showing up the php script is either not calling the soap client or its cannot display the results :(

any one witha simialr problem?

9:20 pm on Apr 14, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


K another update of my problem. I have a php page that calls a soap client in a folder on the same server. This then contacts a supplier's database and returns the results of the query on a php page in an html embedded nested array.

It is not working on php5 server but worked on an older php 3 server any ideas?

10:22 pm on Apr 14, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Sept 7, 2005
posts:242
votes: 0


Chances are your legacy script requires register_globals (and perhaps magic_quotes to prevent sql injection). You can enable this in your php.ini file and it should work.
8:53 pm on Apr 16, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


Hi BananaFish- ya I did both allready? Is there any other PHP setting Im missing? anyone?

Imp aying out the but for 2 dedicated servers right now :(

5:44 pm on Apr 21, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 16, 2007
posts:9
votes: 0


any other insights?

ty

10:41 pm on Apr 21, 2008 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4407
votes: 5


Hold your horses :)
if the script REQUIRES it
then it's time to rework it
all newer PHP versions call for: OFF
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members