php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15236 include() bug
Submitted: 2002-01-26 16:54 UTC Modified: 2002-01-26 19:16 UTC
From: dev at myesys dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.1.1 OS: win2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 27 = ?
Subscribe to this entry?

 
 [2002-01-26 16:54 UTC] dev at myesys dot com
Hi,
   when I try to include an external include file with the line <? include("http://myesys.com/useronline.php?comp_id=12"); ?> under IIS PHP returns me:

Warning: Failed opening 'http://66.34.147.253/useronline.php?comp_id=12' for inclusion (include_path='.;..') 

on my Linux/Apache host the same same line work fine, but the file is on the same server.

my php.ini lines for that problem are:
allow_url_fopen = on;
include_path=".;..";

We are suppose to be able to access external http or ftp file by enable allow_url_fopen = on; or may be we cannot?

Jordi 
Thank for help


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-26 17:59 UTC] dev at myesys dot com
Ok, I have resolve my problem myself. 
We cannot open extenal file on WINNT like they say at 
http://www.php.net/manual/en/features.remote-files.php

But I really need to open remote files on WINNT, it's a question of compatibility between System (I create new kind of generic http fonctions with include()) and for me it's really a bug from PHP. PHP codes should work the same on NT or Unix. 

Thank you and please put this request on the list of thing to implement on the next WINNT PHP version.
 [2002-01-26 19:16 UTC] daniel@php.net
..and it is completely wrong to use include() for this. try fopen().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 00:01:31 2024 UTC