Re: HTTP question about style sheets (not really a core PHP question)
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 15 Nov 2000 00:06:56 +0000 |
| Subject: | Re: HTTP question about style sheets (not really a core PHP question) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25308@lists.php.net to get a copy of this message | ||
On Wed, 15 Nov 2000, WILSON, Nick wrote:
> Okay it's not really PHP but I figure someone will know
> this one and save me tracking down exactly how it works.
>
> If I have a Web page with a .css link in it, ie
> <link rel="stylesheet" href="/cgi-bin/styles/mystyle.css">
>
> At what point in the client request is this made ? My gut feeling is that
Whenever the developers of the browser felt like making it.
> the request for a page is made and then the browser works out
> that it should load this link and makes another GET request. Basically
> I would have thought it was the same as the way images load, in that
> the browser first retrives the page then parses it and loads each
> src="...." image in it.
This isn't an image, it's a stylesheet.
> If this is right, how come the syntax is a href link, not a src one ?
Because that's how it is. Don't futz with it.
> Also if I have a PHP page that retrieves info from another site (via
> fopen or fsockopen), will it
> still be up to the browser to make another request and if it does, will it
> make it to the PHP page that fetched the page or directly to the off site
> link style sheet ?
Any other files (LINK, IMG, EMBED, etc.) is a separate request. It may go
to the same process, it may not. The PHP script, however, has stopped
executing.
> Hopefully the explanation makes enough sense that someone knows what I'm
> asking.
>
> Nick
>
Hope my answers helped.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>