Comments on: PHP Temporary Streams http://mikenaberezny.com/2008/10/17/php-temporary-streams/ Mon, 08 Mar 2010 17:59:52 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: mvug http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-135675 mvug Thu, 05 Feb 2009 08:48:39 +0000 http://mikenaberezny.com/?p=156#comment-135675 I get sometimes (with zend_pdf) the folowing error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1572864 bytes) Is the temporary streams (php://temp) a way to fix this? Does anybody know if it's possible for zend_pdf to use a tempfile instead of memory? I get sometimes (with zend_pdf) the folowing error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1572864 bytes)

Is the temporary streams (php://temp) a way to fix this? Does anybody know if it’s possible for zend_pdf to use a tempfile instead of memory?

]]>
By: Jared http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-124020 Jared Mon, 20 Oct 2008 12:01:28 +0000 http://mikenaberezny.com/?p=156#comment-124020 Ah, this post got me thinking about it again and discovered how to get compression filters working. Have to remove the filter from the stream before try and read the compressed contents. Ah, this post got me thinking about it again and discovered how to get compression filters working.
Have to remove the filter from the stream before try and read the compressed contents.

]]>
By: Dave Marshall http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-123882 Dave Marshall Sun, 19 Oct 2008 17:34:23 +0000 http://mikenaberezny.com/?p=156#comment-123882 I've been using the temporary streams for a while now and particularly for testing like you pointed out, but I found something a little strange when doing so. I found that you could open php://memory in read only mode, but still are able to write to it, which scuppered some testing I was doing on my own logging class. I reported a bug, but nobody seemed interested, probably as it's a strange use-case. http://bugs.php.net/bug.php?id=44818 I’ve been using the temporary streams for a while now and particularly for testing like you pointed out, but I found something a little strange when doing so. I found that you could open php://memory in read only mode, but still are able to write to it, which scuppered some testing I was doing on my own logging class. I reported a bug, but nobody seemed interested, probably as it’s a strange use-case.

http://bugs.php.net/bug.php?id=44818

]]>
By: Jared http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-123806 Jared Sat, 18 Oct 2008 19:08:19 +0000 http://mikenaberezny.com/?p=156#comment-123806 I've tried to use the memory streams in the past, together with the compression filters. But sadly it doesn't work. Think the compression filters require the fclose() to finalise things, by which point you've lost the memory stream. I’ve tried to use the memory streams in the past, together with the compression filters. But sadly it doesn’t work.

Think the compression filters require the fclose() to finalise things, by which point you’ve lost the memory stream.

]]>
By: Mike Naberezny http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-123880 Mike Naberezny Sat, 18 Oct 2008 16:35:14 +0000 http://mikenaberezny.com/?p=156#comment-123880 We used <a href="http://interfax.net" rel="nofollow">interfax.net</a>. It provides a SOAP-based web service where you can send documents for faxing and then later poll their transmission status. We built a queue to manage this that can be seen in the screenshots and video on <a href="http://maintainable.com/case_studies/syneron_depot" rel="nofollow">this page</a>. We used interfax.net. It provides a SOAP-based web service where you can send documents for faxing and then later poll their transmission status. We built a queue to manage this that can be seen in the screenshots and video on this page.

]]>
By: daniel http://mikenaberezny.com/2008/10/17/php-temporary-streams/comment-page-1/#comment-123789 daniel Sat, 18 Oct 2008 15:56:37 +0000 http://mikenaberezny.com/?p=156#comment-123789 Interesting read. Could you tell a bit more about this fax integration? Do you simply send a pdf file to the machine on a network? And if so, what tools you're using for that (some native OS commands or pure php?)? Thanks Interesting read. Could you tell a bit more about this fax integration? Do you simply send a pdf file to the machine on a network? And if so, what tools you’re using for that (some native OS commands or pure php?)? Thanks

]]>