Forum Moderators: coopster

Message Too Old, No Replies

What's the basic format for a php page?

         

JTrollerb

6:34 pm on Jul 18, 2004 (gmt 0)

10+ Year Member



Hi,

I renamed all my webpages from .htm to .php extension, because I created a navigation menu/header to appear on all pages (with the php extension....called header.php). Ever since I did this, my invisionboard forum members have been telling me that sometimes they receive a white page with the below code on it instead of the forums. Someone told me that you cannot just rename .html or .htm files to .php and expect it all to work 100%. So what exactly do I need to include in each php renamed file, so that it does not confuse the server? Thanks!

<modnote>removed code dump - full page source</modnote>

[edited by: jatar_k at 6:38 pm (utc) on July 18, 2004]

jatar_k

6:41 pm on Jul 18, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Since it is dumping the page cource to screen once in a while it sounds like something is confused in there.

Someone told me that you cannot just rename .html or .htm files to .php and expect it all to work 100%.

I don't necessarily agree with that. It looks like the page isn't being parsed at some point and dumping the source. I would expect this problem going the other way, from php to html.

Are you sure that you remembered to change the extension on all the pages? As well as all the links to those pages?