RE: [PHP] Execute php script inside an HTML page???
Yes, However, you need to add the .html file extension to the php parser so that it parses the .html file. Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Execute php script inside an HTML page??? Hello all, Can I execute a php script from an HTML document? I mean, with the file named with html extension? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Execute php script inside an HTML page???
This idea sounds very appealing, but remember that PHP will then parse every HTML file. Make certain this won't result in a performance hit. Miles Thompson At 03:43 PM 3/12/2002 -0500, Hunter, Ray wrote: Yes, However, you need to add the .html file extension to the php parser so that it parses the .html file. Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Execute php script inside an HTML page??? Hello all, Can I execute a php script from an HTML document? I mean, with the file named with html extension? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Execute php script inside an HTML page???
If you only have a web account you can download the .htaccess file from your home directory and add the following lines. Whether this will work or not may depend on your host. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Execute php script inside an HTML page??? Hello all, Can I execute a php script from an HTML document? I mean, with the file named with html extension? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Execute php script inside an HTML page???
If you are running apache, open httpd.conf and search for .php (the line where it specifies what types of files are PHP files)... Simply add .html to the list. John -Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 3:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Execute php script inside an HTML page??? Hello all, Can I execute a php script from an HTML document? I mean, with the file named with html extension? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php