View Single Post
Old 07-25-2008, 09:48 AM   #7 (permalink)
ncorpse
The Visitor
 
Join Date: Jul 2008
Posts: 4
Thanks: 1
ncorpse is on a distinguished road
Default

Quote:
Originally Posted by Evulness View Post
Code:

<?php
//define 
define('DOCROOT', '/var/www/'); 
//usage 
Echo '<link rel="stylesheet" type="text/css"  href="'.DOCROOT.'inc/css/stylesheet.css">\n";  
something like that.... will change your href="" to "/var/www/inc/css/stylesheet.css"


I tried that out it doesn't work.
PHP Code:
define('DOCROOT','/var/www/patric/Adressverwaltung/');
...
echo 
'<link rel="stylesheet" type="text/css"  href="'.DOCROOT.'inc/css/stylesheet.css">'."\n"
It seems that it is not working when i use an absolut path. when i use ./.../ instead it works fine.
Do I need to do something with the php include paths?
ncorpse is offline  
Reply With Quote