Jump to content

Recommended Posts

Hi guys,

 

I've found a tool which transforms my MySql data in a .png graph image.

I use it inside a script and everything seems work nice. The problem is that only the first created graph is shown.

I' try to explain.

I've some Db tables, I select one to create the graph and it's shown, then I select another Db table, but it's shown always the first.

Looking inside the directory where the 2nd .png is created, I see data from the 2nd table, while from inside the script I see the 1st .png

I tried to remove the 2nd file from the dir, but nothing changes, so I think the 1st file is read fron the firefox cache.

Is there a way to clear the cache from inside a php script?

 

Following is part of the code actually I use

...
$graph->Stroke("pippo.png");
  //creates the image

echo "<img src = 'pippo.png' alt='grafico 1' />"; 
//shows the above image

if(is_file('pippo.png')) 
//remove the image from the dir for next processing
unlink('pippo.png');

 

Thank you in advance

 

Link to comment
https://forums.phpfreaks.com/topic/87044-solved-cache-problem/
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.