Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようにスクリプトを実行すると:
c:\path\to\php.exe -f "c:\script.php"
dos ウィンドウでコードを「エコー」しますが、実行はしません。
理由はありますか?私がscript.phpに持っているのは次のとおりです。
<?PHP //code and stuff ?>
※このスクリプトではjavascript/jqueryも使用しています。それが重要かどうかはわかりません。
PHP は、サーバーを使用する必要があるサーバー側のスクリプト言語です。PHP の最新バージョンには開発サーバーが組み込まれているため、PHP の記述方法を学習できます。セットアップは難しくありませんが、PHP や Web 開発全般の学習に興味がある場合は、Wamp サーバーをお勧めします。セットアップは簡単で、php と mysql が付属しているため、wordpress やその他のコンテンツ管理システムを使用できます。