2012-01-25 12 views
-3
C:\wamp\bin\php\php5.3.5>php.exe zf.bat create project c:\wamp\www\QuickStart 
@ECHO off 
REM Zend Framework 
REM 
REM LICENSE 
REM 
REM This source file is subject to the new BSD license that is bundled 
REM with this package in the file LICENSE.txt. 
REM It is also available through the world-wide-web at this URL: 
REM http://framework.zend.com/license/new-bsd 
REM If you did not receive a copy of the license and are unable to 
REM obtain it through the world-wide-web, please send an email 
REM to [email protected] so we can send you a copy immediately. 
REM 
REM Zend 
REM Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 
REM http://framework.zend.com/license/new-bsd  New BSD License 


REM Test to see if this was installed via pear 
SET [email protected] 
SET TMPZTMPZTMP=%ZTMPZTMPZTMPZ%[email protected] 
REM below @[email protected] 
FOR %%x IN ("@[email protected]") DO (if %%x=="%TMPZTMPZTMP%" GOTO :NON_PEAR_INSTALLED) 

GOTO PEAR_INSTALLED 

:NON_PEAR_INSTALLED 
REM Assume php.exe is executable, and that zf.php will reside in the 
REM same file as this one 
SET PHP_BIN=php.exe 
SET PHP_DIR=%~dp0 
GOTO RUN 

:PEAR_INSTALLED 
REM Assume this was installed via PEAR and use replacements php_bin & php_dir 
SET [email protected][email protected] 
SET [email protected][email protected] 
GOTO RUN 

:RUN 
SET ZF_SCRIPT=%PHP_DIR%\zf.php 
"%PHP_BIN%" -d safe_mode=Off -f "%ZF_SCRIPT%" -- %* 

答えて

3

を取得しています、それはzf.batのちょうど生のコンテンツです。

php.exe zf.bat create project c:\wamp\www\QuickStart 

php.exeまたはzf.bat、どちらか一方!
あなたはバッチファイルzf.batを解釈するためにPHPを言っているが、あなたはそうのよう実行zf.batことになっている:

> zf.bat create project c:\wamp\www\QuickStart 
関連する問題