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
2Activity
0 of .
Results for:
No results containing your search query
P. 1
PHP Basis

PHP Basis

Ratings: (0)|Views: 3|Likes:
Published by Esraa AL Hafidh
PHP basics
PHP basics

More info:

Published by: Esraa AL Hafidh on Jul 19, 2013
Copyright:Attribution Non-commercial

Availability:

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

05/14/2015

pdf

text

original

 
PHP BasicsDynamic Websites Basics
Web browser
HTML browsers are primarily intended to process
But other languages are generallydirectly supported:
- HTML, DHTML, XHTML- JavaScript- Cascading Style Sheets- Additional graphical objects
Types of web pages
 
Static web pages- Fix HTML code stored in a file ("index.html")- WEB server reads file and "copy" it to the browser 
Dynamic web pages- Fix HTML code does not exist in file- Site is used to request time using a script languagecreatedDynamic web pages 
"programming" of dynamic web pages usingScripting languages (mostly) 
HTML code of the script interpreter modules WEBServer request made time available, ie the Script creates the actual web page- Wide variety of functions- Data acquisition and - processing from the browser- "Solid" programming language on the server scope- Database access
 
Dynamic web pages
"programming" of dynamic web pages usingScripting languages (mostly) 
HTML code of the script interpreter modules WEBServer request made time available, ie theScript creates the actual web page- Wide variety of functions- Data acquisition and - processing from the browser- "Solid" programming language on the server scope- Database accessWhat dynamic websites?Dynamic vs. Static
Dynamic websites allow user interaction
It can respond to users' requests
processing of entries / data form.php
persistence
- Store data- Get a state: eg: Website / retrieve data as how toshe leftWEB server & script handler 
WEB server receives via a configuration / several script handlers 
WEB server based recognizes- Directory (eg: / cgi-bin)- File extension (. Example: *.php)which module is to address, forwards the request accordingly, and waits on HTML responseWEB server & script handler 
Examples of extensions:- PERL 
*. Pl 
/ cgi-bin- PHP 
*.Php*.Php3 *. Php4- JSP 
*. Jsp
 
PHP 
PHP is a server-side, HTML embeddedScripting language 
provide instructions within HTML codeto generate dynamic content 
High Functionality 
C like syntax 
Large number of function libraries (graphics capabilities, PDF,Cryptography, ...) 
Easy integration of all popular at the momentDatabase systems (MySQL, Oracle, ODBC, ...)What can PHP do? 
collect form data 
generate dynamic page content 
cookies to send / receive 
protocols such as HTTP, POP3, ...Possible OOP
 
PHP code can be embedded directly into HTML page
 
Identification of PHP sections by special
Tags
("Code is lands"
can be located anywhere in the HTML)
-
(<?Phpcode>)
-
<? Phpphpcode?>
-
<script Language="php">PHP code</ script>
 
Example:
<head> <title>
<? php echo $ title>
</ title> ..
Hello World“ (1)<html><head><title>PHP Test</title></head><body><?php echo "Hello World<br>"; ?></body></html>

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)//-->