How do you make the connection?
Ok the "too many connections" has nothing to do with the mysql_free_result,
Because you can do multiple queries over 1 connection.
The error specifically says that there are too much connections.
If you are using the mysql_pconnect(), the connection will stay open
The following url will help you
http://www.php.net/features.file-upload
You just have to make a form and use the enctype="multipart/form-data"
This will make the content available in the next php page.
Then you can write this content to a file (in this case, zip file)
Grtz
Rodrigo
-Origin
Hello there,
What is the correct way to clean the server memory after a mysql query? I
usually do this bellow:
--
$res = mysql_query("select bla bla bla");
$row= mysql_fetch_array($res);
the code ...
mysql_free_result($res); #at the end
--
Hello there,
I want to make a form post where a user can send a *.zip file to the server.
How can I do this? I'm thinking on going for the ftp methd, but that would
be just too much work for a simple file send.
Any ideas?
Thanks a lot,
Rui
--
PHP Windows Mailing List (http://www.php.net/)
To