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:
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)
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:
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
Thanks,
When I try:
?
$lines = join('', file(http://www.ansilion.com;));
echo $lines;
?
I get the following error:
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,
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: .
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
8 matches
Mail list logo