0

やあみんなzendframe作業のための環境を設定するためにあなたの助けが必要ですか?NetBeansをD:/ program files / netbeansの下のD:ドライブにインストールしました。zendフレームワークはD:ドライブの下にあります。私のwampパッケージはc:/wampの下にインストールされています。今私が必要としているのは、私の開発のためにこれらすべてを構成することですか?

私はグーグル、stackoverflow、そして私が一日中できるすべてのブログを検索しました。しかし、私が得たのは以下のエラーだけです。

'"php.exe"'は、内部または外部コマンド、操作可能なプログラム、またはバッチファイルとして認識されません。

どうすればこれを解決できますか?私は何をすべきか ?これらすべてを1つの屋根の下に設定する必要がありますか、それともPHPバージョンをアップグレードする必要がありますか?

はい私の設定は以下に書かれています。

PHP 5.2.6、MySQL 5.0.51b、Apache2.2.8を搭載したWAMPサーバー2.0c。

Netbeans7.1.1およびZendフレームワーク1.11.11

4

3 に答える 3

3

php.exeを環境変数PATHに追加します。php.exeがインストールされているディレクトリをPATH環境変数に追加すると(有効にするにはログアウトする必要がある場合があります)、機能するはずです。

このチュートリアルを参照してください

于 2012-04-27T14:45:43.593 に答える
1

実際には、Netbeans内のOptions - PHP - GeneralタブでPHPインタープリターへのパスを指定できます。

おそらく、Zendモジュール(少なくとも1つを自動ロードする)を認識できるように、include_pathも設定する必要があります。

于 2012-04-27T14:50:03.217 に答える
1

まず、PHPの最新バージョンに更新します。

次に、PHPが環境のPATH変数にあることを確認します。あなたはそれを行う方法をグーグルで調べることができます。

そのセットアップを取得した後、phpunitもインストールする必要があります。WAMPが付属しているかもしれませんが、私はそれを疑っています。あなたが梨を持っているならば、通常これは簡単です。pearコマンドはphpunitサイトから入手できます。

梨がない場合は、それをインストールする必要があります。適切な「go-pear.phar」ファイルをダウンロードします。通常、実行してインストールしますphp go-pear.phar' and then you can use pear it install phpunit.

You can then call it a day OR you can continue setting up Netbeans to automatically use phpunit.

If you don't setup netbeans then you'll have to just use phpunit on the command line.

After the pear phpunit install just run phpunit on the command line and you should get some sort of 'help' output.

Edit : Step by step details.

I'm going to assume you have xdebug, php, netbeans installed from your comments. It seems like your only issue is installing phpunit.

Here goes.

  1. Open up a command prompt

  2. Open a browser window.

  3. In your browser go to http://pear.php.net/go-pear

  4. Save the text file that comes up into the directory php is installed in.

  5. Go to the php directory php is installed in via the cd command on the terminal.

  6. Type in the command php go-pear.phar

  7. Follow the installation instructions for pear and pick the options that make the most sense. I just install everything in the php directory so php and pear live in the same place.

  8. After pear is installed type in the following commands ( from the phpunit install website : http://www.phpunit.de/manual/current/en/installation.html ) You might have to use sudo here, if you're on windows maybe not.

    pear config-set auto_discover 1

    pear install pear.phpunit.de/PHPUnit

9 Run phpunit -hコマンドラインで、ヘルプメッセージが表示されるはずです。Windowsを使用している場合は、これを試す前に、新しいコマンドラインプロンプトを開く必要がある場合があります。

于 2012-04-27T16:15:20.800 に答える