[PHP] Structuring script execution

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

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().