Re: [PHP] How to catch the output of http:// - text file?

2001-05-05 Thread Alexander Skwar
So sprach elias am Wed, May 02, 2001 at 04:28:41PM -0700: $lines = join('', file(http://www.mysite.com/generator.php?id=$i)); Easier: $lines = readfile('URL...'); Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] How to catch the output of http:// - text file?

2001-05-05 Thread Alexander Skwar
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:19:49AM +0200: Warning: Bad arguments to join() in c:\program files\nusphere\apache\htdocs\test.php on line 2 See http://php.net/join and you'll see the error. Alexander Skwar -- How to quote: http://learn.to/quote (german)

Re: [PHP] How to catch the output of http:// - text file?

2001-05-05 Thread Alexander Skwar
So sprach Kraa de Simon am Thu, May 03, 2001 at 10:32:47AM +0200: I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32. Fine - so? PS: No fullquotes, please... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] How to catch the output of http:// - text file?

2001-05-05 Thread Alexander Skwar
So sprach Kraa de Simon am Thu, May 03, 2001 at 11:05:08AM +0200: Could it have something to do with the fact that the webserver is behind a firewall/proxy or something? When I enter the http addres in the browser everything works fine... I think the issue is, that PHP is not HTTP/1.1

RE: [PHP] How to catch the output of http:// - text file?

2001-05-03 Thread Kraa de Simon
Thanks, When I try: ? $lines = join('', file(http://www.ansilion.com;)); echo $lines; ? I get the following error:

RE: [PHP] How to catch the output of http:// - text file?

2001-05-03 Thread Kraa de Simon
I'm on Windows 2000, Apache 1.3.12 / PHP 4.0.4pl1 and MySQL 3.23.32. -Original Message- From: Kraa de Simon [mailto:[EMAIL PROTECTED]] Sent: donderdag 3 mei 2001 10:20 To: 'elias'; [EMAIL PROTECTED] Subject: RE: [PHP] How to catch the output of http:// - text file? Thanks,

Re: [PHP] How to catch the output of http:// - text file?

2001-05-03 Thread Wieger Uffink
Hi Simon, Try the following for reading the files, for(i=1;i2000;i++) { $response=; $request=kbid=$i; //Header $header = POST kb.html HTTP/1.0\r\n; $header .= Content-type: application/x-www-form-urlencoded\r\n; $header .= Content-length: .

Re: [PHP] How to catch the output of http:// - text file?

2001-05-02 Thread elias
Never tried what i'll write you, but it should work though! for ($i=0;$i2000;$i++) { $lines = join('', file(http://www.mysite.com/generator.php?id=$i)); // save $lines to a file. } -elias http://eassoft.cjb.net Kraa de Simon [EMAIL PROTECTED] wrote in message