[PHP-DB] gzip image files

2001-11-27 Thread Keith Whyman
I create a png dynamically - store the path in mysql. And want to be able to offer the user a zipped version to download Unfortunately haven't been able to get it to work up until now ! I'm sure it's something obvious but... Open the png $data = fopen('kunden/'.$name.'.png', rb);

Re: [PHP-DB] gzip image files

2001-11-27 Thread Keith Whyman
= gzencode($data, 9); $fp = fopen(bigfile.txt.gz, w); fwrite($fp, $gzdata); fclose($fp); ? Regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Keith Whyman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November

Re: [PHP-DB] gzip image files

2001-11-27 Thread Keith Whyman
http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Keith Whyman [EMAIL PROTECTED] To: Andrey 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

Re: [PHP-DB] Connecting to MySQL

2001-06-22 Thread Keith Whyman
table in the mysql database. - Jonathan -Original Message- From: Keith Whyman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 7:52 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Connecting to MySQL Can anyone help with this problem ! user name should just be keith

[PHP-DB] Connecting to MySQL

2001-06-21 Thread Keith Whyman
Can anyone help with this problem ! user name should just be keith but the @localhost gets added and then I can't connect ??? Warning: MySQL Connection Failed: Access denied for user: 'keith@localhost' (Using password: YES) in /usr/var/www/www.happy.de/html/cms/test.php on line 23 Problem

Re: [PHP-DB] Variable variables ! - help

2001-03-14 Thread Keith Whyman
I've got a loop which includes the following coming from mySQL if ($art_nr1 != '') { $i++; echo " td input type=\"hidden\" name=\"art_nr_$1\" value=\"$art_nr1\" input type=\"text\" name=\"quant$i\" size=\"3\" maxlength=\"5\" /td "; I've now got the following

Re: [PHP-DB] Variable variables ! - help

2001-03-14 Thread Keith Whyman
sorry I don't think I explained that very clearly ! The first loop's on a page which works fine, and it's in a form with article numbers and then an input field for quantites ! It's the next page that's giving me headaches ! The user submitted the form with all article numbers and some with a

Re: [PHP-DB] Variable variables ! - help

2001-03-14 Thread Keith Whyman
driving me up the bloody wall ! I'm sure it's something simple ! This works fine for ($i=1; $i50; $i++) : $varid = "quant".$i ; if ($$varid != "") { echo " input type=hidden name=\"art_nr\" value=\"$art_nr_1\" input type=hidden name=\"quantity\" value=\"$quant1\" "; } but the moment I change