LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 01: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 03:17 AM.
 
Old 02-12-2010, 01:21 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

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, 02: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, 08:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 09: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, 09: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, 03:39 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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

Cheers
 
  


Reply



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 09:44 AM
How to run same script on multiples servers s_linux Linux - General 1 07-21-2009 02: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 09:24 AM
Using PHP to run a script on another server qscomputing Programming 4 04-12-2006 10:49 AM
uploading to a windows iis5.0 php enabled server antken Programming 1 03-15-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration