|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-18 23:48 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 15:00:01 2026 UTC |
Description: ------------ Is this a problem with my php congig or just doesn't work with IIS 5/Windows? At first it said that i did not have access to the file, so i allowed read-only in the permissions, and then it said resource id #2. This also happens when opening a url Thanks in advance Reproduce code: --------------- LOCAL FILE CODE: <?php $file = fopen('C:\Inetpub\wwwroot\test.txt', 'r'); echo $file; ?> URL CODE: <?php $file = fopen('http://www.google.com', 'r'); echo $file; ?> Expected result: ---------------- it opens the contents of the file or url i type in which the browser would display, because the contents are html tags... Actual result: -------------- resource id #2