Re: [PHP] problem with using include to a URL

2004-09-01 Thread Tim Wolgemuth
When I run it from the command line it works. But if I run it through Apache it does not work. Tim John Holmes wrote: From: "Tim Wolgemuth" <[EMAIL PROTECTED]> This is the way that the customer waits to do it. Here is the sample code that is being included: print "this is a test2"; ?> Well

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
From: "Tim Wolgemuth" <[EMAIL PROTECTED]> This is the way that the customer waits to do it. Here is the sample code that is being included: print "this is a test2"; ?> Well tell the customer he's wrong! ;) Seriously... what if you try something like include('http://www.google.com'), does that

Re: [PHP] problem with using include to a URL

2004-09-01 Thread Tim Wolgemuth
This is the way that the customer waits to do it. Here is the sample code that is being included: print "this is a test2"; ?> Tim John Holmes wrote: From: "Tim Wolgemuth" <[EMAIL PROTECTED]> We do have "allow_url_fopen" set to be on. I can not find any docs. on "allow_burl_fopen". Was that a

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
From: "Tim Wolgemuth" <[EMAIL PROTECTED]> We do have "allow_url_fopen" set to be on. I can not find any docs. on "allow_burl_fopen". Was that a typo or where can I find info for that variable? sorry, that was a typo. Apparently my spell checker thinks "burl" is a better word than "url". :) PH

Re: [PHP] problem with using include to a URL

2004-09-01 Thread Tim Wolgemuth
We do have "allow_url_fopen" set to be on. I can not find any docs. on "allow_burl_fopen". Was that a typo or where can I find info for that variable? PHP is working fine if we do the includes like this: include '/somepath/somefile.php'; The URL that we are trying to get to is on the same box.

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
From: "Tim Wolgemuth" <[EMAIL PROTECTED]> Code that produces errors: fopen("http://somewebhost.domain.gTLD/index.html";, "r"); $httpfile = file_get_contents("http://somewebhost.domain.gTLD/index.html";); include 'http://somewebhost.domain.gTLD/index.html'; ?> Errors: Warning: fopen(http://somew

[PHP] problem with using include to a URL

2004-09-01 Thread Tim Wolgemuth
We are currently experiencing issues with HTTP streams within PHP scripts. The following will present sample code that produces the error, error messages, and system information. Code that produces errors: http://somewebhost.domain.gTLD/index.html";, "r"); $httpfile = file_get_contents("http://