Re: Scrip en php fuera de linea.
| From: | Caco Patane | Date: | Mon, 23 Jan 2006 16:02:16 +0000 |
| Subject: | Re: Scrip en php fuera de linea. | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-57470@lists.php.net to get a copy of this message | ||
Jorge,
Supongamos que tener un archivo llamado /tmp/test.php que contiene lo siguiente:
#!/usr/bin/php
echo "este es mi script en php";
Lo llamas con la funcion system de la siguiente manera:
system("/tmp/test.php");
O bien de la siguiente
system("php -q /tmp/test.php");
Saludos,
Andres.
On 1/23/06, Jorge Eduardo Olaya Perdomo <jorgeeolayap@gmail.com> wrote:
> Gracias por su respuesta rapida y oportuna, sin embargo no me funciono
> intente con:
>
> <?php
> $var1 = system('#!/var/www/html/prueba2.php') ;
> if ($var1)
> {
> echo "lo felicito";
> }
> else
> {
> echo "No lo felicito";
> }
>
> y no me ejecuto y ademas se va por el else. Que estoy haciendo mal.
>
--
And the void rumbles in
Like an underground train
Forever comes closer
The world is in pain
We all must be shown, we must realise
That everyone changes and everything dies
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT dpu s:-- a-- C++ UL+++ P-- L++ E--- W+++ N o-- K- w---
O---- M V- PS+++ PE-- Y+ PGP t+ 5-- X+ R+++ tv-- b++ DI-- D++
G++ e h+ r-- y**
------END GEEK CODE BLOCK------