Log in

View Full Version : Displaying Code to Public Error



namecomp
04-30-2008, 04:29 AM
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.

rangana
04-30-2008, 04:59 AM
Have you gone verifying your extension as .php..You might have saved it as .htm/.html.

tech_support
04-30-2008, 06:35 AM
Do you have PHP on your server?