Many thanks Shanti,
It should be as clear as it could be, as you have written the whole code.
But of some reason I cannot make it work, as I am not a developer myself, I suppose.
I must have done something wrong, maybe in the different paths.
If I have the following url:
http://www.myPanos.com/
and my panos are in the folder "panoImages" and my pano image is "pano1.jpg", then, In your code sample you have written:
$path = full/url/to/image.jpg
I should write:
$path =
http://www.myPanos.com/panoImages/pano1.jpg
Is this correct?
Then on the next line in my code should be
$preview = str_replace("http://www.myPanos.com/","/full/linux/path/public_html/",$path);
except that the "/full/linux/path/public_html/" should be replaced by something else...
as I am just using a web hosting service I am not sure if I can see the full linux path,
all I see is that my index page is in this path "/webspace/httpdocs/",
I cannot see what is above this structure.
I suppose this is a possible reason why it does not work.
Regards,
/M