[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 w

[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] PHP auto global variables inside C extension

2005-03-21 Thread Arjun Jain
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? Well what I am trying to do is put the uploaded file in a custom database. But for that I require all the four param

[PHP-DEV] SWIG and C++ extensions

2005-02-23 Thread Arjun Jain
Hello everyone, How good is SWIG (http://www.swig.org/) for creating C++ extensions? Anyone has any experience with it? Is it production quality? Any comments will be appreciated. Thanking you in advance. Regards, Arjun http://arjun.notlong.com -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] C++ Extension

2005-02-22 Thread Arjun Jain
Hi, Thank you very much Pierre and Michael. I will get going with PECL. The problem I am facing is that the PI API is a C++ framework. And, it is under constant updation. So, if I manually write the wrapper functions, there will be a huge problem in maintaining it. I was wondering if there is a cou

[PHP-DEV] Writing an Extension

2005-02-21 Thread Arjun Jain
Hello everyone, I am not sure if this is the right place to ask this but let me anyways. We need to write a PHP extension for the PI API (http://www.picorp.com). I have been googling and reding up stuff over the net for the last 3 days but alas not to much help. Other than ext_skel and PECL_Gen, ar