Yuav ua li cas koj teeb ib cov ntaub ntawv PHP?
Yuav ua li cas koj teeb ib cov ntaub ntawv PHP?

Video: Yuav ua li cas koj teeb ib cov ntaub ntawv PHP?

Video: Yuav ua li cas koj teeb ib cov ntaub ntawv PHP?
Video: Qhia nej Yuav ua li cas thiaj ua tau lub qhov rooj me me li lub qhov rais? | Kab nqog veg channel 2024, Kaum ib hlis
Anonim

VIDEO

Tom qab ntawd, kuv yuav muab cov ntaub ntawv PHP nyob qhov twg?

3 Teb. Qhov chaw koj pej xeem cov ntaub ntawv nyob rau hauv ib daim nplaub tshev hu ua pej xeem thiab taw tes koj lub npe sau rau hauv daim nplaub tshev no siv apache virtual host, lwm yam tsis yog pej xeem cov ntaub ntawv yuav tsum nyob rau hauv folders saum cov ntaub ntawv pej xeem thiab koj tuaj yeem xa mus rau lawv los ntawm include_path piv txwv. Qhov no yog li cas feem ntau cov qauv tsim.

Kuv yuav qhib cov ntaub ntawv php hauv Windows li cas? Yuav ua li cas khiav PHP Script li Windows Service nrog AlwaysUp

  1. Pib ib qho kev hais kom ua (Start khawm> Khiav> cmd.exe)
  2. Hauv qhov rai uas tshwm, ntaus tag nrho txoj hauv kev mus rau PHP executable (php.exe) ua raws li tag nrho txoj hauv kev rau tsab ntawv koj xav khiav raws li qhov kev pabcuam windows.
  3. Ntaus tus yuam sij Enter kom ua tiav cov kab hais kom ua.

Ib yam li ntawd, dab tsi xav tau los khiav PHP?

Rau khiav PHP rau lub vev xaib, koj xav tau rau nruab ib lub Web Server zoo li Apache thiab koj kuj xav tau database server zoo li MySQL. Muaj ntau lub web servers rau kev khiav PHP cov kev pab cuam xws li WAMP & XAMPP. WAMP server tau txais kev txhawb nqa hauv windows thiab XAMP tau txais kev txhawb nqa hauv Windows thiab Linux.

Kuv yuav paub li cas yog tias PHP raug teeb tsa?

Koj tuaj yeem ua tau kuaj dab tsi yog version ntsia ntawm koj lub computer hauv zos siv Command Prompt lossis Terminal.

Txhim kho lub version tsis tshwm sim hauv Windows.

  1. Nrhiav qhov chaw ntawm koj cov ntaub ntawv php.exe.
  2. Ntaus teeb PATH=%PATH%;C:phpphp.exe thiab nias ↵ Enter.
  3. Khiav php -v dua.

Pom zoo: