bobsters Posted May 11, 2010 Report Share Posted May 11, 2010 Izskatot visus google.lv dotos piemērus atradu dažādus piemērus kā palaist failu backgroundā. Bet uzrakstot sev nekas neizdodas :( exec("php /var/www/dir_new/xxxp.php >/dev/null"); system("/usr/bin/php -q -f /var/www/dir/xxx.php >>/dev/null 2>>/dev/null &"); kur ir kļūda! failu neizdodas palaist ;( Quote Link to comment Share on other sites More sharing options...
waplet Posted May 11, 2010 Report Share Posted May 11, 2010 LINUX lieto :? funkcijas vispār tev nav diseiblotas šīs? Quote Link to comment Share on other sites More sharing options...
Леший Posted May 11, 2010 Report Share Posted May 11, 2010 exec("php /var/www/dir_new/xxxp.php >/dev/null"); Šeit manliekas arī vajag to & zīmi. Quote Link to comment Share on other sites More sharing options...
bobsters Posted May 11, 2010 Author Report Share Posted May 11, 2010 (edited) LINUX lieto :? funkcijas vispār tev nav diseiblotas šīs? ja lietoju Linux! Ne funkcija nav diseiblota jo echo exec ("ls -l"); strādā nevainojami :) ar to & zimi nekas nemainas :( Edited May 11, 2010 by bobsters Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted May 11, 2010 Report Share Posted May 11, 2010 Kas notiek ja tu taas komandas palaid pa taisno terminaalii? P.S. & background'o Quote Link to comment Share on other sites More sharing options...
bobsters Posted May 11, 2010 Author Report Share Posted May 11, 2010 (edited) palaidu ar exec ("php fails.php"); system ("php fails.php"); Kļūda bija tā ka php failā vajadzēja būt #!/usr/bin/php -q <?php talak kods ?> Edited May 11, 2010 by bobsters Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.