954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Php cgi script

Hi,

i have just transfered to a different host and there servers use CGI Scripts to parse the php code, however the last host didnt and on uploading my site to the new server it is displaying all my code as text after i use include('includes/header.php');

Any help in this matter would be most appreciated.

redous
Newbie Poster
15 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

This is a question of the server configuration, not a PHP question. Apache servers have to be configured so that PHP files (identified by their extensions) are parsed and executed instead of displayed. You will have to ask your provider to change the server settings accordingly.

smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: