Guest User

Oxan

a guest
May 10th, 2009
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # first find which PHP binary to use
  4. if test "x$PHP_PEAR_PHP_BIN" != "x"; then
  5.   PHP="$PHP_PEAR_PHP_BIN"
  6. else
  7.   if test "/usr/local/lamp/apache2/bin/apxs2/bin/apxs/bin/php" = '@'php_bin'@'; then
  8.     PHP=php
  9.   else
  10.     PHP="/usr/local/lamp/apache2/bin/apxs2/bin/apxs/bin/php"
  11.   fi
  12. fi
  13.  
  14. # then look for the right pear include dir
  15. if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
  16.   INCDIR=$PHP_PEAR_INSTALL_DIR
  17.   INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR"
  18. else
  19.   if test "/usr/local/lamp/php/lib/php" = '@'php_dir'@'; then
  20.     INCDIR=`dirname $0`
  21.     INCARG=""
  22.   else
  23.     INCDIR="/usr/local/lamp/php/lib/php"
  24.     INCARG="-d include_path=/usr/local/lamp/php/lib/php"
  25.   fi
  26. fi
  27.  
  28. exec $PHP -C -q $INCARG -d output_buffering=1 -d variables_order=EGPCS -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file="" $INCDIR/pearcmd.php "$@"
Advertisement
Add Comment
Please, Sign In to add comment