note 75418 added to function.get-resource-type

From: Date: Tue, 29 May 2007 11:07:13 +0000
Subject: note 75418 added to function.get-resource-type
Groups: php.notes 
Request: Send a blank email to php-notes+get-126992@lists.php.net to get a copy of this message
Furthermore, this function returns 'stream' on php 4.3 on windows & linux. You if you want to differentiate between a file resource and other stream resources, as stated before stream_get_meta_data() gives you an array which, on my system, contains the following elements which might suggest a file handle: [wrapper_type] => plainfile [stream_type] => STDIO However I've only compared this to a stream from a url, so I include this only as a suggestion. ---- Server IP: 194.145.210.4 Probable Submitter: 81.138.3.30 ---- Manual Page -- http://www.php.net/manual/en/function.get-resource-type.php Edit -- https://master.php.net/note/edit/75418 Del: integrated -- https://master.php.net/note/delete/75418/integrated Del: useless -- https://master.php.net/note/delete/75418/useless Del: bad code -- https://master.php.net/note/delete/75418/bad+code Del: spam -- https://master.php.net/note/delete/75418/spam Del: non-english -- https://master.php.net/note/delete/75418/non-english Del: in docs -- https://master.php.net/note/delete/75418/in+docs Del: other reasons-- https://master.php.net/note/delete/75418 Reject -- https://master.php.net/note/reject/75418 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126992) next »