+ All Categories
Home > Documents > first blog entry

first blog entry

Date post: 29-May-2015
Category:
Upload: elisesumanga
View: 475 times
Download: 2 times
Share this document with a friend
Popular Tags:
16
i n A tutorial made by: Elise Margaret R. Sumanga
Transcript
Page 1: first blog entry

inA tutorial made by:Elise Margaret R.

Sumanga

Page 2: first blog entry

PHP is a widely used

language which stands for

PHP: Hypertext Preprocessor

PHP files can contain text,

HTML, JavaScript code, and PHP

code.

Page 3: first blog entry

To test PHP files, make sure you’ve installed..

.

Page 4: first blog entry

XAMPP interprets scripts written in PHP.

XAMPP is an integrated

server package of:

•Apache•mySQL

•PHP• Perl

Page 5: first blog entry

To test if XAMPP is properly running...

Locate“c:\xampp”folder

Open the xampp_star

t applicatio

n

Page 6: first blog entry

All PHP files should be saved in the htdocs folder

“c:\xampp\htdocs”

Page 7: first blog entry

Let’s start this tutorial by opening the text editor that

you’ll fall in with!

Page 8: first blog entry

I am using Sublime Text 2 and this is what it looks like :D

Page 9: first blog entry

PHP scripts can be placed

anywhere in the

document.BASIC PHP SYNTAX

It starts with <?php and ends

with ?>

Page 10: first blog entry

BASIC PHP SYNTAX

Page 11: first blog entry

To output strings in the browser,

we can use PHP’s echo or print

Page 12: first blog entry

All PHP files should have .php as its default

file extension.

Let’s save our work and name

it..

Helloworld.php

Page 13: first blog entry

Again, all PHP files should be saved in the htdocs folder“c:\xampp\htdocs”

Page 14: first blog entry

After saving, you’ll notice that the color of the code changes

Page 15: first blog entry

There you have it. Now, it’s time to test the code.

http://localhost/[nameofyourfile.php]

Open your

browser and

type:

Page 16: first blog entry

So in our case:http://localhost/helloworld.php


Recommended