Re: linking with home directory path
| From: | David Nicholson | Date: | Wed, 09 Jul 2003 12:12:57 +0000 |
| Subject: | Re: linking with home directory path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154581@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 12:51,
lines prefixed by '>' were originally written by you.
> // Path to script files (absolute file path)
> $HomeDir = "c:/inetpub/wwwroot/MyScript/";
> // Name of style folder
> $ThemeFolder = "default";
> //-Then later in the page, I link the style sheet like this ---//
> echo "
> <link rel='stylesheet' type='text/css'
> href='".$HomeDir."themes/".$ThemeFolder."/style.css'>
Doing this will mean that your script will only work correctly when viewed
on webserver computer. Remote browsers will not be able to access the
style sheet as you are referencing it as a file on your server machine.
Is this what you intended?
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)