Topic: Question: Relative / Absolute Path when using INCLUDE?

Question

Here is how my directory structure is like..

/www/main.php
/www/pictures/misc/index.php
/www/pictures/misc/thumbs/
/www/pictures/misc/images/
/www/pictures/misc/imageData.xml

Okay, with that in the main.php, i had used INCLUDE(./pictures/misc/index.php).

so in the imageData.xml, how should the path be?

images="  "
thumbs="  "

?

Should it be ./pictures/misc/thumbs/ or should it be "thumbs/" or should it be "./thumbs/"?

I've tried them all and can not get it to work.

If i use my old method http://www.knguyentu.com/pictures/misc/thumbs/ then it will work, but i want to change it to using path instead.

By the way, I've read the airtight website on absolute and relative path usage already before I post this.

KN

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]

Re: Question: Relative / Absolute Path when using INCLUDE?

hmmm

if i used the include(./pictures/misc/index.html) from the main index.php page in the root directory, that would  make it seem like the index.html is running from the root directory

So the relative path should be image="www/pictures/misc/images/"

no? man i tried every combination under the sun and the only ones that work is a the full HTTP URL...

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]

Re: Question: Relative / Absolute Path when using INCLUDE?

i guess no one knows?

[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]

Re: Question: Relative / Absolute Path when using INCLUDE?

If I use absolute path, shouldn't this work?

<?xml version="1.0" encoding="UTF-8" ?><SIMPLEVIEWER_DATA maxImageDimension="700" textColor="0xFFFFFF" frameColor="0xFFFFFF" bgColor="0x181818" frameWidth="3" stagePadding="0" thumbnailColumns="2" thumbnailRows="6" navPosition="right" navDirection="LTR" title="Misc Pictures" imagePath="C&#58;/Personal Files/PortableWebApps/webserver/PortableWebAp3.2/Program/www/localhost/pictures/misc/images/" thumbPath="C&#58;/Personal Files/PortableWebApps/webserver/PortableWebAp3.2/Program/www/localhost/pictures/misc/thumbs/">
<IMAGE>
<NAME>misc-28.jpg</NAME>
<CAPTION><!&#91;CDATA&#91;<A href="C&#58;/Personal Files/PortableWebApps/webserver/PortableWebAp3.2/Program/www/localhost/pictures/misc/images/misc-28.jpg" target="_blank" class="mainlevel1"><center><b><U>LARGER IMAGE&#58; misc-28.jpg</U></b><center></A>&#93;&#93;></CAPTION>
</IMAGE>

Here is a sample after uploading it on a unix box.

<?xml version="1.0" encoding="UTF-8" ?><SIMPLEVIEWER_DATA maxImageDimension="700" textColor="0xFFFFFF" frameColor="0xFFFFFF" bgColor="0x181818" frameWidth="3" stagePadding="0" thumbnailColumns="2" thumbnailRows="6" navPosition="right" navDirection="LTR" title="Misc Pictures" imagePath="/sx/users/smilepak/home/smilepak/www/pictures/misc/images/" thumbPath="/sx/users/smilepak/home/smilepak/www/pictures/misc/thumbs/">
<IMAGE>
<NAME>misc-28.jpg</NAME>
<CAPTION><!&#91;CDATA&#91;<A href="/sx/users/smilepak/home/smilepak/www/pictures/misc/images/misc-28.jpg" target="_blank" class="mainlevel1"><center><b><U>LARGER IMAGE&#58; misc-28.jpg</U></b><center></A>&#93;&#93;></CAPTION>
</IMAGE>
[url]http://www.photographybykevin.net[/url]

Simple Viewer FAQ By Kevin
[url]http://knguyentu.com/wordpress/photography-by-kevin/simpleviewer-flash-photo-gallery/[/url]