header() not the right one for redirecting after output
Posted: Thu Sep 14, 2006 11:36 am
feyd | Please use
and then copydata2.php
and so on...
Basically I need to find a way to load a different page on the browser once some fucntion has done its task.
Thanks in advance.
Orallo
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi All,
I've got what should be a simple question, but I've not been able to finde the answer so far...
Here is what I am trying to do, I need to read several (large) tables from one database and import them into another database. I'd like to set it up, so once a table has been uploaded, the page automatically goes to another php file and prints something out like "processing table 2" etc, etc.
I've tried redirecting one page to the next, etc, etc, but the browser gets no output at all.
the code is something like this:
copydata.phpCode: Select all
<?php
$DataBaseName="Table1";
CopyDataBase($DataBaseName, $FilePath);
echo ("********** Table $DataBaseName IMPORTEd");
header( 'Location:http://localhost/ARCO/copydata1.php') ; exit;
?>Code: Select all
<?php
$DataBaseName="Table2";
CopyDataBase($DataBaseName, $FilePath);
echo ("********** Table $DataBaseName IMPORTEd");
header( 'Location:http://localhost/ARCO/copydata2.php') ; exit;
?>Basically I need to find a way to load a different page on the browser once some fucntion has done its task.
Thanks in advance.
Orallo
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]