Page 1 of 1

is Wampp compiled with enable-cli option ?

PostPosted: 31. January 2007 21:20
by lemoineo
I want to use php-win.exe to make a cron system and
to use php-win.exe to execute script in php, this program must be compiled whith -- enable-cli

PostPosted: 31. January 2007 21:22
by Wiedmann
I want to use php-win.exe to make a cron system

And what is your problem?

No respon from a script to be run php-win.exe

PostPosted: 01. February 2007 17:46
by lemoineo
for example :
Code: Select all
<?php
$Fichier = "toto.tmp";
$Canal = fopen ($Fichier,"w");
fputs ($Canal,"Coucou \n");
fclose($Canal);
?>

this script named toto.php is running whith this next script
Code: Select all
$Execution = "c:\documents and setting\xampp\php\php-win.exe -f toto.php);
$Retour = exec($Execution,$Sorties,$Erreur);
echo "Retour:".$Retour." , Sorties:".$Sorties." , Erreur:".$Erreur."!<br>";

the variable $Erreur is always with 1 value and
the cron.tmp file is not created anywhere on my PC ....

PostPosted: 01. February 2007 18:34
by Wiedmann
running whith this next script

How did you start this next script?

Code: Select all
$Execution = "c:\documents and setting\xampp\php\php-win.exe -f toto.php);
$Retour = exec($Execution,$Sorties,$Erreur);

For testing and debuuging you shoud use "php.exe" and not "php-win.exe". Because "php-win.exe" have no output ("$Sorties").