For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > June 2006 > #37901 [Opn]: Unable to find the wrapper "file"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37901 [Opn]: Unable to find the wrapper "file"
tony2001@php.net

2006-06-24, 8:03 am

ID: 37901
Updated by: tony2001@php.net
Reported By: techtonik@php.net
Status: Open
-Bug Type: Streams related
+Bug Type: Documentation problem
Operating System: Windows2000
PHP Version: 4.4.2
New Comment:

The docs are wrong, there is no such wrapper in PHP4.


Previous Comments:
------------------------------------------------------------------------

[2006-06-23 12:30:10] techtonik@php.net

Description:
------------
file:// wrapper doesn't work on PHP 4.x.x, but it should according to
docs http://php.net/opendir


Reproduce code:
---------------
<?php

file_get_contents('file://C:/autoexec.bat');
file_get_contents('file://C:\autoexec.bat');
file_get_contents('file:///autoexec.bat');

$dh = opendir('file://C:\temp');


Actual result:
--------------
PHP Notice: file_get_contents(): Unable to find the wrapper "file" -
did you forget to enable it when you configured PHP? in c:\test.php on
line 3
PHP Warning: file_get_contents(file://C:/autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 3
PHP Notice: file_get_contents(): Unable to find the wrapper "file" -
did you forget to enable it when you configured PHP? in c:\test.php on
line 4
PHP Warning: file_get_contents(file://C:\autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 4
PHP Notice: file_get_contents(): Unable to find the wrapper "file" -
did you forget to enable it when you configured PHP? in c:\test.php on
line 5
PHP Warning: file_get_contents(file:///autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 5
PHP Notice: opendir(): Unable to find the wrapper "file" - did you
forget to enable it when you configured PHP? in c:\test.php on line 7
PHP Warning: opendir(file://C:\temp): failed to open dir: Invalid
argument in c:\test.php on line 7


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37901&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com