Re: Passing a filepointer to a external module

From: Date: Sun, 18 Jun 2000 09:49:19 +0000
Subject: Re: Passing a filepointer to a external module
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21673@lists.php.net to get a copy of this message
On Sat, Jun 17, 2000 at 10:31:39PM -0700, Sterling Hughes wrote: > Does anyone know if its possible to fetch a filepointer resource (le_fopen) > from an external module (something like the SWF module or the WDDX module > for example)? I'm working on integrating libcurl support and I need to be > able to do something like this: > > $fp = fopen("somefile.txt", "r"); > $cp = new curl("http://www.designmultimedia.com"); > $cp->setinfile($fp); > $cp->execute(); > $cp->free(); > fclose ($fp); what = zend_fetch_resource(arg1,-1,"File-Handle",&type,1,php_file_le_fopen()); does the job - just check file.c for details. tc > > So I'm wondering how to fetch the local (to ext/standard/file.c) le_fopen > filepointers into a variable. > > Sterling > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#21673) next »