|
Posted by Jim Carlock on 11/16/05 03:22
I have a couple easy questions possibly.
1) Is there a default.php page? The webserver seems to
support default.htm, default.html, index.htm and index.html.
It's an Apache server, I'd like to know if a default.php
exists, or how to set it.
2) I'm getting some some strange results...
My doctype.php file contains:
<?php
$sDoc='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html>\r\n<head>\r\n';
?>
My html file contains:
<?php
require('static/doctype.php');
echo($sDoc);
?>
The file is named default.htm. The HTLM presents.
<?php
require('static/doctype.php');
echo($sDoc);
?>
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
-->
So it appears either I need to tell PHP to process html, htm
files or I need to find a way to set the apache server to use
a default.php or whatever. Is that correct?
Pagenames with a ".php" extension do work. Thanks much.
--
Jim Carlock
Post replies to the newsgroup, thanks.
Navigation:
[Reply to this message]
|