LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: BuildSmart Date: Tue Apr 15 06:52:50 2008 Subject: Re: Help!
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 Attachment: [text/html]
--Apple-Mail-6-176020826 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFIBKUj0hzWbkf0eKgRAl3FAKDJ2++nlMMLgYE63aHDEmC2NA72gwCgm44X qInIfonqW1jDcGPx0fa58p8= =WBmk -----END PGP SIGNATURE----- --Apple-Mail-6-176020826--
| Navigate in group php.install at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |