Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Beginner PHP Tutorial - 4 - Creating Your First PHP File
Description
Example: Hello World!
Start by making an ordinary HTML document, but name the file page.php and save it in the root of the site:
If you use XAMPP (see lesson 2), the path for the root is "c:\xampp\htdocs\page.php" on your computer (which is now a server). Read more abot saving PHP files in XAMPP.
If you have a website on a host that supports PHP, you simply upload/ftp the file to your web host.
The HTML code should look like this:
My first PHP page
As you probably remember from lesson 1, PHP is all about writing commands to a server. So let's write a command to the server.
First, we need to tell the server when the PHP will start and end. In PHP you use the tags to mark the start and end for the PHP codes that the server must execute (on most servers it will be suficient to use just
My first PHP page
Hello World!";
?>
When we look at the PHP document in a browser, it should look like this:
Start by making an ordinary HTML document, but name the file page.php and save it in the root of the site:
If you use XAMPP (see lesson 2), the path for the root is "c:\xampp\htdocs\page.php" on your computer (which is now a server). Read more abot saving PHP files in XAMPP.
If you have a website on a host that supports PHP, you simply upload/ftp the file to your web host.
The HTML code should look like this:
My first PHP page
As you probably remember from lesson 1, PHP is all about writing commands to a server. So let's write a command to the server.
First, we need to tell the server when the PHP will start and end. In PHP you use the tags to mark the start and end for the PHP codes that the server must execute (on most servers it will be suficient to use just
My first PHP page
Hello World!";
?>
When we look at the PHP document in a browser, it should look like this:
More from User
05:24
Beginner PHP Tutorial - 11 - Output HTML Using echo_print
Videos
02:18
Beginner PHP Tutorial - 10 - print
Videos
04:09
Beginner PHP Tutorial - 9 - echo
Videos
04:52
Beginner PHP Tutorial - 8 - Indentation
Videos
06:06
Beginner PHP Tutorial - 7 - The php.ini File
Videos
05:00
Beginner PHP Tutorial - 6 - The phpinfo Function
Videos
Related Videos
00:03
WEB CENTRE 9617236113 jabalpur java php asp.net training javascript css ajax tutorial
Aspdotnetjabalpur2
00:22
READ book Web Coding Bible 18 Books in 1 HTML CSS Javascript PHP SQL XML SVG Canvas WebGL Java FREE BOOOK ONLINE
Leslieallen
01:38
Website forums, websites forum,HTML forum, SQL forum, PHP forum, Javascript forum, CSS forum, Servers forum, Minecraft forum, Coding forum, javescript coding forum
jenwhiteeee
41:42
HTML5 canvas tutorial using external CSS3 & java script in Urdu Hindi
Ifactner
05:48
CSS3 Tutorials in Urdu Hindi - Creating Shapes in CSS Part 1
Numanprojects
11:47
HTML5 Canvas tutorial for beginners in Urdu Hindi with CSS3 Java Script
Ifactner