1 / 11

UVOD u PHP 1

UVOD u PHP 1. UVOD u PHP 1. KARAKTERISTIKE PHPa. Skriptni programski jezik Skraćenica od Hypertext processor Server Side Programiranje .vs. Klijent Side Programiranje PHPom osigurava interaktivnost (slanje i primanje podataka sa servera) Programski kod je tekstualan datoteka

lacy
Download Presentation

UVOD u PHP 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UVOD u PHP1 UVOD u PHP1

  2. KARAKTERISTIKE PHPa Skriptni programski jezik Skraćenica od Hypertext processor Server Side Programiranje .vs. Klijent Side Programiranje PHPom osigurava interaktivnost (slanje i primanje podataka sa servera) Programski kod je tekstualan datoteka Besplatan programski jezik

  3. OSNOVE PROGRAMIRANJE1 Slijedna struktura: CALC.HTM <HTML> <BODY> <FORM ACTION="clc.php" METHOD="post"> <INPUT TYPE="TEXT" NAME=“nX">+ <INPUT TYPE=“TEXT” NAME=“nY">= <INPUT TYPE="SUBMIT" VALUE=“Ok"><p> </FORM> </BODY> </HTML> Učitaj Izračunaj clc.php <? $nX=$_POST[‘nX']; $nY=$_POST[‘nY']; $nS=$nX+$nY1; print($nS); ?> Ispiši

  4. OSNOVE PROGRAMIRANJE2 Grananje: if (logički uvjet){ ONDA instrukcije; } else { U PROTIVNOM instrukcije; } Ako je

  5. OSNOVE PROGRAMIRANJE3 Iteracija: Dok je while (logički uvjet){ Instrukcije; }

  6. PISANJE PHPa Kod se zapisuje u tekst editoru NotePad)

  7. KOPIRANJE NA LOCAL SERVER PHPa Metoda Drag&Drop

  8. KOPIRANJE NA SERVER PHPa Metoda Drag&Drop

  9. POKRETANJE S LOCAL SERVERA PHPa localhost

  10. POKRETANJE S TENA SERVERA PHPa Tena: 161.53.202.114

  11. ZADAĆA Proučiti: - algoritamske strukture - ponoviti FORMe u HTMLu

More Related