Jump to content

phpThumb


aleX_hill

Recommended Posts

I dont know if anyone uses phpThumb, so I will explain the usage anyway.

 

Usage: <img src=phpThumb.php?src=source.jpg&h=150>

 

I am trying to hide my image url in the source, so I am trying to put the src into aa $_SESSION.

 

In my while loop I have done this:

 

$_SESSION['src'] = "path_to_file";

<img src="phpThumb.php?h=150">

 

and in the phpThumb.php file:

$_GET['src'] = $_SESSION['src'];

 

This works fine for the first image, but this image is repeated every time. I have tried putting a &rand=$rand on the end of the url in the <img> tag incase cache was the problem, to no avail. The session var is updated correctly, I am sure of that.

 

Can someone tell me why phpThumb is not updating the image each time?

 

Thanks,

Alex

Link to comment
https://forums.phpfreaks.com/topic/97222-phpthumb/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.