Hi,
I have some include files which are located in a dir;
public_html/folder1
These files are accessed from folder1 and folder2, which is located;
public_html/folder1/folder2
Now, I need to access images which are located in folder1/images from these inlude files.
But, I cannot use the absolute url (eg http://www.mysite.com/folder1/images/imagename.gif) because some pages need to access these includes through https meaning that I get some 'insecure messages'.
If I use the relative url, eg img src="images/imagename.gif" it works fine in the folder1 dir but not in the folder2 dir.
Is there any way i can use relative urls which will work in both folder1 and folder2, or is there another way of including the files which would access the images from the location of the include file and not the location of the file the include is included in. If you understand me!
Thanks for your help
Simon
|