LoginSignup
1
0

More than 3 years have passed since last update.

【PHP】コマンドでPHPファイルを任意のPHPバージョンを指定して実行する。

Posted at

開発環境でxamppを複数バージョン使っているため、PATHを通したPHP以外で実行したいことが多々あるため、メモとして残します。

■やり方


C:/xampp5.6.32/php/php.exe -f "C:projects/testproject/test.php"

はじめにPHP実行ファイルのフルパス。
-fオプションでファイル実行になります。
最後に実行するPHPファイルのフルパスを指定。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0