Write haof XML files: Caco Patane
(
cacopatane@gmail.com)
Fecha: lun 23 ene 2006 - 17:02:16 CET
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------ -- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Este archivo fue generado por hypermail 2.1.7 : sáb 18 mar 2006 - 18:23:29 CET