PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Script code shows instead of results page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script code shows instead of results page

    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

  • #2
    > 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

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

    Comment


    • #3
      You're right - that snippet displays code too.

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

      Comment

      Working...
      X