Professional Documents
Culture Documents
PHP Za Pocetnike
PHP Za Pocetnike
Predavanje 1
Academy387
Nermin ehi
Nermin Sehic
Student na SSST
@hadzijalagic
ba.linkedin.com/in/nerminsehic
https://github.com/newPrimitives
nerminsehic1993@gmail.com
ta je PHP?
Upotreba PHP
Wordpress
Sintaksa
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
Dokumentacija
http://php.net/docs.php
Hello world
Primjer 1
Environment
XAMPP
WAMP
MAMP
X - cross OS
A - apache
M - MySQL
P - PHP
P - Pearl
Instalacija XAMPP-a
Apache friends
https://www.apachefriends.org/index.html
Test
http://localhost
Folderi
Windows : c:\xampp\www\
Linux : /var/www/htdocs
Mac : /Applications/XAMPP/xamppfiles/htdocs
Primjer 2
Client-server model
Server
client request
server response
Client
HTTP
/folder/primjer.php?name1=value1&name2=value2
http://www.academy387.com/program/php-kursza-pocetnike
HEAD
PUT
DELETE
OPTIONS
CONNECT
Plan kursa
http://res.cloudinary.com/hfvfqj5vt/image/upload/
v1434008278/domrf8hjkgxrwxvx0svu.pdf
Vjeba
To sum up
Sta je PHP
Sintaksa PHP
Sta je XAMPP
Instalacija XAMPPa
HTTP
Pitanja?
Download prezentacije:
http://www.slideshare.net/NerminSehic/php-zapocetnike-predavanje-1