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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.