Yuav Txuas Lub Tsev Qiv Ntawv Li Cas

Cov txheej txheem:

Yuav Txuas Lub Tsev Qiv Ntawv Li Cas
Yuav Txuas Lub Tsev Qiv Ntawv Li Cas

Video: Yuav Txuas Lub Tsev Qiv Ntawv Li Cas

Video: Yuav Txuas Lub Tsev Qiv Ntawv Li Cas
Video: Nab Los Tsev Yog Ua Cas ( 2 Nqe Lus qhia Tseem Ceeb) 2019 2024, Hlis ntuj nqeg
Anonim

Feem ntau, cov kws sau ntawv txaus siab rau lo lus nug ntawm yuav ua li cas thiaj li muaj kev nce ntxiv hauv cov tsev qiv ntawv ntawm cov qauv PHP faib los ntawm kev ntxiv cov tsev qiv ntawv sab nraud ntxiv rau cov khoom sau uas xav tau rau kev txhim kho ntawm ntau cov dej num.

Yuav txuas lub tsev qiv ntawv li cas
Yuav txuas lub tsev qiv ntawv li cas

Cov Lus Qhia

Kauj ruam 1

Txhawm rau txuas ib lub tsev qiv ntawv ntxiv, koj yuav tsum paub tias txhua lub tsev qiv ntawv yog txheej txheej ntawm PHP scripts, uas txhais tau tias, zoo li lwm cov ntawv sau, lawv tuaj yeem txuas nrog nrog thiab xav tau cov lus los ntawm kev luam theej rau lawv nrog cov phiaj xwm uas xav tau, thaum khaws cia. lub tsev khaws ntaub ntawv PHP ua haujlwm.

Kauj ruam 2

Yog tias koj xav tau cov ntaub ntawv hauv tsev qiv ntawv faib nrog qhov project, qhov no yog txoj kev mus.

Kauj ruam 3

Tsis tas li, koj tuaj yeem siv tib daim qauv ntawm cov tsev qiv ntawv hauv ntau cov haujlwm sib txawv. Txhawm rau ua qhov no, hauv php.ini cov ntaub ntawv sau txoj hauv kev ntawm lub tsev qiv ntawv chaw siv xws li_path parameter - piv txwv li, yog tias koj tso lub tsev qiv ntawv los ntawm txiav tawm ntawm cov archive hauv daim nplaub tshev ntawm C: tsav - qhov chaw nyob yuav zoo zoo li no: include_path = "…; C: library_php; …"

Kauj ruam 4

Ua ntej thiab tom qab lub tsev qiv ntawv saum toj no, hais kom meej txoj hauv kev rau cov tsev qiv ntawv ntxiv. Semicolons nyob rau hauv thawj qhov chaws ua ntej tsis dhau yuav tsum tau muab tshem tawm, txij li nrog lawv cov kab ntawm code hloov mus rau hauv kev tawm tswv yim. Tsis tas li, koj tuaj yeem siv lub tsev qiv ntawv uas siv cov kev txwv tsis pub siv.

Kauj ruam 5

PEAR pob, uas muaj kev sib txuas ntawm PHP qiv, tuaj yeem pab koj txuas cov tsev qiv ntawv ntxiv. Txhawm rau siv PEAR pob rau kev ua haujlwm, nruab ib tus thawj tswj hwm pob, qhov kev zov me nyuam rau kev tswj cov pob ntawv qiv no.

Kauj Ruam 6

Siv cov program, koj tuaj yeem rub tawm cov pob ntxiv los ntawm Is Taws Nem thiab teeb tsa lawv nrog pear_install parameter. Lub installation hais kom zoo ib yam yog tias koj nruab lub pob ntawm koj lub computer thiab tsis yog los ntawm lub network. Cov chaw khaws ntaub ntawv yuav nyob hauv PEAR daim nplaub tshev, uas yuav tshwm sim hauv PHP nplaub tshev tom qab kev teeb tsa.

Pom zoo: