Development

HowToInstallSymfonyOnWindowsWithWamp (diff)

You must first sign up to be able to contribute.

Changes between Version 13 and Version 14 of HowToInstallSymfonyOnWindowsWithWamp

Show
Ignore:
Author:
mick_angel00 (IP: 86.218.147.92)
Timestamp:
03/12/08 18:53:51 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToInstallSymfonyOnWindowsWithWamp

    v13 v14  
    8484}}} 
    8585 
     86or with the latest version of WAMP: WampServer 2 
     87 
     88{{{ 
     89@echo offrem ************************************************************* 
     90rem ** symfony CLI for Windows based systems (based on phing.bat) 
     91rem *************************************************************rem This script will do the following: 
     92rem - check for PHP_COMMAND env, if found, use it. 
     93rem   - if not found detect php, if found use it, otherwise err and terminateif "%OS%"=="Windows_NT" @setlocalrem %~dp0 is expanded pathname of the current script under NT 
     94set SCRIPT_DIR=%~dp0goto init 
     95:init 
     96if "%PHP_COMMAND%" == "" goto no_phpcommand 
     97IF EXIST ".\symfony" ( 
     98%PHP_COMMAND% -d html_errors=off -d open_basedir= -q ".\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9 
     99) ELSE ( 
     100rem  %PHP_COMMAND% -d html_errors=off -d open_basedir= -q "%SCRIPT_DIR%\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9 
     101%PHP_COMMAND% -d html_errors=off -d open_basedir= -q "C:\wamp\bin\php\php5.2.5\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9 
     102) 
     103goto cleanup 
     104:no_phpcommand 
     105rem echo ------------------------------------------------------------------------ 
     106rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe 
     107rem echo                  executable (e.g. C:\PHP\php.exe).  (assuming php.exe on PATH) 
     108rem echo ------------------------------------------------------------------------ 
     109set PHP_COMMAND=C:\wamp\bin\php\php5.2.5\php.exe 
     110goto init 
     111:cleanup 
     112if "%OS%"=="Windows_NT" @endlocal 
     113rem pause 
     114}}} 
     115 
    861167. Return to the command prompt and type '''"symfony"''' (without the quotes), if everything was done correctly, all the Symfony commands used in the CLI will appear in the command prompt. 
    87117