473,237 Members | 1,292 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,237 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 1659
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.