You are here: Apache Server, PHP, home page « PHP Programming Language « IT news, forums, messages
Apache Server, PHP, home page

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация