sajro
December 9th, 2007, 11:24 PM
I am trying to make a script I can include on all my pages. However, with nowhere to test them (server's not up yet) I've run into a small roadblock. I just need to know:
Short, no examples: Are links from a script included in another relative to its location or the location of the script including it?
Long version, with examples: If foo.php is located at /var/www/lorem/foo.php and it includes a script at /var/www/include_me.php, would include_me.php's
<a href="/ipsum/content/php"> lead to /var/www/ipsum/content.php (the intended) or /var/www/lorem/ipsum/content.php (because of foo.php's location)?
Thanks in advance for any help!
- Sajro
Short, no examples: Are links from a script included in another relative to its location or the location of the script including it?
Long version, with examples: If foo.php is located at /var/www/lorem/foo.php and it includes a script at /var/www/include_me.php, would include_me.php's
<a href="/ipsum/content/php"> lead to /var/www/ipsum/content.php (the intended) or /var/www/lorem/ipsum/content.php (because of foo.php's location)?
Thanks in advance for any help!
- Sajro