Need help with PHP setup

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

Need help with PHP setup

Postby Toby B. » 07. January 2005 10:26

I am using XAMMP (not the latest version). I need to find out how to setup PHP so that I can use PHP in html pages.

This is what I was told from a friend:
yes you have to add a handler in your php.ini file or in an htaccess file.

looks like this.

AddHandler application/x-httpd-php .html
I would like to use the AddHandler option versus the .htaccess option. But I don't know where the php.ini file is. When setting up the stand alone version of php you copy the php.ini-DIST (or something like that) to php.ini and place it in a designated area....

Did I confuse you yet?

Thanks in advance..
Toby B.
 
Posts: 7
Joined: 21. March 2004 14:18
Location: Maine, USA

Postby Wiedmann » 07. January 2005 12:25

I am using XAMMP (not the latest version). I need to find out how to setup PHP so that I can use PHP in html pages.

In XAMPP, all things are ready to use. PHP inclusive. So, why do you want to setup PHP?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby taustin » 07. January 2005 17:42

I think he's looking to have .html files treated as .php files, which is only dangerous if you don't know what you're doing.

You do that in the http.conf file. Look for:

AddType application/x-httpd-php .php .php4 .php3 .phtml

and add .html at the end.

I don't think you need to change anything in the php.ini file, but if you do, it's in xampp\apache\bin\ (you can always find the php.ini being used by checking phpinfo(). You can find it in the xampp control panel, or just put the following in a php file and navigate to it in your browser:

<?
echo phpinfo();
?>
taustin
 
Posts: 150
Joined: 24. September 2004 00:23
Location: Huntington Beach CA

Postby Toby B. » 09. January 2005 05:32

thanks for the help. I did manage to get it solved... :wink:
Toby B.
 
Posts: 7
Joined: 21. March 2004 14:18
Location: Maine, USA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 36 guests