PHP Windows Microsoft ASP Internet Open Source PHP
- Slides: 14
PHP Windows Microsoft ASP Internet Open Source PHP
PHP • • • De WAMP oplossing W=Windows A=Apache M=My. SQL P=PHP
PHP • P=PHP • H=Hypertext • P=Preprocessor
Installatie • Apache installeren • Localhost 127. 0. 0. 1 roept eigen computer aan • My. SQL • Localhost/PHPmyadmin hiermee kun je de database benaderen. • Op de cdrom staat een installatieprogramma
Installatie 2 • • De map apache staat in de root c: In de map apache staat een map htdocs Hier komt de website in te staan In de Map Mysqldata komt de database te staan.
Hoe werkt PHP • Surfer ---- Webserver • De webserver geeft HTML code terug.
Verzoek in HTML + PHP • Surfer • Server
Antwoord in HTML • Surfer • Server
Verzoek in SQL • SELECT * • FROM Plaatsen MYSQLM
Voorbeeld • Surfer typt in www. kenniscentrumnn. nl • Webserver handelt verzoek af en • Geeft zuivere HTML taal terug.
Syntax PHP (2) • • Variabelen : $Persoon Iets afdrukken: Echo “Hallo wereld”; Echo “<BR>”; Echo “<font size=1>Hallo Wereld</font> Commentaar //Dit is commentaar.
Eenvoudig voorbeeld van een script: • • • <HTML><HEAD> <TITLE>Candy preference form</TITLE></HEAD><BODY> <FORM ACTION="http: //localhost/candy. php" METHOD="POST"> What's your most favorite kind of candy? <BR> <INPUT TYPE="radio" NAME="Candy" VALUE="peanut butter cups">Peanut butter cups<BR> <INPUT TYPE="radio" NAME="Candy" VALUE="Snickers">Snickers<BR> <INPUT TYPE="radio" NAME="Candy" VALUE="Turtles">Turtles<BR> <INPUT TYPE="submit"></FORM></BODY> </HTML>
HTML><HEAD><TITLE>Candy preference reply</TITLE> </HEAD><BODY>Yum, <? phpprint("$Candy! "); if($Candy == "peanut butter cups") print("There are several excellent brands of ice cream which contain small or broken-up $Candy. "); else{ print("I don't think there's an ice-cream with $Candy in it yet, "); if($Candy == "Snickers") print("but have you tried the $Candy ice cream bar? "); elseif($Candy == "Turtles") print("but the world definitely needs an ice cream with $Candy in it. "); }? ></BODY></HTML>
- Classic asp to asp.net migration
- Herramientas de movie maker
- Ged open source php
- Open source microfinance banking software
- Open source workflow bpm
- Job scheduling software open source
- Iis php
- Russian open source foundation
- Inurl:bug bounty intext:token of appreciation
- 大阪 microsoft asp.net
- 大阪 microsoft asp
- Open innovation open science open to the world
- Web.facebook.com.php
- Php php://input
- Moodle windows installer