PDA

View Full Version : O we're movin on up! Moovin on up! To the php'side.... ...


Tatu
11-08-2000, 04:33 PM
Okay, I'm gonna ignore SSI for the site I am developing on FQ and move on to the hard stuff. Right now I am on QBert, and really I'm just using PHP for file includes.

1. What file extensions can I use? .php4 ?
2. This one is for my curiosity: How do browsers recognize a new extension like that?
3. Since this is dynamic content, how exactly do search engines handle php pages?

Thanks :)

-Tatu

--
My credits to The Jeffersons, of which I only know their theme song from Burger King commercials.

Terra
11-08-2000, 05:49 PM
1) .php and .php4, .php is the recommended extension to use
*RASMUS and QBERT PHP 4 will recognize the .php3 extension as well for backwards compatibility...

2) simply:
browser asks server for blah.php
server sees the '.php' extension and maps to a module handler
server parses blah.php for PHP code and executes to deliver content
server sends the appropriate MIME type to the browser so that it can interpret it properly - most likely 'text/html'
browser renders the resultant output in accordance with received MIME type

3) I am not an SE expert, so this will have to be answered by someone more authoritative on SE(s)...

--
Terra
--KISS--
FutureQuest


[This message has been edited by ccTech (edited 11-08-00@5:10 pm)]

Shalazar
11-08-2000, 06:06 PM
So feasibly, you can have a file called mypage.hoohah, and as long as the server is capable of parsing it, and sending it to the browser in a form it can interpret and render, it will display it?[nbsp][nbsp]Cool.

Terra
11-08-2000, 06:16 PM
file called mypage.hoohah Only if it recognizes the '.hoohah' extension...

If it doesn't, it will default to the MIME type of 'text/html'...

However, you can use AddType to map an extension to a MIME type...

--
Terra
--MIME has become the root of all evil in email handling--
FutureQuest

Tatu
11-08-2000, 07:01 PM
:) Thank you, TeRRa! #2 was very simple and understandable.

Any one know how php pages are handled by search engines? Will it spider php pages & sites like it would a site that uses SSI?

-Tatu

--
"Keep It Simple, Stupid" also = Judge Judy's new book

Tatu
11-08-2000, 07:03 PM
TeRRa: I remembered another one. Now when a site is activated and invoiced (once it has been set up), is the index page you first see that "index.futurequest" file?

Mark
11-08-2000, 08:21 PM
Tatu,

Found this article on phpbuilder.com:

http://www.phpbuilder.com/columns/tim19990117.php3?page=1

It's called "Building Dynamic Pages With Search Engines in Mind" -- hope it is helpful.

Mark