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 changethe 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 startupto INDEX.PHP(again, this is how it worked for me, please correct me if I did somethingwrong, 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 Ijust 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
Description: This is a digitally signed message part