Com obrir i provar un script PHP a WampServer: 12 passos

Taula de continguts:

Com obrir i provar un script PHP a WampServer: 12 passos
Com obrir i provar un script PHP a WampServer: 12 passos

Vídeo: Com obrir i provar un script PHP a WampServer: 12 passos

Vídeo: Com obrir i provar un script PHP a WampServer: 12 passos
Vídeo: Te enseño a usar GIMP en 26 minutos (edición de imágenes) 2024, Març
Anonim

WampServer és un entorn de desenvolupament web per a Windows. És fàcil d’utilitzar i, un cop sabeu com, podreu obrir i provar un script PHP sense problemes.

Passos

Obriu i proveu un script PHP al WampServer Pas 1
Obriu i proveu un script PHP al WampServer Pas 1

Pas 1. Descarregueu WAMP

Un cop l'heu descarregat, localitzeu el fitxer.exe i obriu-lo.

Baixeu-vos la versió WAMP que s'adapti al vostre sistema operatiu (per exemple, si el vostre sistema operatiu és de 64 bits, descarregueu-la)

Obriu i proveu un script PHP al WampServer Pas 2
Obriu i proveu un script PHP al WampServer Pas 2

Pas 2. Aneu al controlador que heu instal·lat wamp a / wamp64 / www \

Obriu i proveu un script PHP al WampServer Pas 3
Obriu i proveu un script PHP al WampServer Pas 3

Pas 3. Creeu una carpeta nova

Feu clic amb el botó dret a qualsevol espai en blanc i seleccioneu Nou. A continuació, trieu Carpeta i doneu un nom a la carpeta (el nom de la carpeta serà el nom del projecte a WampServer).

Obriu i proveu un script PHP al WampServer Pas 4
Obriu i proveu un script PHP al WampServer Pas 4

Pas 4. Obriu qualsevol editor de text (com ara el bloc de notes)

Obriu i proveu un script PHP al WampServer Pas 5
Obriu i proveu un script PHP al WampServer Pas 5

Pas 5. Escriviu el guió

Escriviu l’script que voleu provar.

Obriu i proveu un script PHP al WampServer Pas 6
Obriu i proveu un script PHP al WampServer Pas 6

Pas 6. Deseu l'script

Deseu l'script a la carpeta que hem creat al controlador en què heu instal·lat WAMP (wamp64 / www / wikihow). Per fer-ho, feu clic a Fitxer i després a Desa com a.

Poseu un nom al fitxer i no oblideu afegir.php (Extensió de fitxer PHP) al final del nom del fitxer (per exemple, Wikihow.php)

Obriu i proveu un script PHP al WampServer Pas 7
Obriu i proveu un script PHP al WampServer Pas 7

Pas 7. Tanqueu l'editor de text

Obriu i proveu un script PHP al WampServer Pas 8
Obriu i proveu un script PHP al WampServer Pas 8

Pas 8. Obriu el navegador

Obriu i proveu un script PHP al WampServer Pas 9
Obriu i proveu un script PHP al WampServer Pas 9

Pas 9. Escriviu "Amfitrió local" a la barra d'adreces

Obriu i proveu un script PHP al WampServer Pas 10
Obriu i proveu un script PHP al WampServer Pas 10

Pas 10. Feu clic al nom del projecte dels vostres projectes

Obriu i proveu un script PHP al WampServer Pas 11
Obriu i proveu un script PHP al WampServer Pas 11

Pas 11. Feu clic al fitxer PHP per obrir-lo

Obriu i proveu un script PHP al WampServer Pas 12
Obriu i proveu un script PHP al WampServer Pas 12

Pas 12. Comproveu el fitxer PHP

Si detecteu algun error al fitxer php, aneu a / wamp64 / www / wikihow i feu clic amb el botó dret a PHP. Feu clic a Fitxer> Obre amb i després al Bloc de notes. Intenteu esbrinar l’error i solucionar-lo. Quan hàgiu acabat, feu clic a Fitxer> Desa i actualitzeu la pàgina PHP per saber si l'error s'ha solucionat.

Recomanat: