Re: HTTP question about style sheets (not really a core PHP question)

From: Date: Wed, 15 Nov 2000 00:20:16 +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-25313@lists.php.net to get a copy of this message
on 11/14/00 3:38 PM, WILSON, Nick (nick.a.wilson@baesystems.com) wrote: > If this is right, how come the syntax is a href link, not a src one ? LINK has been in the HTML standard since 1.0. Originally, it was supposed to be used for navigational clues / alternative pages, especially for non-graphical browsers. For example: <link rel="home" href="http://www.gseis.ucla.edu/"> is a link to the main home page for the site. (see the source of that page for other LINK's) > 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 ? Yes, it will still be up to the browser. Whether or not the page will use the right stylesheet depends on the HREF attribute. If it's an absolute, with the host and protocol specified, i.e., <link rel="stylesheet" type="text/css" href="http://www.gseis.ucla.edu/css/main.css"> the browser should get it OK. If it's a relative or absolute without the host into, i.e., <link rel="stylesheet" type="text/css" href="/css/main.css"> the browser will look for the stylesheet relative to the root directory of your host or the page itself. Paul ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul Burney Webmaster and Internet Developer Educational Technology Unit Graduate School of Education and Information Studies University of California, Los Angeles (310) 825-8365 <webmaster@gseis.ucla.edu> <http://www.gseis.ucla.edu/> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

« previous php.general (#25313) next »