homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Simple yet Old PHP file not working on new server
PHP, php.ini, Fedora core 7, php 5, plesk, modules
tommy2step




msg:3618525
 9:23 pm on Apr 3, 2008 (gmt 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

 

henry0




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

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...

tommy2step




msg:3618598
 11:47 pm on Apr 3, 2008 (gmt 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

tommy2step




msg:3618721
 3:31 am on Apr 4, 2008 (gmt 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

jatar_k




msg:3618863
 9:03 am on Apr 4, 2008 (gmt 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

surrealillusions




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

>> My server tells me to f my self

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

PHP_Chimp




msg:3619010
 1:02 pm on Apr 4, 2008 (gmt 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.

MRaja




msg:3619196
 3:44 pm on Apr 4, 2008 (gmt 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 ;)

tommy2step




msg:3619433
 8:18 pm on Apr 4, 2008 (gmt 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

tommy2step




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

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

Any ideas?

henry0




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

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?

jatar_k




msg:3619552
 10:01 pm on Apr 4, 2008 (gmt 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

tommy2step




msg:3624905
 7:43 pm on Apr 11, 2008 (gmt 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?

tommy2step




msg:3626772
 9:20 pm on Apr 14, 2008 (gmt 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?

BananaFish




msg:3626844
 10:22 pm on Apr 14, 2008 (gmt 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.

tommy2step




msg:3628572
 8:53 pm on Apr 16, 2008 (gmt 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 :(

tommy2step




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

any other insights?

ty

henry0




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved