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 ju
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-Hand
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'
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 '
Download TXT';
On click, we come back in to this:
if ( $action == '*' ) {
if ( isset( $download ) ) {
downloadFile( $download );
w
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
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
(which
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(
7 matches
Mail list logo