PHP ゃ潟鴻若Linux罕膀膩

maya
篁ャ PHP ゃ潟鴻若膣剛

 

PHP

nao
PHPc鐚

maya
PHP違潟域茯1ゃ

nao
篏帥鐚

maya
Web泣若鴻

nao
cゃ潟鴻若鐚

maya
篁yum篏帥膣剛Linux泣若篋ゃ潟帥若・膓с倶

nao
篁羈鴻鐚

maya
篁CentOS7PHPゃ潟鴻若Linux泣若篁c鴻ャ若激с潟CentOSсOS若吾с潟c違翫羈

 

 

 

 

篋篏罐

maya
ゃ潟鴻若PHP若吾с潟腆肴
# yum info php
茯粋昭違ゃ:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
純宴若
                : php
≪若c    : x86_64
若吾с          : 5.4.16
若            : 43.el7_4.1
絎拷                : 1.4 M
吾        : updates/7/x86_64
荀膣                : PHP scripting language for creating dynamic web sites
URL                 : http://www.php.net/
ゃ祉潟          : PHP and Zend and BSD
茯                : PHP is an HTML-embedded scripting language. PHP attempts
                    : to make it easy for developers to write dynamically
                    : generated web pages. PHP also offers built-in database
                    : integration for several commercial and non-commercial
                    : database management systems, so writing a database-enabled
                    : webpage with PHP is fairly simple. The most common use of
                    : PHP coding is probably as a replacement for CGI scripts.
                    : 
                    : The php package contains the module (often referred to as
                    : mod_php) which adds support for the PHP language to Apache
                    : HTTP Server.

nao
箴с PHP 5.4.16 ゃ潟鴻若

maya
<ゃ≪若茵腓冴<祉若吾茵腓冴翫

nao
違PHP 7.2 ゃ潟鴻若号鐚

maya
吾菴遵綽荀с

 

ゃ潟鴻若

maya
PHPゃ潟鴻若
# yum -y install php
茯粋昭違ゃ:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
箴絖с茹f浦障
--> 潟吟激с潟腆肴絎茵障
---> 宴若 php.x86_64 0:5.4.16-43.el7_4.1  ゃ潟鴻若

祉祉祉筝ャ祉祉

ゃ潟鴻若:
  php.x86_64 0:5.4.16-43.el7_4.1                                                

箴絖ч∫cゃ潟鴻若障:
  libzip.x86_64 0:0.10.1-8.el7             php-cli.x86_64 0:5.4.16-43.el7_4.1   
  php-common.x86_64 0:5.4.16-43.el7_4.1   

絎篋障!
nao
yum-y激с潟ゃ潟鴻若筝絲障yes膈

 

ゃ潟鴻若腆肴

maya
PHPゃ潟鴻若腆肴
# php -v
PHP 5.4.16 (cli) (built: Mar  7 2018 13:34:47) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
nao
若吾с潟茵腓冴違ゃ潟鴻若

 

maya
PHP鴻腆肴
# which php
/bin/php
nao
鴻/bin/php

 

篏腆肴

maya
Hello world茵腓冴違ф荐若

1. vi潟潟сhello.php<ゃ篏

# vi hello.php

 

2. vic帥т札筝潟潟ュ

<?php echo"hello world \n"; ?>

 

3. PHP絎茵

# php hello.php
Hello world
nao
Hello world脂≪茵腓冴

 

nao
PHP綣激鴻鴻≧号鐚

maya
篁泣ゃゃ潟鴻若Progate泣ゃ

nao
泣ゃс宴鐚

maya
罧綽泣腱ゃ潟膤祉潟吾≪違潟違茹腮綺宴с鴻

nao

  • PHP違潟域茯
  • yumсゃ潟鴻若絎純

 

鐚鐚若祉鐚鐚