Re: index page query from PHP newbie
- From: Anonymous <anonymous@xxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 18:35:54 +0200
KiwiBrian wrote:
>
> On my index.html page I wish to have a link called "Today's message" that
> contains a bit of PHP to fetch the message of the day.
> I have this working from a daughter test page which has the extension .php.
> When I implement this link from my Home Page I want the Home Page to still
> be named index.html
> How would I implement my desired operation?
Not at all.
Assuming your page is on a provider's server you do not have access to
the server configuration which you would have to change to get the
server to run .html files through PHP.
This is undesirable behaviour because the server would have to process
all .html pages without PHP code through PHP, not just your page. This
puts a lot of additional stress on a high profile webserver.
Why don't you rename your file to index.php? Most servers are configured
to look for an index.php if there is no index.html or index.htm.
Bye!
.
- References:
- index page query from PHP newbie
- From: KiwiBrian
- index page query from PHP newbie
- Prev by Date: php session tracking and MySQL?
- Next by Date: Where can I find Free Web Hosting that supports PHP/MySql?
- Previous by thread: index page query from PHP newbie
- Next by thread: Re: index page query from PHP newbie
- Index(es):
Relevant Pages
|