larvae Posted August 24, 2007 Report Share Posted August 24, 2007 Sāpe tāda, ka negrib darboties skripts caur command prompt. Palaižu php.exe D:\drankis.php, bet neko neizdara un outputs arī nekāds nav. Mēģināju ar -f, -F, bet pofig. Caur browseri strādā lieliski. Link to comment Share on other sites More sharing options...
andrisp Posted August 24, 2007 Report Share Posted August 24, 2007 Tieši konkrētais skripts neiet vai neviens neiet ? Pamēģini kaut ko līdzīgu <?php echo 'test'; ?>. Kas īsti notiek, kad tu mēģini palaist to skriptu ? Link to comment Share on other sites More sharing options...
larvae Posted August 24, 2007 Author Report Share Posted August 24, 2007 <?php echo 'trjam'; ?> strādā. Bet mans skritps, kas browserī iet kā pulkstenis, nestrādā. A notiek... notiek nekas. Ne erroru izmet, ne izdrukā ko. Dead silence. Arī neuzkarās. Kurā virzienā rakt? Link to comment Share on other sites More sharing options...
andrisp Posted August 24, 2007 Report Share Posted August 24, 2007 (edited) Varbūt sāc ar to, ka parādi to skriptu. (paste.php.lv) PS. Kā arī izlasi šo: http://lv.php.net/manual/en/features.commandline.php . Varbūt palīdzēs. Edited August 24, 2007 by andrisp Link to comment Share on other sites More sharing options...
larvae Posted August 24, 2007 Author Report Share Posted August 24, 2007 Ok, stupidity bites. :) error_reporting, protams, tika aizmirsts. Jautājums #2: Nafig CLI nejēdz mssql_connect(), bet browserī viss ok? PHP instalācija taču tā pati... Link to comment Share on other sites More sharing options...
andrisp Posted August 24, 2007 Report Share Posted August 24, 2007 Ko nozīmē nejēdz ? Kādi kļūdas paziņojumi ? Link to comment Share on other sites More sharing options...
v3rb0 Posted August 24, 2007 Report Share Posted August 24, 2007 phpinfo() paprasi no cli Link to comment Share on other sites More sharing options...
larvae Posted August 24, 2007 Author Report Share Posted August 24, 2007 (edited) Kādi kļūdas paziņojumi ? Call to undefined function. Eu, nevar pieattačot txt failu :/ Edited August 24, 2007 by larvae Link to comment Share on other sites More sharing options...
Kaklz Posted August 24, 2007 Report Share Posted August 24, 2007 paskaties phpinfo(), ko dod php CLI: php -i tur sameklē, no kurienes tiek ņemts php.ini fails, pēc tam tālāk skaties php.ini, vai tur vispār tiek ielādēts mssql modulis, ieslēdz error_reporting un display_errors šajā php.ini failā. Link to comment Share on other sites More sharing options...
rpr Posted August 26, 2007 Report Share Posted August 26, 2007 cli un apache php ir divas dazjaadas lietas. debiaanim piemeeram speciaali jaainstalee klaat pakage, lai vareetu izmantot mysql kopaa ar cli. Link to comment Share on other sites More sharing options...
Recommended Posts