0% found this document useful (0 votes)
54 views9 pages

Week 1

PHP is a widely used server-side scripting language that allows for the development of dynamic websites. Some key points about PHP include: - It is interpreted at runtime on the server-side rather than being pre-compiled. - Built-in functions allow for fast development and it is compatible with many popular databases. - It can be used for server-side scripting, command line scripting, and has some capabilities for desktop applications through extensions like PHP-GTK. - In addition to outputting HTML, PHP can include images, PDFs, videos and sounds in applications and can auto-generate XHTML and XML files.

Uploaded by

Marcos Jeremy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views9 pages

Week 1

PHP is a widely used server-side scripting language that allows for the development of dynamic websites. Some key points about PHP include: - It is interpreted at runtime on the server-side rather than being pre-compiled. - Built-in functions allow for fast development and it is compatible with many popular databases. - It can be used for server-side scripting, command line scripting, and has some capabilities for desktop applications through extensions like PHP-GTK. - In addition to outputting HTML, PHP can include images, PDFs, videos and sounds in applications and can auto-generate XHTML and XML files.

Uploaded by

Marcos Jeremy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

2020

Basic Syntax
2020

Demand of PHP is evident from


Basic Scripts the fact that the world’s top
websites, like Facebook, Google,
Wikipedia, and YouTube, are
using PHP scripts at the backend.
PHP is helpful in developing
dynamic websites. It is a server-
side scripting language that sends
information directly to the server
when a user submits a form.
Before going towards the step-by-
step guide on how to write PHP
scripts, I will give you a general
overview of PHP.

2
2020

Getting started with PHP


3
2020

PHP is an ...

• Interpreted language, scripts are parsed at • Structurally similar to C/C++


run-time rather than compiled beforehand • Supports procedural and object-oriented
• Executed on the server-side paradigm
• Various built-in functions allow for fast • All PHP statements end with a semi-colon
development • Each PHP script must be enclosed in the
• Compatible with many popular databases reserved PHP tag
• Source-code not visible by client
• View Source in browsers does not
display the PHP code

4
2020

Server-Side Scripting
• Server-side scripting is a method of
designing websites so that the process or
user request is run on the originating server.
• Server-side scripts provide an interface to
the user and are used to limit access to
proprietary data and help keep control of
the script source code.
• Server side scripting is the first purpose of
PHP. All you need to start working on a
desktop PC with PHP is a PHP Parser, a
webserver (such as Apache) and a web
browser like Google Chrome.

5
2020

Command Line Scripting

• Scripting allows users to write special


functions in a plain text files and pass
the name of this file as a command line
argument to WinSQL. WinSQL runs
these functions in a sequential order.
• If you want to use PHP on Linux or
task scheduler on Windows, then you
don’t really need a web server, but only
a PHP Parser. This is called “command
line scripting”.

6
2020

Desktop Applications
• Although, PHP is not a suitable language
for development of desktop applications,
but it supports some advanced features
like PHP-GTK which is basically an
extension of PHP. PHP-GTK provides
object-oriented user interface.
• PHP enables you to choose not only the
operating system of your choice but also
allows you to have choices to use a web
server that you are familiar with. It also
enables beginners and professionals to
write scripts in their own ways as it
allows procedural as well as object-
oriented programming.

7
2020

Desktop Applications

• PHP not only enables you to output


HTML but also lets you include
images, PDFs, videos, and sounds.
PHP can auto-generate XHTML and
XML files.
• PHP provides support to protocols like
LDAP, HTTP, COM, POP3, etc. It also
supports WDDX complex data
exchange.

8
2020

Questions??

You might also like