PHP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
export MY_PROJECT_HOME=`pwd` | export MY_PROJECT_HOME=`pwd` | ||
mkdir -p $MY_PROJECT_HOME/{usr/local/bin,var/www/html};\ | |||
curl -s https://getcomposer.org/composer-stable.phar>\ | |||
$MY_PROJECT_HOME/usr/local/bin/composer | |||
</source> | |||
==Config== | |||
{| | |||
| valign="top" | | |||
===XAMPP=== | |||
<source lang="bash"> | |||
export XAMPP_HOME=/c/opt/xampp;\ | |||
export PHP_HOME=$XAMPP_HOME/php;\ | |||
export MYSQL_HOME=$XAMPP_HOME/mysql/bin;\ | |||
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\ | |||
export PATH="$PATH:$PHP_HOME:$MYSQL_HOME:$BIN_HOME" | |||
php -i | |||
php -v | |||
php --ini | |||
composer -v | |||
mysql --version | |||
</source> | |||
| valign="top" | | |||
===Scratch=== | |||
<source lang="bash"> | |||
BASE_URL=https://windows.php.net/downloads/releases;\ | BASE_URL=https://windows.php.net/downloads/releases;\ | ||
curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip>php.zip;\ | |||
curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\ | |||
unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\ | unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\ | ||
rm -rf $MY_PROJECT_HOME/php.zip | rm -rf $MY_PROJECT_HOME/php.zip | ||
export PHP_HOME=$MY_PROJECT_HOME/usr/local/php;\ | export PHP_HOME=$MY_PROJECT_HOME/usr/local/php;\ | ||
Line 18: | Line 41: | ||
php -v | php -v | ||
composer -v | |||
composer config -g -- disable-tls true | |||
</source> | |||
|} | |||
===Portable=== | |||
<source lang="bash"> | |||
XAMPP_URL="https://netix.dl.sourceforge.net/project/xampp/XAMPP%20Windows";\ | |||
curl -s $XAMPP_URL/7.3.22/xampp-windows-x64-7.3.22-0-VC15.zip>xampp.zip;\ | |||
unzip -q xampp.zip -d $MY_PROJECT_HOME/usr/local/;\ | |||
rm -rf $MY_PROJECT_HOME/xampp.zip | |||
export XAMPP_HOME=$MY_PROJECT_HOME/usr/local/xampp;\ | |||
cd $XAMPP_HOME/htdocs/;explorer .;start;\ | |||
cd $XAMPP_HOME;start;cd htdocs | |||
export PHP_HOME=$XAMPP_HOME/php;\ | |||
export MYSQL_HOME=$XAMPP_HOME/mysql/bin;\ | |||
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\ | |||
export PATH="$PATH:$PHP_HOME:$MYSQL_HOME:$BIN_HOME" | |||
php -v | |||
mysql -V | |||
composer -v | composer -v | ||
</source> | </source> | ||
==Project== | |||
==References== | ==References== | ||
* [https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.4.10/#:~:text=xampp-portable-windows-x64-7.4.10 Download XAMPP 7.4.10 (Windows)] | |||
* [https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.3.22/#:~:text=xampp-portable-windows-x64-7.3.22 Download XAMPP 7.3.22 (Windows)] | |||
* [https://windows.php.net/download#:~:text=PHP%207.4%20(7.4.10) Download PHP 7.4.10 (Windows)] | * [https://windows.php.net/download#:~:text=PHP%207.4%20(7.4.10) Download PHP 7.4.10 (Windows)] | ||
* [https://windows.php.net/download#:~:text=PHP%207.3%20(7.3.22) Download PHP 7.3.22 (Windows)] | * [https://windows.php.net/download#:~:text=PHP%207.3%20(7.3.22) Download PHP 7.3.22 (Windows)] | ||
* [https://www.php.net/downloads.php#:~:text=Stable%20PHP%207.4.10 Download PHP 7.4.10 (Linux)] | * [https://www.php.net/downloads.php#:~:text=Stable%20PHP%207.4.10 Download PHP 7.4.10 (Linux)] | ||
* [https://www.php.net/downloads.php#:~:text=Stable%20PHP%207.3.22 Download PHP 7.3.22 (Linux)] | * [https://www.php.net/downloads.php#:~:text=Stable%20PHP%207.3.22 Download PHP 7.3.22 (Linux)] | ||
* [https://codeload.github.com/bcit-ci/CodeIgniter/zip/3.1.11 Download CodeIgniter 3.1.11] |
Latest revision as of 03:42, 22 September 2020
mkdir -p /d/tmp/dev/my_ci_project;\
cd /d/tmp/dev/my_ci_project;\
export MY_PROJECT_HOME=`pwd`
mkdir -p $MY_PROJECT_HOME/{usr/local/bin,var/www/html};\
curl -s https://getcomposer.org/composer-stable.phar>\
$MY_PROJECT_HOME/usr/local/bin/composer
Config
XAMPPexport XAMPP_HOME=/c/opt/xampp;\
export PHP_HOME=$XAMPP_HOME/php;\
export MYSQL_HOME=$XAMPP_HOME/mysql/bin;\
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\
export PATH="$PATH:$PHP_HOME:$MYSQL_HOME:$BIN_HOME"
php -i
php -v
php --ini
composer -v
mysql --version
|
ScratchBASE_URL=https://windows.php.net/downloads/releases;\
curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip>php.zip;\
unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\
rm -rf $MY_PROJECT_HOME/php.zip
export PHP_HOME=$MY_PROJECT_HOME/usr/local/php;\
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\
export PATH="$PATH:$PHP_HOME:$BIN_HOME"
php -v
composer -v
composer config -g -- disable-tls true
|
Portable
XAMPP_URL="https://netix.dl.sourceforge.net/project/xampp/XAMPP%20Windows";\
curl -s $XAMPP_URL/7.3.22/xampp-windows-x64-7.3.22-0-VC15.zip>xampp.zip;\
unzip -q xampp.zip -d $MY_PROJECT_HOME/usr/local/;\
rm -rf $MY_PROJECT_HOME/xampp.zip
export XAMPP_HOME=$MY_PROJECT_HOME/usr/local/xampp;\
cd $XAMPP_HOME/htdocs/;explorer .;start;\
cd $XAMPP_HOME;start;cd htdocs
export PHP_HOME=$XAMPP_HOME/php;\
export MYSQL_HOME=$XAMPP_HOME/mysql/bin;\
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\
export PATH="$PATH:$PHP_HOME:$MYSQL_HOME:$BIN_HOME"
php -v
mysql -V
composer -v