Re: What a difference a / makes!
| From: | robert | Date: | Tue, 20 Jan 2004 20:48:33 +0000 |
| Subject: | Re: What a difference a / makes! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175193@lists.php.net to get a copy of this message | ||
Look at the one for yt and one for Alaska. If there is a difference in the code in 1 place that is probably why it IS working on the yt page. That's where I would start. Then I would put in an alias in my web configuration to point css /home/web/css or whatever so that you can go :
echo '<link href="'/css/' . $continentcode . '/' . $myregion . '.css'" rel="stylesheet" type="text/css" />';
The thing you do need to check is your $continentcode especially, as that is the one that links between pages and the style sheet (unless I missed where it was assigned based on something else). Also check to make sure you have ' appropriately. I find an odd number of ' in your example and if you are not careful then you have cut off a piece of the echoed code.
That will cut down some on code as well as help with the figuring out of where the issue is. I personally use print " <link href=\"/css/continentcode/$myregion.css\" rel=\"stylesheet\" type=\"text/css\">" for things like that, no having to join the information together, the server does the work for me.
Robert