Artic^MX Posted July 25, 2006 Report Share Posted July 25, 2006 zinu, ka ir iespējams izlaist php skriptu caur šellu (bez webserver), bet jautājums tāds. ir iespējams izlaist php skriptu caur šellu, ja man vajadzīga arī gd2 ekstensija, ja man vienā mapē būs php.exe php.ini un php_gd2.dll man image_funkcijas darbosies? Link to comment Share on other sites More sharing options...
hmnc Posted July 25, 2006 Report Share Posted July 25, 2006 ja php nokonfigurēts ar attiecīgām extencijām tad jā un vai nebija vieglāk to vienkārši pārbaudīt? Link to comment Share on other sites More sharing options...
Artic^MX Posted July 25, 2006 Author Report Share Posted July 25, 2006 ok, bet kā man piešūt to php.ini? C:\Documents and Settings\Admin>Desktop\php\php.exe -c C:/Documents and Settings /Admin/Desktop/php -f C:/saka2006_1_diena/index.php Status: 404 X-Powered-By: PHP/4.4.1 Content-type: text/html No input file specified. vot to man rāda, daru kaut ko nepareizi? Link to comment Share on other sites More sharing options...
kaszu Posted July 25, 2006 Report Share Posted July 25, 2006 (edited) C:/Documents and Settings/Admin/Desktop/php Bez atstarpeem, pammeegini parametraa "Documents and Settings" aizvietot ar "DOCUM~1" C:/DOCUM~1/Admin/Desktop/php Edited July 25, 2006 by kaszu Link to comment Share on other sites More sharing options...
hmnc Posted July 25, 2006 Report Share Posted July 25, 2006 lasīt nemāki? 404 errors!!! Link to comment Share on other sites More sharing options...
v3rb0 Posted July 25, 2006 Report Share Posted July 25, 2006 sameklē kur ir cli php.exe versija, lai tie http headeri nemaisās. http://lv.php.net/features.commandline Link to comment Share on other sites More sharing options...
cucumber Posted July 25, 2006 Report Share Posted July 25, 2006 Vai var ari shella palaist kadu savu programmu ? Un vai ta stradajot neapedis visu atmini. Ja, ja dat var kadu piemeru. Link to comment Share on other sites More sharing options...
bubu Posted July 25, 2006 Report Share Posted July 25, 2006 Var. Prosta raksti kodu: <?php echo 1+2; ?> un laid ar php.exe (no cli direktorijas, ja php5) vai ar php-cli.exe (ja php4). Link to comment Share on other sites More sharing options...
Recommended Posts