Re: Help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 

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 
(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 dir_module>
    DirectoryIndex index.php

<IfModule dir_module>
    DirectoryIndex index.php index.html index.htm

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

Attachment: PGP.sig
Description: This is a digitally signed message part

[PHP Home]     [PHP on Windows]     [Programming PHP]     [Kernel Newbies]     [Why pay for online dating?]     [PHP Users]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]     [PHP Books]

  Powered by Linux