Re: [PHP] file_get_contents() failing on CentOS.

2010-10-05 Thread Adam Richardson
On Tue, Oct 5, 2010 at 6:56 AM, Richard Quadling wrote: > The issue _WAS_ the firewall. > > All sorted. > > Thank you. > > Glad he got it working. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-05 Thread Richard Quadling
The issue _WAS_ the firewall. All sorted. Thank you. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
On 4 October 2010 10:48, kranthi wrote: > http_proxy or HTTP_PROXY i m not sure > Thanks. Passing it on (and learning a bit). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread kranthi
and if proxxy is the issue http://proxychains.sf.net/ will help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
On 4 October 2010 11:24, Richard Quadling wrote: > On 4 October 2010 10:48, kranthi wrote: >> http_proxy or HTTP_PROXY i m not sure >> > > Thanks. Passing it on (and learning a bit). http://docs.php.net/manual/en/function.stream-context-get-default.php#72086 Could help to some degree. Not sure

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread kranthi
http_proxy or HTTP_PROXY i m not sure -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-04 Thread Richard Quadling
On 1 October 2010 16:19, kranthi wrote: > probably not the issue, but is the php engine behind a proxy server ? > wget uses the environment variable, but PHP does not > > Kranthi. > http://goo.gl/e6t3 > Hopefully getting a reply today on this. What env_var is used by wget? -- Richard Quadling

Re: [PHP] file_get_contents() failing on CentOS.

2010-10-01 Thread kranthi
probably not the issue, but is the php engine behind a proxy server ? wget uses the environment variable, but PHP does not Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents() failing on CentOS.

2010-09-30 Thread Richard Quadling
On 30 September 2010 20:27, Adam Richardson wrote: > On Thu, Sep 30, 2010 at 5:02 AM, Richard Quadling > wrote: >> >> Hi. >> >> I'm trying to help a friend with a CentOS setup. >> >> He's installed PHP and SOAP using yum install php-soap and he is >> having problems. >> >> I assisted in the devel

RE: [PHP] file_get_contents limit

2010-06-29 Thread Daevid Vincent
> -Original Message- > From: Andrew Ballard [mailto:aball...@gmail.com] > Sent: Tuesday, June 29, 2010 1:56 PM > To: a...@ashleysheridan.co.uk > Cc: Jo?o C?ndido de Souza Neto; php-general@lists.php.net > Subject: Re: [PHP] file_get_contents limit > > On Tue,

Re: [PHP] file_get_contents limit

2010-06-29 Thread Andrew Ballard
On Tue, Jun 29, 2010 at 4:39 PM, Ashley Sheridan wrote: > > On Tue, 2010-06-29 at 16:37 -0400, Andrew Ballard wrote: > > > On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan > > wrote: > > > > > > Have you looked at the memory settings in php.ini? > > > > > > > I doubt that is the cause, at least n

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:37 -0400, Andrew Ballard wrote: > On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan > wrote: > > On Tue, 2010-06-29 at 17:02 -0300, Jo?o C?ndido de Souza Neto wrote: > > > >> The characters are stripped off of the end of the file after that point. > >> > >> -- > >> Joo Cnd

Re: [PHP] file_get_contents limit

2010-06-29 Thread Andrew Ballard
On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan wrote: > On Tue, 2010-06-29 at 17:02 -0300, Jo?o C?ndido de Souza Neto wrote: > >> The characters are stripped off of the end of the file after that point. >> >> -- >> Joo Cndido de Souza Neto >> >> "Ashley Sheridan" escreveu na mensagem >> news:12

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 17:02 -0300, Jo?o C?ndido de Souza Neto wrote: > The characters are stripped off of the end of the file after that point. > > -- > Joo Cndido de Souza Neto > > "Ashley Sheridan" escreveu na mensagem > news:1277841481.2253.39.ca...@localhost... > > On Tue, 2010-06-29 at 1

Re: [PHP] file_get_contents limit

2010-06-29 Thread Jo�o C�ndido de Souza Neto
The characters are stripped off of the end of the file after that point. -- João Cândido de Souza Neto "Ashley Sheridan" escreveu na mensagem news:1277841481.2253.39.ca...@localhost... > On Tue, 2010-06-29 at 16:53 -0300, Jo?o C?ndido de Souza Neto wrote: > >> Ive got a file with only one li

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:53 -0300, Jo?o C?ndido de Souza Neto wrote: > Ive got a file with only one line 21917 characters long but when I read > this file using $varData = file_get_contents("file.txt") it gets only 21504 > characters. > > Anyone would know why does it happen? > > Thanks in adv

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-16 Thread Richard Quadling
2009/12/16 René Fournier : > On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > > Do you have a default stream context defined for the http stream? > > Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal with), I had to route all my > calls

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread René Fournier
On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > Do you have a default stream context defined for the http stream? Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal with), I had to route all my > calls through a local proxy. > > Th

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread René Fournier
On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > Do you have a default stream context defined for the http stream? Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal with), I had to route all my > calls through a local proxy. > > Th

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread Richard Quadling
2009/12/14 Ashley Sheridan > > On Mon, 2009-12-14 at 17:03 +0200, Cafer Şimşek wrote: > > René Fournier writes: > > > On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: > > > >> René Fournier writes: > >> > >>> 4.as per php.ini, allow_url_fopen On > >> > >> Look at from phpinfo() the settin

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread Ashley Sheridan
On Mon, 2009-12-14 at 17:03 +0200, Cafer Şimşek wrote: > René Fournier writes: > > > On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: > > > >> René Fournier writes: > >> > >>> 4.as per php.ini, allow_url_fopen On > >> > >> Look at from phpinfo() the settings is already "On". > > > > Ye

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread Cafer Şimşek
René Fournier writes: > On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: > >> René Fournier writes: >> >>> 4. as per php.ini, allow_url_fopen On >> >> Look at from phpinfo() the settings is already "On". > > Yes, I know. > > Which is why it's odd that the function fails on URLs. try to get ur

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread René Fournier
On 2009-12-14, at 10:44 PM, Cafer Şimşek wrote: > René Fournier writes: > >> 4. as per php.ini, allow_url_fopen On > > Look at from phpinfo() the settings is already "On". Yes, I know. Which is why it's odd that the function fails on URLs. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread Cafer Şimşek
René Fournier writes: > 4.as per php.ini, allow_url_fopen On Look at from phpinfo() the settings is already "On". Best Regards. -- Cafer Şimşek DEV Staff Leader http://pazar.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread René Fournier
Well thanks for trying. For anyone reading this, who wants to be a hero and solve the impossible: 1. file_get_contents ($url) doesn't work -- (on remote URLs or local URLs) 2. file_get_contents ($file) works. 3. CURL works (on remote and local URLs). 4. as per php.ini, allow_u

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-14 Thread Gaurav Kumar
Sorry buddy, I cant think of anything else which is going on wrong. 2009/12/14 René Fournier > > PHP Version 5.3.0 > > Directive Local Value Master Value > allow_call_time_pass_reference Off Off > allow_url_fopen On > > > On 2009-12-14, at 12:26 AM, Gaurav Kumar wrote: > > What is the value for

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread René Fournier
PHP Version 5.3.0 Directive Local Value Master Value allow_call_time_pass_reference Off Off allow_url_fopen On On 2009-12-14, at 12:26 AM, Gaurav Kumar wrote: > What is the value for "allow_url_fopen" in your php.ini? It should be 1. > > > > > > 2009/12/13 René Fournier

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread Gaurav Kumar
What is the value for "allow_url_fopen" in your php.ini? It should be 1. 2009/12/13 René Fournier > CURL works (remote and local) > file_get_contents() doesn't work (remote or local). > > > > On 2009-12-13, at 4:3

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread René Fournier
CURL works (remote and local) file_get_contents() doesn't work (remote or local). On 2009-12-13, at 4:39 PM, Gaurav Kumar wrote: > Ok Agreed. > > Lets do one last chance to ensure that your system is allowing external > connections or connection to other systems in the network- > > Use Curl

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-13 Thread Gaurav Kumar
Ok Agreed. Lets do one last chance to ensure that your system is allowing external connections or connection to other systems in the network- Use Curl to get in the file contents. Check your PHP that Curl is enabled. Through phpinfo(); If the script output the google page then this means that th

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-12 Thread René Fournier
The thing is, the file_get_contents() fails the same way on local URLs -- that is, web sites hosted on the same machine. Or even using the machine's own IP address. On 2009-12-13, at 4:00 AM, Gaurav Kumar wrote: > Hi Rene, > > The only thing which is a hurdle is that your system/computer is no

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-12 Thread Gaurav Kumar
Hi Rene, The only thing which is a hurdle is that your system/computer is not allowing external connections. There seems to be nothing else wrong. I strongly suggest check your system firewall, any central server settings through which your system gets internet access, any antivirus s/w installed

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-11 Thread René Fournier
Hi Gaurav, On 2009-12-11, at 2:55 PM, Gaurav Kumar wrote: > A very typical problem. Good you sent the error message. > > This problem can be caused due to one of the following- > > 1. I have faced similar problem due to local firewall settings. Don't think this is it, since (1) the firewall se

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-10 Thread Gaurav Kumar
A very typical problem. Good you sent the error message. This problem can be caused due to one of the following- 1. I have faced similar problem due to local firewall settings. 2. Try some other domain; i.e. other than google com. Try some of the local area website with a particular page like www

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-10 Thread René Fournier
I thought error_reporting would display them, but I guess php.ini had them suppressed. Anyway, with: http://www.google.com')); ?> I get: Warning: file_get_contents(http://www.google.com): failed to open stream: Operation now in progress in //.php on line 7 bool(false) Does that help

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread Richard Quadling
2009/12/9 René Fournier : > It is, and I use curl elsewhere in the same script to fetch remote content. > This exact same function works fine on my MacBook Pro (10.6 client, PHP 5.3), > and *was* previously working fine under Server 10.4.11 and PHP 5.3, > > On 2009-12-09, at 11:10 PM, laruence wro

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread René Fournier
It is, and I use curl elsewhere in the same script to fetch remote content. This exact same function works fine on my MacBook Pro (10.6 client, PHP 5.3), and *was* previously working fine under Server 10.4.11 and PHP 5.3, On 2009-12-09, at 11:10 PM, laruence wrote: > try > wget http://www.googl

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread René Fournier
No. And it doesn't matter if the url is local (localhost, host.domain.com) or remote. On 2009-12-09, at 10:30 PM, kranthi wrote: > may be unrelated to your problem... but are you behind a proxy?

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread LinuxManMikeC
On Wed, Dec 9, 2009 at 8:02 AM, LinuxManMikeC wrote: > On Wed, Dec 9, 2009 at 6:45 AM, René Fournier wrote: >> Strange problem I'm having on Mac OS X Server 10.6 running PHP 5.3. Any call >> of file_get_contents() on a local file works fine -- the file is read and >> returned. But any call of f

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread LinuxManMikeC
On Wed, Dec 9, 2009 at 6:45 AM, René Fournier wrote: > Strange problem I'm having on Mac OS X Server 10.6 running PHP 5.3. Any call > of file_get_contents() on a local file works fine -- the file is read and > returned. But any call of file_get_contents on a url -- any url, local or > remote --

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread kranthi
may be unrelated to your problem... but are you behind a proxy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread Richard Quadling
2009/12/9 René Fournier : > Strange problem I'm having on Mac OS X Server 10.6 running PHP 5.3. Any call > of file_get_contents() on a local file works fine -- the file is read and > returned. But any call of file_get_contents on a url -- any url, local or > remote -- always returns false. > > v

Re: [PHP] file_get_contents works in base script but not in an included script

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 03:54:31PM -0600, LinuxManMikeC wrote: > In PHP4, I am using file_get_contents('file.sql',true) to bring in SQL > queries from files who's directory is on the include path. It works > fine in the main php scripts (ones accessible through URLs), but when > done in a php scr

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Richard Heyes
> Hey all, Hello. > I'm doing some maintenance work on an existing system and there is a piece > of code that uses file_get_contents() to read data from a URL, which is fine > in theory I suppose. > > But the problem is sometimes the server where that URL lives is not > available, and the system

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Jan G.B.
Well, you might want to do it with curl, you might want to write your own socketscript, or your just check the return variable of file_get_contents() - it'll be false on failure and it won't try to get an invalid URL forever. Guess the error is somewhere else, when your script continues indefinitel

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Chris
Jim Lucas wrote: Dee Ayy wrote: PHP Version 5.1.6 $contents = file_get_contents("http://user:[EMAIL PROTECTED]/some/path/htmlfile.html"); //WORKS $contents = file_get_contents("http://user:[EMAIL PROTECTED]/some/path/htmlfile with spaces.html");

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Maciek Sokolewicz
Dee Ayy wrote: On Mon, Nov 10, 2008 at 5:26 PM, Dee Ayy <[EMAIL PROTECTED]> wrote: My bad. I urlencoded the %20 LOL %20 works. And just in time to go home. Thanks. if you use rawurlencode() instead of urlencode() this won't be a problem; since that does change spaces to %20 instead of +.

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
On Mon, Nov 10, 2008 at 5:26 PM, Dee Ayy <[EMAIL PROTECTED]> wrote: > My bad. > > I urlencoded the %20 LOL > > %20 works. > And just in time to go home. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
My bad. I urlencoded the %20 LOL %20 works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Dee Ayy
> Have you tried to output the result of urlencode and paste the whole > thing in a browser to make sure that it works? The FF 3.0.3 browser likes http://user:[EMAIL PROTECTED]/some/path/eitherfile with spaces.ext and http://user:[EMAIL PROTECTED]/some/path/eitherfile%20with%20spaces.ext but NOT h

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Jim Lucas
Dee Ayy wrote: > PHP Version 5.1.6 > $contents = file_get_contents("http://user:[EMAIL > PROTECTED]/some/path/htmlfile.html"); > //WORKS > $contents = file_get_contents("http://user:[EMAIL > PROTECTED]/some/path/htmlfile > with spaces.html");

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Micah Gersten
Dee Ayy wrote: > PHP Version 5.1.6 > $contents = file_get_contents("http://user:[EMAIL > PROTECTED]/some/path/htmlfile.html"); > //WORKS > $contents = file_get_contents("http://user:[EMAIL > PROTECTED]/some/path/htmlfile > with spaces.html");

Re: [PHP] file_get_contents crash, if file is bigger than memory_limit

2007-06-24 Thread Jochem Maas
ecc wrote: > I really dont know, if this is the right board for this... but i think, i > have to write it down. if your looking to post a feature request then there is no list for that - the bug database would be the place to do it ... but please don't bother the devs with your feature request - i

Re: [PHP] file_get_contents

2007-06-08 Thread Richard Lynch
On Thu, June 7, 2007 3:09 pm, Chris Boget wrote: >>> What's going on? >> That's the strangest absolute path I've ever seen... it seems to >> have >> some kind of non-absolute prefix. >> This has been a troll >:) > > Pardon? I'm not sure what you mean? I think it was a Windows-bashing joke... B

Re: [PHP] file_get_contents

2007-06-08 Thread Richard Lynch
On Thu, June 7, 2007 2:39 pm, Chris Boget wrote: > Does file_get_contents() not work with absolute paths? Works for me. In fact, I try to always use absolute paths so that I don't end up affecting the totally wrong file. > I'm able to > successfully write data to a file that I create dynamically

Re: [PHP] file_get_contents

2007-06-07 Thread Robert Cummings
On Thu, 2007-06-07 at 16:09 -0400, Chris Boget wrote: > >> What's going on? > > That's the strangest absolute path I've ever seen... it seems to have > > some kind of non-absolute prefix. > > This has been a troll >:) > > Pardon? I'm not sure what you mean? Just jabbing at windows :) Cheers, Ro

Re: [PHP] file_get_contents

2007-06-07 Thread Chris Boget
What's going on? That's the strangest absolute path I've ever seen... it seems to have some kind of non-absolute prefix. This has been a troll >:) Pardon? I'm not sure what you mean? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] file_get_contents

2007-06-07 Thread Robert Cummings
On Thu, 2007-06-07 at 15:39 -0400, Chris Boget wrote: > Does file_get_contents() not work with absolute paths? I'm able to > successfully write data to a file that I create dynamically but when I go > back to actually read the contents of the file, nothing seems to work. Not > file_get_content

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
Problem solved. Thank you all very much for such quick responses. The solution was to get ssleay32.dll from the PHP 5 ZIP distribution and put in my PHP directory. For the record: With Windows and PHP 5 all that is needed to use the https protocol in file_get_contents is to make sure that bo

Re: [PHP] file_get_contents and https

2007-05-31 Thread David Giragosian
On 5/31/07, Stut <[EMAIL PROTECTED]> wrote: Bob Hanson wrote: > Thanks, Jay. > > I tried it first with a simple "http://"; call, and that worked fine. So > unless "https:..." requires something additional in the way of > arguments, that doesn't seem to be the issue. > > I'm hoping someone who ha

Re: [PHP] file_get_contents and https

2007-05-31 Thread Stut
Bob Hanson wrote: Thanks, Jay. I tried it first with a simple "http://"; call, and that worked fine. So unless "https:..." requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this remembers what special installation issue

Re: [PHP] file_get_contents and https

2007-05-31 Thread Bob Hanson
Thanks, Jay. I tried it first with a simple "http://"; call, and that worked fine. So unless "https:..." requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this remembers what special installation issues there might be. W

RE: [PHP] file_get_contents and https

2007-05-31 Thread Jay Blanchard
[snip] I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do this: $x = file_get_contents("https://user:[EMAIL PROTECTED]") I get: Warning: file_get_contents(https://...) [function.file-get-contents]: failed to open stream: Invalid argument in ... on line... [/snip] The warning t

Re: [PHP] file_get_contents

2007-02-06 Thread scotdiddle
Steven, I asked this same question a week or so on the ZEND PHP Fourm See the answer to my post for an elegant solution: http://www.zend.com/forums/index.php?t=msg&th=2977&start=0&S=fe14095d33458d18b9bc49ea04a9a13b Scot L. Diddle, Richmond VA Quoting Steven Macintyre <[EMAIL PROTECTED]>:

Re: [PHP] file_get_contents gets 404 error

2007-01-12 Thread Németh Zoltán
2007. 01. 11, csütörtök keltezéssel 22.11-kor Frank Arensmeier ezt írta: > In the manual it says: > > "You can use a URL as a filename with this function if the fopen > wrappers have been enabled...". > > First of all, I would check your php.ini file. If everything is ok > (fopen wrappers are

Re: [PHP] file_get_contents gets 404 error

2007-01-11 Thread Frank Arensmeier
In the manual it says: "You can use a URL as a filename with this function if the fopen wrappers have been enabled...". First of all, I would check your php.ini file. If everything is ok (fopen wrappers are on), maybe you could post some code. The last option would be to use an other way

Re: [PHP] file_get_contents gets 404 error

2007-01-11 Thread Németh Zoltán
2007. 01. 11, csütörtök keltezéssel 16.55-kor Jochem Maas ezt írta: > Németh Zoltán wrote: > > Hi all, > > > > I have some php websites, for example http://www.alterationx.hu/ > > > > Now I'm trying to get the site with file_get_contents, and I'm getting > > this error: > > > > Warning: file_get

Re: [PHP] file_get_contents gets 404 error

2007-01-11 Thread Jochem Maas
Németh Zoltán wrote: > Hi all, > > I have some php websites, for example http://www.alterationx.hu/ > > Now I'm trying to get the site with file_get_contents, and I'm getting > this error: > > Warning: file_get_contents(http://www.alterationx.hu/): failed to open > stream: HTTP request failed! H

Re: [PHP] file_get_contents

2006-11-17 Thread Jochem Maas
Stut wrote: > Tom Chubb wrote: >> The host support team told me that: >> Our servers do not allows a HTTP connection onto itself. This is a >> security precaution to stop recursive code. morons '; teachTheIdiotSysAdmin(); } ?> >> You can try to reference >> the code by path rather

Re: [PHP] file_get_contents

2006-11-17 Thread Stut
Tom Chubb wrote: The host support team told me that: Our servers do not allows a HTTP connection onto itself. This is a security precaution to stop recursive code. You can try to reference the code by path rather than HTTP ...which works fine! Won't something like this work... ob_start(); // I

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
The host support team told me that: Our servers do not allows a HTTP connection onto itself. This is a security precaution to stop recursive code. You can try to reference the code by path rather than HTTP ...which works fine! On 17/11/06, Tom Chubb <[EMAIL PROTECTED]> wrote: Very interesting!

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
Very interesting! I have a reseller account and on another site, the DNS entries were messed up by the host. Could be a similar problem. Thanks On 17/11/06, Stut <[EMAIL PROTECTED]> wrote: Tom Chubb wrote: > Confused! > I'm now getting: > file_get_contents(http://www.tnhosting.co.uk/scripts/gclu

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
On 17/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Tom Chubb wrote: > Confused! > I'm now getting: > file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php) > [function.file-get-contents]: failed to open stream: Connection > refused in > /home/sites/tnhosting.co.uk/public_html/scr

Re: [PHP] file_get_contents

2006-11-17 Thread Stut
Tom Chubb wrote: Confused! I'm now getting: file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/tnhosting.co.uk/public_html/scripts/gclub/updateplaylist.php on line 75 How come you can acce

Re: [PHP] file_get_contents

2006-11-17 Thread Jochem Maas
Tom Chubb wrote: > Confused! > I'm now getting: > file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php) > [function.file-get-contents]: failed to open stream: Connection > refused in > /home/sites/tnhosting.co.uk/public_html/scripts/gclub/updateplaylist.php > on line 75 > How come

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
Confused! I'm now getting: file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/tnhosting.co.uk/public_html/scripts/gclub/updateplaylist.php on line 75 How come you can access it and I can't?!

RE: [PHP] file_get_contents

2006-11-16 Thread Brad Fuller
t($ch, CURLOPT_RETURNTRANSFER, 1); > > $buffer = curl_exec($ch); > > curl_close($ch); > > > > echo "" . $buffer . ""; > > > > ?> > > > >> -Original Message- > >> From: Tom Chubb [mailto:[EMAIL PROTECTED] > >&g

Re: [PHP] file_get_contents

2006-11-16 Thread Jochem Maas
rom: Tom Chubb [mailto:[EMAIL PROTECTED] >> Sent: Thursday, November 16, 2006 10:49 AM >> To: [php] PHP General List >> Subject: Re: [PHP] file_get_contents >> >> Thanks Jochem, >> Tried that, but it's still showing php code in the text area! >> Any othe

Re: [PHP] file_get_contents

2006-11-16 Thread Jochem Maas
Tom Chubb wrote: > Thanks Jochem, > Tried that, but it's still showing php code in the text area! > Any other ideas? vanilla sky (go search for the tagline) ... if I request the following I get a page with a player into: http://www.tnhosting.co.uk/scripts/gclub/player.php if you do the

RE: [PHP] file_get_contents

2006-11-16 Thread Brad Fuller
: Tom Chubb [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 16, 2006 10:49 AM > To: [php] PHP General List > Subject: Re: [PHP] file_get_contents > > Thanks Jochem, > Tried that, but it's still showing php code in the text area! > Any other ideas? > > The url is

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
Thanks Jochem, Tried that, but it's still showing php code in the text area! Any other ideas? The url is http://www.tnhosting.co.uk/scripts/gclub/updateplaylist.php and you see it on submission. Feel free to post. It's a testing server. On 16/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Tom

Re: [PHP] file_get_contents

2006-11-16 Thread Jochem Maas
Tom Chubb wrote: > I am trying to read the contents of a "PHP" page for an audio player > and put it into a textarea to be copied and pasted into an "HTML" > page. > The trouble is the textarea shows unparsed PHP code and I just want the > HTML. > The code is: > > $player = file_get_contents('play

RE: [PHP] file_get_contents / url wrappers

2006-03-27 Thread Shaunak Kashyap
It is possible that the site is rejecting the script since it is not a browser. You can fake a browser by using the User-Agent header. I am also going to take the liberty to suggest an alternate means to the same end. If you are on a *nix system you can run the wget command to connect to the site

Re: [PHP] File_get_contents()

2005-04-07 Thread Josip Dzolonga
Jeff McKeon wrote: Does anyone know if it's possible to have file_get_contents() accept a file handle? Why would you need that ? -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
TECTED] > Sent: Thursday, April 07, 2005 8:11 AM > To: Jeff McKeon > Cc: php-general@lists.php.net > Subject: Re: [PHP] File_get_contents() > > > Jeff McKeon wrote: > > >Does anyone know if it's possible to have > file_get_contents() accept a > &g

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
Thanks!!! > -Original Message- > From: Franklin van de Meent [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 7:34 AM > To: php-general@lists.php.net > Subject: Re: [PHP] File_get_contents() > > > If you have set allow_url_fopen to On in your php.i

Re: [PHP] File_get_contents()

2005-04-07 Thread Franklin van de Meent
If you have set allow_url_fopen to On in your php.ini, file_get_contents('php://stdin'); should work On Apr 7, 2005 2:21 PM, Jeff McKeon <[EMAIL PROTECTED]> wrote: > > Sorry, > > What I'm actually doing is this. > > $handle=fopen("php//stdin/","r"); > file_get_contents($handle); > > I should

Re: [PHP] File_get_contents()

2005-04-07 Thread Jason Wong
On Thursday 07 April 2005 20:21, Jeff McKeon wrote: > Now that I look at it, does anyone think this would work... > > file_get_contents("php//stdin/"); That should be: 'php://stdin' -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

RE: [PHP] File_get_contents()

2005-04-07 Thread Jeff McKeon
e a string. > > > > I've tried: > > > > file_get_contents('{$handle}'); > > > > But that doesn't work either... > > > > Thanks, > > > > jeff > > > > -- > > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread Bas Jobsen
> string filename The name of the file. b.e test.html or $_SERVER['DOCUMENT_ROOT'].'test.html' > int use_include_path Optional 1 true or 0 (or nothing) false the file above is in my default include path. Manual: you can use the optional second parameter and set it to "1", if you want to search f