[PHP] Bad impact of memory_limit set to -1 ?

2009-09-25 Thread Manuel Vacelet
Hi all, I fighting with SoapServer to be able to upload large file base64 encoded. Every so often I get memory exhausted error messages and memory_get_usage() tells me that my script starts with more than 250MB allocated (for a soap request of 85MB!). I'm wondering if I would let memory_limit

[PHP] Re: Byte range support

2008-07-16 Thread Manuel Vacelet
On Tue, Jul 15, 2008 at 3:53 PM, Manuel Vacelet [EMAIL PROTECTED] wrote: Hello all, How can I make my php apps aware of byte range HTTP request ? I have a script that output data to user if she's granted to do so. But as of today, if download fails, she must restart the download from

[PHP] Byte range support

2008-07-15 Thread Manuel Vacelet
Hello all, How can I make my php apps aware of byte range HTTP request ? I have a script that output data to user if she's granted to do so. But as of today, if download fails, she must restart the download from the beginning because my server (my php script) doesn't support range byte requests

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread Manuel Vacelet
On Jan 21, 2008 3:22 AM, nihilism machine [EMAIL PROTECTED] wrote: I'm trying to create a function that will first take an array of $_POSTs and give them key/value pairs like variables. For instance, if i had $_POST['whatever'] = whatever, that would be made into $whatever = whatever, then i

[PHP] Filter Input: Inspekt

2007-11-20 Thread Manuel Vacelet
Hi all, Does anyone already heard about inspekt library ? http://code.google.com/p/inspekt/ Quote from the web site: Inspekt acts as a sort of 'firewall' API between user input and the rest of the application. It takes PHP superglobal arrays, encapsulates their data in an cage object, and

Re: [PHP] file_exists, is_readable effective UID/GID

2007-10-25 Thread Manuel Vacelet
On 10/24/07, Jim Lucas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 10/24/07, Manuel Vacelet [EMAIL PROTECTED] wrote: Hi all, file_exists and is_readable perfom there test with real UID/GID. Is there any functions that tests file existance with effective UID/GID ? Note: stat

[PHP] file_exists, is_readable effective UID/GID

2007-10-24 Thread Manuel Vacelet
Hi all, file_exists and is_readable perfom there test with real UID/GID. Is there any functions that tests file existance with effective UID/GID ? Note: stat is not an option because it raises an E_WARNING if the file is not readable. Thanks, Manuel -- PHP General Mailing List

[PHP] Filter input

2007-10-11 Thread Manuel Vacelet
Hi all, I repeat the mantra 'filter input, escape output' every day before writing any line of code. About filter input I use to develop my own filter but I don't like this solution as it's error prone (my regexp may be wrong, I don't like to re-invent the wheel that much, ...). I'd like to know

Re: [PHP] Filter input

2007-10-11 Thread Manuel Vacelet
On 10/11/07, Jim Lucas [EMAIL PROTECTED] wrote: What are you wanting to validate? Do you want a package/class/function set that when called will validate different types of input? Email, string, int, etc... Basically yes. I want to validate: - type: (string, int, float, ..) -

Re: [PHP] Out source files

2007-03-21 Thread Manuel Vacelet
2007/3/21, Richard Lynch [EMAIL PROTECTED]: On Tue, March 20, 2007 4:37 am, Manuel Vacelet wrote: 2007/3/20, Richard Lynch [EMAIL PROTECTED]: One common pattern in PHP is to not put the file in the web tree at all, and write a PHP script with 'readfile' (or fopen/fread/echo loop for larger

Re: [PHP] Out source files

2007-03-20 Thread Manuel Vacelet
2007/3/20, Richard Lynch [EMAIL PROTECTED]: One common pattern in PHP is to not put the file in the web tree at all, and write a PHP script with 'readfile' (or fopen/fread/echo loop for larger files). You can then control access to the file, and log any kind of stats you need about accessing

[PHP] Out source files

2007-03-19 Thread Manuel Vacelet
Hi all, I would like to know if there is some common patterns to out source the files served by a LAMP stack. Technicaly speaking I would like to store my files (application data) on another machine than the one that runs my PHP app. (as I already do with MySql). The best would be to use a

Re: [PHP] Out source files

2007-03-19 Thread Manuel Vacelet
2007/3/19, Richard Lynch [EMAIL PROTECTED]: On Mon, March 19, 2007 12:46 pm, Manuel Vacelet wrote: I would like to know if there is some common patterns to out source the files served by a LAMP stack. Technicaly speaking I would like to store my files (application data) on another machine

[PHP] umask is not being restored when each request is finished.

2006-03-16 Thread Manuel Vacelet
Hi all, I copied/pasted the title of the following bug: http://bugs.php.net/bug.php?id=36630 It seems already fixed in CVS for 5.1.x branch of PHP. Actually, I'm running php4 (4.3.2 shiped by RHEL3) and I'm facing the same bug. And I'm not alone, you can look at http://bugs.php.net/28401.

Re: [PHP] Mime-type handling

2005-12-09 Thread Manuel Vacelet
2005/12/9, Curt Zirzow [EMAIL PROTECTED]: On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote: Hi all, I'm facing a bad behaviour of 'file' command used by fileinfo PECL module (recommanded for mime-type checking): * Some Microsoft Excel documents are detected as Microsoft

[PHP] Mime-type handling

2005-12-08 Thread Manuel Vacelet
Hi all, I'm facing a bad behaviour of 'file' command used by fileinfo PECL module (recommanded for mime-type checking): * Some Microsoft Excel documents are detected as Microsoft Word documents * Some HTML files are just text/plain * ... I tested on multiple machines (with different version of