Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
44Activity
0 of .
Results for:
No results containing your search query
P. 1
Osnove Programskog Jezika Php

Osnove Programskog Jezika Php

Ratings:

4.0

(1)
|Views: 1,591|Likes:
Published by Miroslav Novta

More info:

Published by: Miroslav Novta on Jan 31, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

08/16/2013

pdf

 
FAKULTET STROJARSTVA I BRODOGRADNJEZAGREB
OSNOVE PROGRAMSKOG JEZIKAPHP
 
- semestralni rad -Prof. Mario EssertDamir Robeli35951063 Zagreb, 26. 10. 2002
 
 
Osnove programskog jezika PHP________________________________________________________ 
Sadržaj
1. Uvod...........................................................................................................................32. Što je PHP?................................................................................................................43. Sintaksa PHP-a...........................................................................................................53.1 Varijable..............................................................................................................5Prebacivanje tipova varijabli..............................................................................53.2 Komentari............................................................................................................63.3 Tipovi podataka...................................................................................................7Cijeli brojevi.......................................................................................................7Realni brojevi.....................................................................................................7Tekstualni podaci................................................................................................8 Nizovi.................................................................................................................9Objekti..............................................................................................................113.4 Operatori...........................................................................................................113.5 Kontrolne strukture...........................................................................................13If.. else..............................................................................................................13Elseif.................................................................................................................14Switch...............................................................................................................14While petlja......................................................................................................15Do … while......................................................................................................16For petlja...........................................................................................................16Foreach petlja...................................................................................................173.6 Forme i prihvat informacija iz forme................................................................184. Rad s bazama podataka............................................................................................194.1 MySQL..............................................................................................................195. PHP funkcije............................................................................................................205.1 Array Funkcije..................................................................................................205.2 Datum i Vrijeme................................................................................................225.3 Direktorijske Funkcije.......................................................................................245.4 File Funkcije......................................................................................................255.5 FTP Funkcije.....................................................................................................275.6 MySQL Funkcije...............................................................................................285.7 Regularni Izrazi.................................................................................................295.8 String Funkcije..................................................................................................305.9 Varijable............................................................................................................316. Prilog – (PHP_u
 _______________________________________________________________________________ FSB - Zagreb
 2
 
Osnove programskog jezika PHP________________________________________________________ 
1. Uvod
Kao pripremu za diplomski rad, kojeg sam odlu
č
io napraviti u programskom jeziku PHP, dobio sam zadatak sastaviti kratak tutorijal o PHP-u. Cilj ovog rada jestjecanje potrebnog predznanja koje
ć
e mi pomo
ć
i pri izradi diplomskog rada.Zašto odabrati baš PHP? PHP je jedna od najnaprednijih i najkorištenijihserver-side skriptnih tehnologija danas u upotrebi. On je po svojoj sintaksi poputmnogih drugih sli
č
nih jezika,
č
ak i koristi funkcije nekih drugih jezika kao što su C iliPerl. To zna
č
i da jednu radnju možete izvesti korištenjem više razli
č
itih funkcija. Npr.ova dva primjera rezultiraju istim prikazom:
 
Primjer:
 
 
 <?echo 'Pozdrav svima';?>  <?Print ( 'Pozdrav svima');?> 
 
Još jedna važna stvar, PHP je bogat funkcijama za manipuliranje mnogorazli
č
itih tipova sadržaja. Npr. možemo kreirati slike ili flasheve u trenutku kada ihkorisnik zatraži na vašoj web stranici ali ostavimo to za sad naprednim korisnicima.
 _______________________________________________________________________________ FSB - Zagreb
 3

Activity (44)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this
Marika Spandzova liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->