Cov txheej txheem:

Koj puas xav tau lub Web server los khiav PHP?
Koj puas xav tau lub Web server los khiav PHP?

Video: Koj puas xav tau lub Web server los khiav PHP?

Video: Koj puas xav tau lub Web server los khiav PHP?
Video: tuav wb lub neej kom ruaj khov - Mang Vang ft. Christina Xyooj [Official Audio] 2021-22 2024, Kaum ib hlis
Anonim

Hloov chaw, koj xav tau PHP ntawm a web server . Nws yog tus web server - tsis yog web browser-uas tuaj yeem cuam tshuam nrog a PHP neeg txhais lus. Koj tus browser tuaj yeem tswj hwm HTML ntawm nws tus kheej, tab sis nws yuav tsum ua qhov kev thov web server mus nrog PHP ntawv. Web browsers lis HTML, CSS, thiab JavaScript siv tus browser tus kheej code.

Ib sab ntawm no, PHP puas yog lub vev xaib server?

Koj thov ib cov ntaub ntawv, lub web server tshwm sim rau berunning PHP , thiab nws xa HTML rov qab mus rau qhov browser, ua tsaug rau qhov programming hauv PHP . Tshwj xeeb tshaj yog thaum PHP yog ntsia, lub web server tau teeb tsa kom cia siab tias qee cov ntaub ntawv txuas ntxiv kom muaj PHP lus hais.

Ib sab saum toj no, lub Web server feem ntau siv rau PHP? XAMPP yog ib qho ntawm feem ntau nquag siv opensource PHP servers rau hosting daim ntawv thov hauv zos. Nws tso cai web developers kom yooj yim sim daim ntaub ntawv, raws li nws los nrog pre-installed web cov cuab yeej zoo li MySQL, PHP , PERL, FileZilla thiab lwm yam.

Ntawm no, PHP tuaj yeem khiav yam tsis muaj server?

Txhob ntshai, rau php ib tau qhia ib yam dab tsi hu ua lub webserver built-in! Nrog qhov no, koj ua tau hloov tej folders rau hauv a server thiab tuav ib qhov chaw hauv zos muaj. Cov kab lus no yuav qhia koj li cas khiav phpmyadmin ua tsis muaj siv apache. Ces mus rau hauv paus nplaub tshev sivterminal thiab khiav ' php ib -Slocalhost: 8000'.

Koj xav tau dab tsi los khiav PHP?

Txhawm rau khiav PHP code, koj xav tau peb lub software hauv qab no ntawm koj lub tshuab hauv zos:

  1. Web Server (piv txwv li, Apache)
  2. PHP (Tus txhais lus)
  3. MySQL Databases (yeem)

Pom zoo: