473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to refresh the screen

Hi Folk

I have a PHP script like this:

<?php

echo "this may take some time";

.....lots of stuff

{reload new page with result}

?>

how do I get the page to refresh so that the user will see the message while
it is waiting for the process to continue?

TIA

- Nicolaas
Jul 17 '05 #1
3 1664
windandwaves wrote:
Hi Folk

I have a PHP script like this:

<?php

echo "this may take some time";

....lots of stuff

{reload new page with result}


<snip>
1. meta refresh
2. header refresh (non-standard, but works in many browsers)

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com

Jul 17 '05 #2


windandwaves ha escrito:
Hi Folk

I have a PHP script like this:

<?php

echo "this may take some time";

....lots of stuff

{reload new page with result}

?>

how do I get the page to refresh so that the user will see the message while
it is waiting for the process to continue?


You can test with this function?
<?
function re-fresh ($time, $topage) {
//$time in sec
echo "<meta http-equiv=\"refresh\" content=\"{$time}; url={$topage}\"
/> ";
}
echo ' .... . tis may take sme timme';
re-fresh (10,"http://url/path/to/page");
?>

Jul 17 '05 #3
header("location url");exit: will not work after you use the echo statement
because this forces the headers to be sent. You will get an error message
"Headers already sent".

Also remember that a meta refresh must appear in the <head> section of your
html, so a function such as f700b's cannot be called from anywhere in your
PHP code.

ECRIA
http://www.ecria.com
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
0
by: AK | last post by:
Hi, I have a medium sized app that I'm transferring to use curses. What happens is very very strange.. I am at my wits' ends. I worked with it all day yesterday and couldn't figure it out....
0
by: jimvn | last post by:
while my screen saver (webshots) is active, my vb.net windows app updates a textbox. after exiting the password protected screen saver, the text box does not appear to be updated, but it has been,...
3
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this...
3
by: serge anton | last post by:
Hi, I want to refresh all the screen (including the desktop) or a part of the screen. I can have a reference to the screen with win32 API : public static extern int GetWindowDC(IntPtr...
3
by: redneon | last post by:
Is an event fired whenever there's a screen refresh? I'm wanting to run a certain method whenever there's a screen refresh and was wondering if I could override wndproc and listen for an event to...
0
by: greekgoddj | last post by:
Hello, I have been implementing IAccessible to my custom ATl based ActiveX Controls. When any of the arrow keys are pressed, I change the value of my control, set the new value to ACC_VALUE and...
0
by: Casey Bralla | last post by:
For some reason, I can't get curses to refresh the screen. Can someone offer a suggestion to try to debug this? Here is my python code snippet: stdscr=curses.initscr() curses.noecho()...
0
by: khurram.shakir | last post by:
I am developing an application, which uses .NET 2.0/WinForms and has a designer for screen layout designing. User has an option to design the layout of screen, and for that we developed our own...
2
by: Lonifasiko | last post by:
My ASP.NET application's main page should change values on screen when some extern event occurs (a change in the state of a machine monitored by a .NET Remoting object). That is, this .NET Remoting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.