Advanced Search

Results 1 to 3 of 3

Thread: Displaying Code to Public Error

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Displaying Code to Public Error

    Hello,

    I have a script installed, and it showed the codes to the public, which is errornous, the script is not suppose to run like this. It actually displays this entire code in the main page of my domain name:

    <?php require_once('includes/config.php');
    $keyword=$mainkeyword;
    $pagetype="contentpage";
    $static_article="index.txt";
    include('includes/pages.php'); ?>

    It is not suppose to work like that. Can anyone please tell me why? Attached is a screenshot.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Have you gone verifying your extension as .php..You might have saved it as .htm/.html.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Do you have PHP on your server?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •