Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Image include script

Hung up on home page syntax

3:48 pm on Jul 6, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Sept 22, 2003
votes: 2

I am using a simple script to call images based on location...


but having a hard time when it comes to the index/root/home page as it confuses with all other directories index page.


Is there an easy solution for the home page?


3:56 pm on July 6, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
votes: 17

I'm not exactly sure if this is helpful but a friend showed me a better way to access relative paths in PHP. This is how I use it for relative includes...

include realpath(dirname(__FILE__) . "/../../index.php");

- John