Sounds a bit strange that title, but let me explain.
We have a main site which holds all the pics of our hotels, and there are thousands of them.
We are in the process of building a new site, on the same server but inside a different folder.
I have worked out the path and its
../../checksafetyfirst/en/admin1212/imgdata/hotel<?=$rows['foto1']
Here is the html code and php.
<a href="hotel.php?Id_Hot=<?=$rows['hotel_id']?>&Id=<?=$hlist?>&selectCountry=<?=$rows['country_id']?>&selectRegion=<?=$rows['region_id']?>" class="bodySmall1">
<?php
$path = '../../checksafetyfirst/en'.$row['address'].'/';
$realpath = str_replace("#", "%23", $path);
?>
<img class="HomeFeaturedImages" src="<?php echo $realpath; ?>admin1212/imgdata/hotel<?=$rows['foto1']?>" alt="<?=$rows['hotel_name']?>" height="80" width="80" border="0"/></a>
Again the image isnt being drawn out, and when i right click on the image and look at the path, its using the domain name which means its starts from the folder where the domain name is directed.
But when i click on the image and look at the path, it is drawing out the domain name of the site im developing, rather than simply going back through the folder structure to the root level and then down to the image folder I want to draw the images out of.
So what I get instead is this.
So what I want it to do, is ignore the domain name, and then start its fall from the root level through the checksafetyfirst folder.
Hopefully that makes sense.
Cheers