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
<?php
$Fichier = "toto.tmp";
$Canal = fopen ($Fichier,"w");
fputs ($Canal,"Coucou \n");
fclose($Canal);
?>
$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>";
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);
Users browsing this forum: No registered users and 196 guests