home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / php-switch.bat < prev    next >
Encoding:
DOS Batch File  |  2004-07-07  |  498 b   |  28 lines

  1. @ECHO OFF
  2.  
  3. if exist php\phpcli.exe GOTO Normal
  4. if exist php\cli\php.exe GOTO Unnormal
  5. if not exist php\cli\php.exe GOTO Abort
  6.  
  7. :Abort
  8. echo Sorry ... cannot find php cli!
  9. echo Must abort these process!
  10. pause
  11. GOTO END
  12.  
  13. :Unnormal
  14. if exist php\cli\php.exe GOTO Copy
  15. GOTO END
  16.  
  17. :Copy
  18. copy /Y php\cli\php.exe php\phpcli.exe
  19. GOTO Normal
  20.  
  21. :Normal
  22. set PHP_BIN=php\phpcli.exe
  23. set CONFIG_PHP=install\php-switch.php
  24. %PHP_BIN% -n -d output_buffering=0 %CONFIG_PHP%
  25. GOTO END
  26.  
  27. :END
  28. pause