Re: [PHP-INSTALL] Help!

[email protected] (BuildSmart)
Newsgroups php.install
Message-ID <[email protected]>
On Apr 13, 2008, at 15:59 PM, Bryan wrote:

> ok, so 1) I should just use the PHP extension and forget about the  
> HTML
> extension?  (I ask this, because, I know I changed the default  
> startup on my
> server to INDEX.PHP, but, if/when I use someone else's server, can  
> I change
> the startup program, or do I somehow have to transfer it from the
> INDEX.HTML?)
>
> I should note, just for others who read this, (atleast in my  
> instance) just
> renaming it to INDEX.PHP doesn't work unless you change the default  
> startup
> to INDEX.PHP
> (again, this is how it worked for me, please correct me if I did  
> something
> wrong, or something I didn't need to?)
>
> I changed:
>
> <IfModule dir_module>
>     DirectoryIndex index.html
> </IfModule>
>
> to:
>
> <IfModule dir_module>
>     DirectoryIndex index.php
> </IfModule>

try:
<IfModule dir_module>
     DirectoryIndex index.php index.html index.htm
</IfModule>

If it doesn't find an index.php it will look for index.html, if it  
doesn't find index.html it will look for index.htm (in the order they  
are listed)

>
> Now, as for the newline stuff, so, basically, I have to include the  
> HTML for
> newlines to get a new line?  Why would they change it to that?   
> that seems
> like an added annoyance?  I mean, maybe it's a good idea, I donno,  
> cause I
> just got into this, I'm just trying to figure things out :)
>
> Thanks for your help......

Whitespaces are ignored in HTML and this includes \r and \n.

Why would you not follow HTML protocol in output since you are  
writing to a browser, don't you want it to be interpreted properly?

Maybe you need to learn a little more about web browsers and HTML  
before you start writing code, what you call annoyance is just your  
lack of understanding on how things work.

>
>
>

-- Dale
PGP.sig (application/pgp-signature, 188 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.