Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin
On Tuesday 28 May 2002 07:33, DevilKin wrote: > On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote: > > You cannot change the upload limit in your script because the file upload > > happens before your script is executed. You need to set it in your > > php.ini, httpd.conf

Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin
On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote: > You cannot change the upload limit in your script because the file upload > happens before your script is executed. You need to set it in your > php.ini, httpd.conf or .htaccess Aha. How do i set this from .htaccess anyway? And this might be w

[PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin
Hello, As stated in the topic: PHP 4.1.2 balantly ignores max_upload_filesize paramter. I've been trying - without solution - to get php 4.1.2 (compiled as module for apache 1.3.xx) to accept a file upload (via post) of more than 2 mb. Files <= 2mb work great, but when I go above this php retu

Re: [PHP] Detecting empty query result?

2001-08-21 Thread DevilKin
A good way to check if the result set is empty is to do put all statements that work on the result set in an if-statement with the following condition: if (mysql_numrows($result) != 0) { ... code here ... } Hope this helps DevilKin At 14:54 21/08/2001 +0100, Seb Frost wrote

[PHP] pg_close -1 displayed with Win32 binaries

2001-05-17 Thread DevilKin
wed by the headers. e.g.: pg_close -1 X-Powered-By: PHP/4.0.5 Pragma: no-cache Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: Thu, 17 May 2001 10:05:45 GMT Cache-Control: no-cache, must-revalidate Content-type: text/html .. Any ideas how to get rid of this? Thanks, DevilKin -- P