Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 16th, 2004, 08:40 AM
NCAnnie NCAnnie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 15 NCAnnie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cacheing or naming a dynamic image

I have a php script (testimage.php)which dynamically creates a png image. It is called by
<?php
...
...
echo <<<HTML_STUFF
...
<img src = "testimage.php" border = 0 height = $GraphH width = $GraphW alt = "$_GRAPH">
...
...
HTML STUFF;
I call this to get a different image each time, each time reloading the parent php script. The test image.php script does the socket stuff, creates the png image and sends it back. It works fine, but I want to be able to use the (MSIE 5) browser back button to display the previous pages, but as each image is called testimage.php, I get the previous page, but with the last of the images instead of the previous image.
Please, what to do?

Reply With Quote
  #2  
Old April 24th, 2004, 09:50 AM
trleighton trleighton is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 30 trleighton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 24 m 58 sec
Reputation Power: 5
Exclamation You cant do this

Hi,

I dont actually think you can do this. Maybe if you added some query string to the end e.g.
Quote:
<?php
...
...
echo <<<HTML_STUFF
...
<img src = "testimage.php?[add_the_date_and_time_here_to_separate_all_the_images]" border = 0 height = $GraphH width = $GraphW alt = "$_GRAPH">
...
...
HTML STUFF;


I hope this works as i am a newbie to php.

Tom


PS: use the DATE() function in php(PHP - [Date Function] )

Reply With Quote
  #3  
Old April 26th, 2004, 03:49 AM
NCAnnie NCAnnie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 15 NCAnnie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Thanks for that, Actually, that is what I eventually tried myself and it works fine. I have enough bits of information to uniquely identify the picture, and it works like a charm.
Thanks for the reply anyway!

NCAnnie

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > cacheing or naming a dynamic image


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway