index.php vs. index.html

Problems with the Windows version of XAMPP, questions, comments, and anything related.

index.php vs. index.html

Postby mikemoum » 16. February 2009 15:19

php code in index.php works as expected. php code in index.html does not work.

Is there a way to get php code in index.html to work, or does it have to be in *.php?

Thanks,
Mike
mikemoum
 
Posts: 9
Joined: 16. February 2009 04:04

Re: index.php vs. index.html

Postby Wiedmann » 16. February 2009 15:47

Is there a way to get php code in index.html to work

You can adjust AddType in "httpd-xampp.conf".

or does it have to be in *.php?

That's the common practice.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: index.php vs. index.html

Postby mikemoum » 16. February 2009 16:50

Thanks, I appreciate the response.

Mike
mikemoum
 
Posts: 9
Joined: 16. February 2009 04:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 90 guests