| | |
How to 'refresh' a php page?
![]() |
0
#11 Nov 19th, 2009
•
•
•
•
Still its not working. The above code shown in output window. can u give me the full code to insert and retrieve image from the database by using blob.
Why dont u post up the code u r using and i shall suggest what modifications are required..
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
0
#12 Nov 19th, 2009
Have messed this up b4
If the nocache code is getting displayed in the browser in the output window
Assuming the page displayed is "page.php"
page.php includes the line
The nocache code previously listed should be inserted in the <head> of "page.php" not "getImageFromDatabase.php" else that code is output to the browser as well as (or instead of) the image
the nocache code should work
If the nocache code is getting displayed in the browser in the output window
Assuming the page displayed is "page.php"
page.php includes the line
<img src="getImageFromDatabase.php" alt='database blob image'> or something similarThe nocache code previously listed should be inserted in the <head> of "page.php" not "getImageFromDatabase.php" else that code is output to the browser as well as (or instead of) the image
the nocache code should work
Last edited by almostbob; Nov 19th, 2009 at 2:12 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
0
#13 Nov 20th, 2009
•
•
•
•
Have messed this up b4
If the nocache code is getting displayed in the browser in the output window
Assuming the page displayed is "page.php"
page.php includes the line<img src="getImageFromDatabase.php" alt='database blob image'>or something similar
The nocache code previously listed should be inserted in the <head> of "page.php" not "getImageFromDatabase.php" else that code is output to the browser as well as (or instead of) the image
the nocache code should work
correct me if m wrong but the header function is supposed to execute before displaying any output in the browser isnt it? then how are u supposed to place it inside head tag.
I believe it must go on the top of page which is used to display the image ie which outputs html for image display... watsay?
what you are trying to tell is the use of meta tag inside head which is also an option but doesnt works with IE. so the best way is to use http headers...
Gimme reputation points if u find my post helpful.
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
use [code] tags wherever applicable
dont start a new thread unless u cant find the topic already on forum.
mark a thread "solved" as soon as u get a solution
0
#14 Nov 20th, 2009
for me it is 3am
corrected text should read
The nocache code previously listed should be inserted in "page.php" not "getImageFromDatabase.php" else that code is output to the browser
corrected text should read
The nocache code previously listed should be inserted in "page.php" not "getImageFromDatabase.php" else that code is output to the browser
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
0
#16 Nov 20th, 2009
To ensure an image is reloaded, send a unique URL.
eg:
<img src="image.php?random-number123" />
Where random_number123 can be generated by:
eg:
<img src="image.php?random-number123" />
Where random_number123 can be generated by:
php Syntax (Toggle Plain Text)
<?php $random = microtime(true); // eg echo '<img src="image.php?'.$random.'" />'; ?>
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
just use: <?php header("Location: #"); ?>
for example:
or, make a text link:
"#" is often used to redirect people to the top of a page, but it will actually refresh the page as wel.
Greetings,
for example:
PHP Syntax (Toggle Plain Text)
<?php if (true) { header("Location: #"); } else { // nothing happens } ?>
PHP Syntax (Toggle Plain Text)
<a href="#">click this link</a>
Greetings,
Last edited by digital-ether; Nov 26th, 2009 at 7:42 pm. Reason: snipped url
![]() |
Similar Threads
- How to Refresh a PHP page and add a clickable link (PHP)
- How to Auto refresh a part of a page (JSP)
- updating 2 HTML tables on one PHP page (PHP)
- page.php?page=1,2,3,4,..inf. (PHP)
Other Threads in the PHP Forum
- Previous Thread: Warning: mysql_result()...
- Next Thread: wordpress on a joomla website?
Views: 105545 | Replies: 16
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache archive array beginner box buttons cakephp check checkbox class cms code combobox css curl database date directory display download dropdown drupal dynamic echo email error file files form forms functions header href htaccess html image include insert integration ip java javascript joomla jquery limit link login lookup loop mail menu methods mlm mod_rewrite multiple mysql order parse password paypal php post problem query radio recursion redirect regex remote results rewrite script search select server session sessions shopping sort source sql storage string system table update upload url user validate validation variable video web website wordpress xml






