By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

file() and fopen()

P: n/a
Hi All.

$array = file ('http://www.google.de/search?q=expression');
$something = fopen( 'http://www.google.de/search?q=expression', "r");

In this two cases I get always the warning:
Warning: file(http://www.google.de/search?q=expression) - Success in
/home/alpha/kaczor/public_html/a.php on line 10

Why?

Is it connected with GET method? In this case we can't use GET?
Thanks, Andrzej.
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Andrzej" <no****@nospam.pl> wrote in message
news:bh**********@news.onet.pl...
Hi All.

$array = file ('http://www.google.de/search?q=expression');
$something = fopen( 'http://www.google.de/search?q=expression', "r");

In this two cases I get always the warning:
Warning: file(http://www.google.de/search?q=expression) - Success in
/home/alpha/kaczor/public_html/a.php on line 10

Why?

Is it connected with GET method? In this case we can't use GET?
Thanks, Andrzej.

Hi,

I have the same problem as yours, never got an answer !!!

I have a script which read a URL, using either file or fopen - it doesn't
matter. When I execute it from my home PC, it's working fine. The same
script doesn't work from my PC at work which is behind a firewall and
using proxy server.

I suspect that it's the proxy server, but not sure. Maybe I have looked
at the wrong places or overlooked but have never found anything about
this problem..... Please share if you can find anything.

Duyet.
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.