[PHP-DEV] SAPI Marco SG

2005-03-22 Thread Arjun Jain
Hi everyone, How do I use the macro to get the information regading the orignal file name, temp file name, size etc of the file uploaded using SG(rfc1867_uploaded_files)? I found out that this returns a HashTable *. What to do next? How do I get the string names and integer size of the uploaded

[PHP-DEV] Re: SAPI Marco SG

2005-03-22 Thread Johannes Schlueter
Arjun Jain wrote: Hi everyone, How do I use the macro to get the information regading the orignal file name, temp file name, size etc of the file uploaded using SG(rfc1867_uploaded_files)? I found out that this returns a HashTable *. What to do next? How do I get the string names and

Re: [PHP-DEV] PHP auto global variables inside C extension

2005-03-22 Thread Zeev Suraski
At 09:02 22/03/2005, Arjun Jain wrote: Hi everyone, I was wondering if there was any way in which the PHP auto global variables could be used inside the C extension code? Where does php store all the global variables? It stores them in the globals hash table. Take a look at php_session_start()

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Edin Kadribasic
Hi, Most of the PDO interface is supported in pgsql driver. However we do not use native pgsql prepare/execute but PDO's built in emulation for it. If you could look into how could native api be used in pdo_pgsql that would be great. Btw. now you have the commit access to the module. Edin

[PHP-DEV] php streams - generating the http header

2005-03-22 Thread Arjun Jain
Hi everyone, Back Again :). I tried searching around, but all in vain. My question is that how do i use the php stream to generate my custom header and then write to it the corresponding file? I could get that php_stream *stream need to be created and then php_stream_write needs to be used to

Re: [PHP-DEV] php streams - generating the http header

2005-03-22 Thread Kamesh Jayachandran
Hi, Have a look at main/SAPI.c for the function sapi_header_op PHP_FUNCTION(header)in ext/standard/head.c With reagrds Kamesh Jayachandran On Tue, 22 Mar 2005 18:55:58 +0530, Arjun Jain [EMAIL PROTECTED] said: Hi everyone, Back Again :). I tried searching around, but all in vain. My

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
Most of the PDO interface is supported in pgsql driver. However we do not use native pgsql prepare/execute but PDO's built in emulation for it. If you could look into how could native api be used in pdo_pgsql that would be great. Ooer. How on earth do you simulate the parameter markers? Are they

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Dan Scott
Hi Chris: As documented in http://www.php.net/manual/en/function.pdo-prepare.php: The SQL statement can contain zero or more named (:name) or question mark (?) parameter markers for which real values will be substituted when the statement is executed. Anything beyond this would be an extension

[PHP-DEV] Unserialize()

2005-03-22 Thread shruti
Hello all, I have an issue with unserializing big objects. My object when serialized to a file creates a file as big as 29 Megs. And when i m trying to unserialize the object, it takes forever somewhere around 33-36 secs(sometimes even more). My object has one member variable which is a

Re: [PHP-DEV] Unserialize()

2005-03-22 Thread Jochem Maas
shruti wrote: Hello all, I have an issue with unserializing big objects. My object when serialized to a file creates a file as big as 29 Megs. And when i m trying to unserialize the object, it takes forever somewhere around 33-36 secs(sometimes even more). My object has one member variable which

[PHP-DEV] Upload Progress Meter Patch

2005-03-22 Thread Robert
Hello, has the Upload progress meter patch finally been applied? (http://pdoru.from.ro/) If so, what are the functions that I need to use it? Thank you, Rob -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Upload Progress Meter Patch

2005-03-22 Thread Derick Rethans
On Tue, 22 Mar 2005, Robert wrote: has the Upload progress meter patch finally been applied? (http://pdoru.from.ro/) No, it has not been applied. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Upload Progress Meter Patch

2005-03-22 Thread Xuefer
use cli as cgi, read stdin and parse header/content yourself On Tue, 22 Mar 2005 18:41:04 +0100 (CET), Derick Rethans [EMAIL PROTECTED] wrote: On Tue, 22 Mar 2005, Robert wrote: has the Upload progress meter patch finally been applied? (http://pdoru.from.ro/) No, it has not been

[PHP-DEV] output_add_rewrite_var_callback?

2005-03-22 Thread Jared Williams
Hi, Just wondered if a callback variant of output_add_rewrite_var() has ever been considered for inclusion in PHP. The callback prototype being of the form rewrite_callback($href, $name) { return 'value'; } output_add_rewrite_var_callback('foo', 'rewrite_callback'); possibly with

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
Hi Dan, What I mean is, will PDO happily parse this PostgreSQL statement and substitute the two variables correctly? SELECT '?', ? from ? where ? = $_$?$_$; Chris Dan Scott wrote: Hi Chris: As documented in http://www.php.net/manual/en/function.pdo-prepare.php: The SQL statement can contain zero

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
Anything beyond this would be an extension to the PDO spec that would have to be implemented within the actual pdo_pgsql driver. Also, I guess any extension to PDO would be silly, as it defeats he point of a standard interface... Chris -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Wez Furlong
Depends on how you define correctly ;-) Chances are that it will raise an error. I'm not sure if this should really be considered a problem; that's a really obtuse SQL statement. As a non-pgsqler, I have a hard time figuring out where the variables are. I welcome native postgres

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
Depends on how you define correctly ;-) Chances are that it will raise an error. I'm not sure if this should really be considered a problem; that's a really obtuse SQL statement. As a non-pgsqler, I have a hard time figuring out where the variables are. Well, anything that's not perfect is a

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Wez Furlong
The problem with using $ in the query is that you'd need to \ escape them; remember that PHP uses $ to interpolate its own variables. IMO, adding $ as another way to name parameters is overkill, as we already have :named style. --Wez. On Wed, 23 Mar 2005 11:33:34 +0800, Christopher Kings-Lynne

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
Wez Furlong wrote: The problem with using $ in the query is that you'd need to \ escape them; remember that PHP uses $ to interpolate its own variables. IMO, adding $ as another way to name parameters is overkill, as we already have :named style. So you are proposing that we rewrite :name and ?

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Wez Furlong
So you are proposing that we rewrite :name and ? params into $n format and use pgsql's native prepare/bind functions to do the binding? Yes. BTW, isn't the current sql parser broken for mysql backquoting anyway? eg: SELECT * FROM `my_weird ? table`; And in case you're wondering, yes

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Jason Sweat
On Wed, 23 Mar 2005 09:01:09 +0800, Christopher Kings-Lynne [EMAIL PROTECTED] wrote: Hi Dan, What I mean is, will PDO happily parse this PostgreSQL statement and substitute the two variables correctly? SELECT '?', ? from ? where ? = $_$?$_$; Oracle has bound variables, but you can't use a

Re: [PHP-DEV] pdo_pgsql

2005-03-22 Thread Christopher Kings-Lynne
SELECT '?', ? from ? where ? = $_$?$_$; Oracle has bound variables, but you can't use a bind variable for a table or field in the sql statement. And I'm not using them for pgsql in the statement above. My point was that the parser should ignore '?', ? and $_$?$_$ which are the three ways of

[PHP-DEV] Implementing support for HTTP Digest Authorization in PHP

2005-03-22 Thread LacaK
Hi everybody, I am looking for somebody, who can implement HTTP Digest Authorization in PHP. A solution, that could be useful also for many PHP users. (is more secure and so more usable than Basic authorization) HTTP Basic Authorization sends password only base64 encoded, and may be easily