Forum Moderators: coopster

Message Too Old, No Replies

html extension restrictions?

         

askeli

11:39 am on Nov 12, 2004 (gmt 0)

10+ Year Member



Just a quick question, are there any instances when using a .html extension can cause problems with PHP?

reason i ask is when i rename some pages to .html i get array errors which do not occur with .php extensions, all the PHP executes fine other than this.

Thanks

jamie

11:59 am on Nov 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi askeli,

the extension should not make any sort of difference, as long as you have your server set up to parse .html files as .php (using AddHandler in the .htaccess).

are you generating some of the arrays using the full url of the page including the extension? this might cause errors?

askeli

9:44 am on Nov 13, 2004 (gmt 0)

10+ Year Member



oops that seems to be the problem, had '.php' in the script.

Many thanks