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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.