[PHP] Re: [PHP-INSTALL] Getting file pointer from file descriptor

2010-04-23 Thread Rasmus Lerdorf
You seem to be quite confused. First of all, a function like fdopen() which has never existed in any version of PHP, wouldn't read/write anything. In C that function will return a FILE pointer from a file descriptor. You would then use fread()/fwrite() to read and write from that FILE pointer.

[PHP] Re: [PHP-INSTALL] Getting file pointer from file descriptor

2010-04-16 Thread Naga Kiran K
Hi Rasmus, Thanks for reply. The requirement I was looking for is to read/write given only the file descriptor number. PHP-CGI binary is invoked by a webserver that runs in jail-directory and doesn't have access to the file path directory. So, it communicates with another daemon that opens a sock