🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Php y Telnet

#14675
From: Victor M. Varela
Date: Sat, 14 Oct 2000 00:49
23 lines
1453 bytes
Jose Luis wrote:

> Hola,

> Necesito ejecutar un CGI programado en PHP (prueba.php3)
> desde TELNET. �c�mo puedo hacerlo?

No entiendo demasiado bien la pregunta.
Debe existir un ejecutable "php", bastaria con ejecutar (por ejemplo):
/usr/local/bin/php prueba.php3

> Si hay que hacer otro programa que ejecute el CGI en PHP,
> ponedme un ejemplo.

Puedes hacer el script directamente ejecutable incluyendo la linea
#!/usr/local/bin/php -f
al principio del archivo, y dandole permisos de ejecucion.


> Gracias y Salu2. Jose Luis

Un saludo.
    -- victor
Technical Details
Message-ID: <39e79fa0@news>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!news!212.73.53.208
References: <8plcq5$hma$1@talia.mad.ttd.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,8476dd6579501291
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2000-10-13 16:50:06 PST
Subject: Re: Php y Telnet
From: victor@NOSPAMnetims.com (Victor M. Varela)
Newsgroups: es.comp.os.linux.programacion
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: NewsPortal 0.19
X-HTTP-Posting-Host: denzel.red.local
References: <8plcq5$hma$1@talia.mad.ttd.net>
Organization: ein schlecht konfiguriertes HTTP<->NNTP Gateway
NNTP-Posting-Host: 212.73.53.208
X-Original-NNTP-Posting-Host: 212.73.53.208
Message-ID: <39e79fa0@news>
Date: 14 Oct 2000 01:49:52 +0100
X-Trace: 14 Oct 2000 01:49:52 +0100, 212.73.53.208
Lines: 24
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!news!212.73.53.208