🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6413

Re: como hago este script?

#6413
From: Iván Sánchez Ortega
Date: Tue, 01 Jul 2003 00:11
39 lines
2343 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ryan dixit:

> buenas,
> Necesito hacer un script que me conecte cada cierto tiempo a una web
> http://www.pagina.com/pagina.php?variable=1
> cambiandole la variable cada vez. 

#!/usr/bin/php4
<?

for ($i=0; $i<100; $i++)
{
 fclose( fopen("http://www.pagina.com/pagina.php?variable=$i","r"));
}

?>

�O es que todav�a no conoces las maravillas de PHP como lenguaje de
scripting en consola?  ;-)

- -- 
- ----------------------------------
Iv�n S�nchez Ortega -ivansanchez-arroba-escomposlinux-punto-org

http://acm.asoc.fi.upm.es/~mr/ 
Proudly running Debian Woody 3.0 Linux with 2.4.20 kernel, KDE3, and PHP4
generating this signature.
Uptime: 02:10:10 up  3:34,  2 users,  load average: 0.19, 0.19, 0.44

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/ANGxR56dWuhgxGgRApR4AJ0XX+o5pxbRTARJrQHAL5+Wds5fSgCbBpV5
PmyDXhTdovMVVOVG0CYc8no=
=dy0c
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <20030701001129.42E6DCC6.NOFFLE@BlackSpark.local>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
References: <82a36574.0306301054.30ab48cc@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,d73ee00db177e910
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-30 17:10:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
From: Iván Sánchez Ortega <ivansanchez-@rroba-escomposlinux-.punto.-org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: como hago este script?
Date: Tue, 01 Jul 2003 02:11:29 +0200
Organization: acm.asoc.fi.upm.es
Lines: 39
Message-ID: <20030701001129.42E6DCC6.NOFFLE@BlackSpark.local>
References: <82a36574.0306301054.30ab48cc@posting.google.com>
Reply-To: Iván Sánchez Ortega <ivansanchez-@rroba-escomposlinux-.punto.-org>
NNTP-Posting-Host: 62-36-78-7.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: pinsa.escomposlinux.org 1057018249 29341 62.36.78.7 (1 Jul 2003 00:10:49 GMT)
X-Complaints-To: newsmaster@pinsa.escomposlinux.org
NNTP-Posting-Date: Tue, 1 Jul 2003 00:10:49 +0000 (UTC)
User-Agent: KNode/0.7.2