LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-12-2010, 02:06 AM   #1
devwink
Member
 
Registered: May 2006
Posts: 49

Rep: Reputation: 15
PHP enabled server won't run a script that works on other servers.


Thanks People,

I have a script that works fine on a commercial server and my CentOs Box at home but doeasn't work with another commercial server (Where we need it to).

I have pulled the PHPINFO.PHP from both and wondering if someone could tell me which parameters to compare when the following happens:

The script seems to do the HTML/Java and outputs the PHP script on the page , but this site has many other PHP scripts working fine:

Last edited by devwink; 03-11-2010 at 04:17 AM.
 
Old 02-12-2010, 02:21 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 991

Rep: Reputation: 30
Must be your PC, works fine on both sites for me, i can see the PHIINFO output for both the sites
 
Old 02-12-2010, 03:14 AM   #3
devwink
Member
 
Registered: May 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks for the reply,
The PHP Info's are fine , its this one that freaks out

http://www.accelerate.info/searchpro/install.php


But it works great here: note that it has alraedy installed so it reads as such.

Http://www.blanket.com.au/searchpro/install.php

Thanks again for your suggestions.
 
Old 02-12-2010, 09:03 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

Check if "short_open_tag=Off" in php.ini and set it to "On".
Restart apache and see if it helps

Regards
 
1 members found this post helpful.
Old 02-12-2010, 10:05 AM   #5
devwink
Member
 
Registered: May 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks bathory,

I remember getting further when finding and replacing <? with <?php

I think yr on the money, will report back
 
Old 02-12-2010, 10:39 AM   #6
devwink
Member
 
Registered: May 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks bathory,
You Da man,,... Case closed.. Thanks again
 
Old 02-12-2010, 04:39 PM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Cool.
If you want, you can mark the thread solved using thread tools

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a script to run netstat on remote servers and return results madpear Programming 3 10-29-2009 10:44 AM
How to run same script on multiples servers s_linux Linux - General 1 07-21-2009 03:52 PM
What is the easiest way to run a shell script in the background on 10 servers? abefroman Linux - Software 3 03-12-2008 10:24 AM
Using PHP to run a script on another server qscomputing Programming 4 04-12-2006 11:49 AM
uploading to a windows iis5.0 php enabled server antken Programming 1 03-15-2003 07:50 AM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration