questions....
I'm just starting to get the hang of php (only been coding in it for about 4 days now...) and I've come across a potential problem: I can't make an xhtml site with the *.php extension display correctly, it just opens in the browser as an xml tree. I'm not sure if it views correctly on my web server, but I need to see it on my computer for efficient developing. In my http.conf file (I'm using an Apache server) there are these AddTypes and ScriptAlias:
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
AddType application/x-tar .tgz
I've glanced through the php.ini file and I can't find anything there that seems relevent.
This is the head of the file...
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
I don't want to do something dirty like use an xsl sheet to format a xhtml file, but I can't figure out what I'm missing.
I'm using win xp pro sp1, with Apache 1.3.19 and PHP 4.0.4pl1.
I guess it should be noted that when I create standard html files the php runs just fine.
So, please, any ideas on how to have my *.php xhtml files behave more like html and display themselves rather than xml?
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
AddType application/x-tar .tgz
I've glanced through the php.ini file and I can't find anything there that seems relevent.
This is the head of the file...
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
I don't want to do something dirty like use an xsl sheet to format a xhtml file, but I can't figure out what I'm missing.
I'm using win xp pro sp1, with Apache 1.3.19 and PHP 4.0.4pl1.
I guess it should be noted that when I create standard html files the php runs just fine.
So, please, any ideas on how to have my *.php xhtml files behave more like html and display themselves rather than xml?
