|
Posted by Jim Carlock on 11/16/05 05:04
"Andrew DeFaria" <Andrew@DeFaria.com> wrote:
> Same way you set default.htm, default.html, index.htm
> and index.html! ;-)
> BTW: Aside from perhaps Win 9X, filenames can
> have more than 3 character extensions so personally
> I'd nix the .htm's. Also default.html is an IIS'ism and
> IMHO has no place in Apache!
Thanks, Andrew.
Yeah, yeah, yeah. <g> I like 8.3 filenames a heck of a
lot better than 48000 character filenames. You caught
onto my Microsoft DOS roots.
The first question I asked... I answer...
"The default.php page name ends up as index.php."
The second message asked for a "default 404 page". I
couldn't quite get a fix on what it was called. Looked it
up though from a site I visited five years ago.
> Seriously though, assuming PHP is configured simply
> add it to the list of DirectoryIndex in your httpd.conf
> file and restart Apache.
:-) Okay that'll give me something to search for. I don't
see the file, "httpd.conf", so is there a .PHP way to read
it? I don't own the server, it's a subscriber issue. I'll start
looking over the apache website in the meantime. Thanks
for the hint.
> HTML files are for static content. PHP files (indicated
> by a suffix of .php) can contain PHP code. You don't
> want to be making Apache parse all your .html files
> looking for PHP!
Why not? Don't answer it. <g> I almost see where you
could go with it.
> You want Apache to only consider .php files as having
> PHP.
And I don't want html to try rendering .php code either.
So I'll stick with the the accepted response that few, if any
one, performs such things.
> Ah, so then PHP is not set up with your Apache server
> then. IOW if you browse to http://<host>/<somefile>.php
> and you have some real executable PHP in there (let's say
> just an echo "Hi mom!") you are not just seeing "Hi mom!".
> That's a different issue that brings up more questions
> like where are you running Apache?
PHP was set up with the server... but I'm not coming from
a PHP background nor a Unix background. I'm coming
from DOS 8.3 / Windows9x / NT. It's a hosted solution.
My Unix experience is almost null. My PHP experience
compares miserably to experience with IIS 5, but
compares favorably to my Unix experience. I ended up
reinstalling Windows 98 on the computer that I toyed with
Unix on in the past. <g>
> What version? Have you installed PHP? Have
> you configured Apache to know about PHP? etc.
The Apache/PHP versions...
Server: Apache/1.3.31 (Unix)
PHP/4.3.11
mod_ssl/2.8.18 OpenSSL/0.9.6b
Thanks much.
--
Jim Carlock
Post replies to the newsgroup, thanks.
Navigation:
[Reply to this message]
|