[PHP] page reloading

2002-05-02 Thread Donna Robinson
Hi, This is driving me nuts - all help appreciated! The problem is that I can never get the html stuff output *after* having included download.inc because of the exit; call -- which I have to have else the html gets output and downloaded as well (and I don't understand why fpassthru doesn't

Re: [PHP] page reloading

2002-05-02 Thread Donna Robinson
On Thursday 02 May 2002 3:08 pm, Dan Hardiker wrote: Replace exit; with fclose( $fp );. Nope - tried this way back when - if you rtfm you will see that the file is closed when fpassthru() is done reading it. If you use fclose what you get is this: PHP Warning: 27 is not a valid File-Handle

Re: [PHP] page reloading

2002-05-02 Thread Donna Robinson
On Thursday 02 May 2002 4:26 pm, Donna Robinson wrote: What you are trying to achieve can be done with refresh headers (either html-meta or http). Huh? pls explain. Forget it - I figured it out. If I send this along with the rest of the headers everything is just peachy: $url = $PHP_SELF

Re: [PHP] Re: help needed with headers

2002-04-27 Thread Donna Robinson
Hi, I spent ages figuring this one out so it work work on Windoze, Linux, Mac, ... and this *always* works: Create a hyperlink for user to click on: echo ' td class=nbcc ahref='.$PHP_SELF.'?action=*download=txtDownload TXT/a/td'; On click, we come back in to this: if ( $action == '*' ) { if

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Donna Robinson
Hi, I had to laugh when I saw this! goto http://sources/redhat.com/bzip2 you can get the source code and/or the binaries for various platforms from there. My man wrote this so I read him yr mail and he grinned! bzip2 uses huffman encoding so you can see it won't work with gzip or winzip

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Donna Robinson
PS: You do this: put the file.bz2 in a dir somewhere prompt bzip2 -d file.bz2 Do this: prompt bzip2 --help to get a list of all options. Donna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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