If your link.php page has zero output to the screen, then you can do your
database action and return to your main page by using a header command.

header("location: mypage.php");

On your link.php code, there should be no lines of code nor blank lines
before the
<?php call and no echo or print statements within the php code section.

Hope this helps,

p.s. you could also use a $php_self action in a form to get the same

----- Original Message -----
From: "Alex Vargas" <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 12:03 AM
Subject: [PHP] How to run a script leaving screen output of previous script

> Hi. I want to run a php script without leaving the php that calls that
> script.
> Let's say I have a script called mypage.php which displays html. There is
> link to link.php, which makes some database maintenance and has no output.
> want to be able to run link.php from mypage.php, but don't want to display
> anything new on screen.
> As it is, when link.php runs, it displays a blank screen. I guess I could
> insert a header to reload mypage.php, but I wonder if there is a way of
> leaving mypage.php at all. Is this posible?
> Thanks,
> -Alex
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to