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);
= 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
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
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
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
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
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
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