PDA

View Full Version : Script code shows instead of results page



Anonymous
02-14-2005, 01:37 PM
The search engine was working great on our demonstration server. Now having moved the files to our client's server (and adjusted URLs in the indexer accordingly), it has stopped working!

When you type in a search term, the page that comes back is just the code from search.php.

I've been assured that the new server has PHP 4.3 installed and activated. Since I assumed a lack of PHP to be the normal cause of what's happening, I was wondering if there are any other things that might be causing this to happen?

Any issues with setting FTP file permissions or setting the path to Perl or anything like that?

TIA

wrensoft
02-14-2005, 07:03 PM
> Since I assumed a lack of PHP to be
> the normal cause of what's happening,

We agree. It is 99% sure this is the case. Either PHP is not installed at all or it is not installed correctly.

Create a very simple PHP page like this, then ask whoever installed the server why the script doesn't work


<html>
<head>
<title>Example</title>
</head>
<body>
<?php echo "Hi, I'm a PHP script!"; ?>
</body>
</html>

----
David
Wrensoft

Anonymous
02-14-2005, 09:20 PM
You're right - that snippet displays code too.

Will get onto them in the morning about it. Thanks for the tip.