Skip to content

Latest commit

 

History

History
104 lines (62 loc) · 1.56 KB

README.md

File metadata and controls

104 lines (62 loc) · 1.56 KB

Php Homepage

_ A popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

PHP: Hypertext Preporcessor

Free Programming Books Langs

https://github.com/EbookFoundation/free-programming-books/blob/main/books/free-programming-books-langs.md#php

Php tutorial

PHP Programming Language Tutorial - Full Course

https://youtu.be/OK_JCtrrv-c

Php Tutorial 2 _ w3schools

https://www.w3schools.com/php/default.asp



macOS install php

brew install php

설치하고 나서 라이브 서버 같은 서버 활성화 해주기

brew services restart php



php -S 127.0.0.1:8080

index.php 만들어 주고

chrome 열어서 http://localhost:8080

index.php 예제 코드

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>

        <?php
            echo("Hello World");
        ?>
    </body>
</html>

작업 다 끝나고 서버 중지

brew services stop php


data-structure-php-clanguage

https://github.com/elarity/data-structure-php-clanguage


Php_다른 방법으로 코드 보기

  • node 와 비슷하게 한다.

hello.php

<?php
    echo("Hello World Php\n");
?>

terminal 창에서

$ php hello.php


Hello World Php

잘 나온다.

JavaScript 파일 node로 하는것과 비슷하다.