Cant someone edit the below code and paste it into the reply ? This answer unfortunately i do not understand, now this is my 3rd solution and all three i do not know how to correct the code, do i do all the 6 refernces to images in below script.
PLEASE EDIT BELOW WITH ABOVE SOLUTION and paste into reply, please copy edit and paste it inot the reply
if($dbu->f('picture') )
{
$ft->assign(array (
...
User Profile
Collapse
-
THIS IS FOR iam_clint
In a thread from you you said that
Re: I need my webpage to clear tempoary internet file
--------------------------------------------------------------------------------
when you link an image
<img src="blah.jpg">
do this
<img src="blah.jpg?r nd=(make php or whatever toss a random number here)">...Leave a comment:
-
SOmeone in thescript.com said below:
this is your location of the image file right?
$site_url.UPLOA D_PATH.$dbu->f('picture')
to this you add what iamclint said, making it look like
$site_url.UPLOA D_PATH.$dbu->f('picture') .'?' . rand()
this way your image will always recache
Thius is to solve a problem i am having with images not always appearing...Leave a comment:
-
here is the whole of property_view.p hp
<?php
$now=strtotime( "now");
$dbu=new mysql_db;
$ft = new ft(ADMIN_PATH." ");
$ft->define(array(' main' => "property_view. html"));
$ft->define_dynamic ('images','main ');
$ft->define_dynamic ('image_row','i mages');
$ft->define_dynamic ('int_feature', 'main');
...Leave a comment:
-
OK i found the reference to the .'?' . rand() and it is in the property_view.p hp page,
i have the code in the php page
for references to the path you specifed below, can you edit them and reply with exactely how they should end with the new code, beacause i am not sure where the brackets should end.
$ft->assign("PICTUR E", $site_url.UPLOA D_PATH.$dbu->f('picture') );
$ft->assign("PICTUR E",...Leave a comment:
-
I have the page
http://www.fcestates.c o.uk/index.php?pag=p roperty_view&pr operty_id=15
And on there i have a image place holder that says in property inspector of dreamweaver 8, that in source it is {PICTURE} and the thumbnail says {TUBNAIL} so are you saying i add the ? mark bit to this bit or can you tell me which page of the site and rufly what area of the pages code i shoyuld be ammending and to where, as in...Leave a comment:
-
-
I cannot see the exact same path above on the property_view page. Are you saying that i should put this extension manually on all the images in the upload folder should i be looking in the phpMyadmin. Do please look at the code of each page. Yes i do have an upload folder on the publice_html directory....Leave a comment:
-
And also my pages, show the image 1st time you visit but if you ignore the site for 3 minutes then non of the images come up until you clear your cache so i probably want the pages to expire after minutes not days.
thejobdoneLeave a comment:
-
I am using Apache 2.0’s servers configuration , just to add
thejobdoneLeave a comment:
-
OK I am back, and after reading the cache tutorial I have to say that my head is hurting me big time.
Is there just some code i can paste into my webpage, and save me from this Abyss. Please look at my website www.fcestates.c o.uk and see for yourself, and if possible give me the best code to put in my webpage , including which pages to put it on , like should i put this on the http://www.fcestates.c o.uk/index.php?pag=p roperty_view&pr operty_id=17...Leave a comment:
-
OK Buddy,
It looks like you understood how to help me , so i will study this and get back to you soon.
thejobdoneLeave a comment:
-
OK IamClint
The issue is that i have a php script and when i look at the property_view page in the script, it has an image place holder for the property image and it is called {PICTURE}
and i have below part of the property_view.p hp script relating to the {PICTURE}
comment, example
<img src="blah.jpg?r nd=123213">
this will stop it from being pulled from cache...Leave a comment:
-
I need my webpage to clear tempoary internet file
I need my webpage to clear tempoary internet files when a user visits my web page so that the images in my webpage www.fcestates.c o.uk/index.php? actually shows the images all the time for propertys in the MySQL database website above. Does anyone know if i can do this with some special html code that tells the browser to delete the temporay internet files folder contents. Or is there a php code, or does ajax allow you to embed code into your webpage/script....
No activity results to display
Show More
Leave a comment: