Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 12:19:24 PM, you wrote: BS> thaks for clarifying that to me. The only problem now is that I get a BS> timeout in my script because fopen() failed to open the stream. You can increase the timeout limit of a script. If you cannot be sure the other web site

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Hi Richard, thaks for clarifying that to me. The only problem now is that I get a timeout in my script because fopen() failed to open the stream. I have checked that the address is okay. I manage to open another site, but not this file which is on my ISP. Actually, manual telnet to port 80 of m

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Stuart
Børge Strand wrote: Here's what I do next with it. Only now this file (www.boggle.no/test6.php) times out in the brower. Do you see something that it obviously wrong here? ' . "\n"; print 'test6.php'; $fp = fopen("http://www.boggle.no/message.txt";, "r"); $contents = fread($fp); pr

Re[2]: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:32:08 AM, you wrote: BS> Do you see something that it obviously wrong here? You need to loop through the data as it comes back from the fopen function. ' . "\n"; print 'test6.php'; $fp = fopen("http://www.boggle.no/message.txt";, "rb");

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Thanks Richard, > BS> My php program uses sends send some information to a .cgi file > BS> possibly on a different site. That file uses GET to fetch the > BS> information and prints it out as it would if accessed through a > BS> browser. But instead I want my php program to intercept this and par

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 10:05:10 AM, you wrote: BS> My php program uses sends send some information to a .cgi file BS> possibly on a different site. That file uses GET to fetch the BS> information and prints it out as it would if accessed through a BS> browser. But instead I want

Re: [PHP] Accessing a website from within a php script

2004-01-13 Thread Burhan Khalid
Børge Strand wrote: Hi, In my php code, how can I fetch the input from another website and parse its output without sending it to the client? What I want to do is this: My php program uses sends send some information to a .cgi file possibly on a different site. That file uses GET to fetch the in

[PHP] Accessing a website from within a php script

2004-01-13 Thread Børge Strand
Hi, In my php code, how can I fetch the input from another website and parse its output without sending it to the client? What I want to do is this: My php program uses sends send some information to a .cgi file possibly on a different site. That file uses GET to fetch the information and print