Re: [PHP] Structuring script execution

2002-04-25 Thread Jason Wong
On Thursday 25 April 2002 22:48, Donna Robinson wrote: > On the first call everything is fine. > On the 2nd call (of course) the script stops execution. even sending > "header( Location: otherfile.html)" won't work 'cos I get a msg saying > headers already sent. Read the manual entry for header

[PHP] Structuring script execution

2002-04-25 Thread Donna Robinson
Hi, A page is loaded from two different places. 1st call: 2nd call: Inside cribsheet.html: if ( $action == '*') { if ( isset( $download ) { downloadFile( $download ); } echo ''; echo ''; ... echo ' '; echo ''; } function downloadFile( $type ) { header ... $fp = fopen(