to remove .png from the filename.
Regards,
Andrey
- Original Message -
From: "Keith Whyman" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 5:30 PM
Subject: Re: [PHP-DB] gzip image files
> h
t is in green
I've done it so much now it's burned into a finger macro, takes 0.01
seconds longer to type (approx)
Cheers
Jon
-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2001 15:29
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]
I use the former method when concatenating say a complex SQL query thru a loop or
loops, and me
being the person I am like to keep things standard and consistant so I use the same
method when I
wish to concatenate simpler strings.
Russ
On Tue, 27 Nov 2001 09:28:37 -0600 "Boget, Chris" <[EMAI
el.
Regards,
Andrey Hristov
- Original Message -
From: "Boget, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 5:28 PM
Subject: [PHP] Coding methods (was RE: [PHP-DB] gzip image files)
> > $fil
, "w");
> fwrite($fp, $gzdata);
> fclose($fp);
> // this is ok
>
> Regards,
> Andrey Hristov
> IcyGEN Corporation
> http://www.icygen.com
> BALANCED SOLUTIONS
>
>
> - Original Message -
> From: "Keith Whyman" <[EMAIL PROTECTED]
> $filename = 'kunden/'.$name.'.png';
I see this all the time and I'm curious: what takes more
computing power (granted, either would be incredibly little
I'm sure, just curious which requires more work by PHP)?
this:
$filename = "this " . $varname . " that";
or this:
$filename = "this $varn
y Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 5:06 PM
Subject: Re: [PHP-DB] gzip image files
> and if i use
>
> $filename = 'kunden/'.$name.'.png';
> $data = fopen($filename, "r");
> $contents
and if i use
$filename = 'kunden/'.$name.'.png';
$data = fopen($filename, "r");
$contents = fread($data, filesize($filename));
fclose($data);
$gzdata = gzencode($data);
$fp = fopen('kunden/zip/'.$name.'.gz', "w");
fwrite($fp, $gzdata);
fclose($fp);
it writes in the gz file this
Resource id #3
Yes, it is.
the return value of fopen is a resource of type file.
var_dump($data); will show that
if you want to read the data use : fread($data,$buf);
but I think its better with file() function. The example from the docs show a better
method:
Regards,
Andrey Hristov
IcyGEN Corporation
http:/