| 3:41 pm on May 30, 2002 (gmt 0)|
Most of those questions can be answered by telling you this:
PHP is a server-side scripting environment. The browser, the user (and that includes search engines) will never see one line of your php code.
Whatever your PHP code outputs to the browser will be seen though.
The only thing to avoid is urls like: mysite.com/?id=34&nw=tytyty
because currently only INK and Google will index those pages.
There is no difference in .php or .html as far as I'm aware with regard to ranking.
Hope that helps!
| 3:42 pm on May 30, 2002 (gmt 0)|
1) Search Engines only see the HTML source you see when you do a view source in your browser.
2) Yes, you can place PHP tags anywhere. <? echo $I; ?>
3) Search engines do not care what extension you use. For that matter PHP doesn't care what extension you use either. You may tell PHP to parse HTML files as well.
| 5:23 pm on May 30, 2002 (gmt 0)|
You may tell PHP to parse HTML files as well.
Not to be too picky, but you can't tell PHP to parse HTML - you tell Apache or whatever server you use to send files ending with .html (or whatever) to the PHP parser. These configurations are set in httpd.conf (in Apache) and not in php.ini.
| 5:26 pm on May 30, 2002 (gmt 0)|
You forgot the 'na na na na na na!' Tom
| 5:36 pm on May 30, 2002 (gmt 0)|
Thanks for the help!
| 7:50 pm on May 30, 2002 (gmt 0)|
na na na na na! :)
| 1:04 am on May 31, 2002 (gmt 0)|
A DOC file is something.doc So when I say HTML files I mean something.HTML, I did not say HTML formatted files. I think everyone understood. So you DID mean to be picky. ;)
na na na na na!
| 7:33 pm on May 31, 2002 (gmt 0)|
So you DID mean to be picky.
Okay, mea culpa, mea culpa, mea maxima culpa....
A DOC file is something.doc So when I say HTML files I mean something.HTML, I did not say HTML formatted files.
That wasn't my point at all. What I was trying to say is that if the original poster was trying to set this up, he would tell his APACHE not PHP to parse the file as PHP. I was trying to avoid confusion (talk about ironic :) ) by pointing out that he would have to modify httpd.conf (i.e. tell Apache) and not php.ini (i.e. tell PHP).
Oh well.... I'm on vacation for two weeks with computer access, so you won't have me to kick around... ou wait that was Nixon... I mean, you won't have me to put up with for while (sorry to foreigners and those too young to remember the reference).