Home of Inspirational Talks, Codding, Downloads, Write Ups and How Tos

Showing posts with label Coding. Show all posts
Showing posts with label Coding. Show all posts

PHP 5 Introduction

PHP 5 Introduction


PHP scripts are executed on the server.

What You Should Already Know

Before you continue you should have a basic understanding of the following:
  • HTML
  • CSS
  • JavaScript.

What is PHP?

  • PHP is an acronym for "PHP: Hypertext Preprocessor"
  • PHP is a widely-used, open source scripting language
  • PHP scripts are executed on the server
  • PHP is free to download and use
PHP is an amazing and popular language!
It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)!
It is deep enough to run the largest social network (Facebook)!
It is also easy enough to be a beginner's first server side language!

What is a PHP File?

  • PHP files can contain text, HTML, CSS, JavaScript, and PHP code
  • PHP code are executed on the server, and the result is returned to the browser as plain HTML
  • PHP files have extension ".php"

What Can PHP Do?

  • PHP can generate dynamic page content
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can collect form data
  • PHP can send and receive cookies
  • PHP can add, delete, modify data in your database
  • PHP can be used to control user-access
  • PHP can encrypt data
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.

Why PHP?

  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP supports a wide range of databases
  • PHP is free. Download it from the official PHP resource: www.php.net
  • PHP is easy to learn and runs efficiently on the server side
SOURCE: W3School.com
Share:

HTML Editors


 HTML Editors


Write HTML Using Notepad or TextEdit

Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe using a simple text editor is a good way to learn HTML.
Follow the four steps below to create your first web page with Notepad or TextEdit.

Step 1: Open Notepad (PC)

Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.
Windows 7 or earlier:
Open Start > Programs > Accessories > Notepad

Step 1: Open TextEdit (Mac)

Open Finder > Applications > TextEdit
Also change some preferences to get the application to save files correctly. In Preferences > Format > choose "Plain Text"
Then under "Open and Save", check the box that says "Ignore rich text commands in HTML files".
Then open a new document to place the code.

Step 2: Write Some HTML

Write or copy some HTML into Notepad.
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>
Notepad


Step 3: Save the HTML Page

Save the file on your computer. Select File > Save as in the Notepad menu.
Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for HTML files).
View in Browser
You can use either .htm or .html as file extension. There is no difference, it is up to you.

Step 4: View the HTML Page in Your Browser

Open the saved HTML file in your favorite browser (double click on the file, or right-click - and choose "Open with").
The result will look much like this:


View in Browser


SOURCE: W3School.com

Share:

HTML Introduction


What is HTML?

HTML is the standard markup language for creating Web pages.
  • HTML stands for Hyper Text Markup Language
  • HTML describes the structure of Web pages using markup
  • HTML elements are the building blocks of HTML pages
  • HTML elements are represented by tags
  • HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
  • Browsers do not display the HTML tags, but use them to render the content of the page

A Simple HTML Document

Example

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Example Explained

  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <title> element specifies a title for the document
  • The <body> element contains the visible page content
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph

HTML Tags

HTML tags are element names surrounded by angle brackets:
<tagname>content goes here...</tagname>
  • HTML tags normally come in pairs like <p> and </p>
  • The first tag in a pair is the start tag, the second tag is the end tag
  • The end tag is written like the start tag, but with a forward slash inserted before the tag name
Tip: The start tag is also called the opening tag, and the end tag the closing tag.


Web Browsers

The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.
The browser does not display the HTML tags, but uses them to determine how to display the document:
View in Browser

HTML Page Structure

Below is a visualization of an HTML page structure:
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Note: Only the content inside the <body> section (the white area above) is displayed in a browser.

The <!DOCTYPE> Declaration

The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
The <!DOCTYPE> declaration is not case sensitive.
The <!DOCTYPE> declaration for HTML5 is:
<!DOCTYPE html>

HTML Versions

Since the early days of the web, there have been many versions of HTML:
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2014
Share:

Facebook Messenger DOWN - Popular chat app NOT WORKING as outage hits UK and Europe


FACEBOOK MESSENGER is suffering an outage in the UK and mainland Europe this morning, with chat app users unable to send or receive messages.
Facebook Messenger is down in the UK and Europe, users have reportedFACEBOOK • GETTY
Facebook Messenger is down in the UK and Europe, users have reported
Facebook Messenger appears to be down for users in the UK and across mainland Europe.

The hugely-successful chat app is purportedly experiencing an outage, with hundreds of users unable to send or receive messages, photos, or video.

Facebook Messenger started to suffer problems at around 9am GMT.

The UK and Europe appear to be the worst hit by the outage, however, reports of problems with Facebook Messenger have streamed-in from locations across the globe.

Hundreds of Facebook Messenger users are experiencing problems with the appDOWNDETECTOR
Hundreds of Facebook Messenger users are experiencing problems with the app
Independent website DownDetector, which tracks social comments around a certain topic to monitor outages across the globe, has mapped the problems.

According to DownDetector data, hundreds of Facebook Messenger users are complaining about interruptions to the service every minute.

Some 53 per cent of those encountering issues are unable to receive text messages.

According to DownDetector, 46 per cent cannot login to the chat app.

The news follows as Facebook updated its popular chat app to support live location sharing.


Facebook Messenger users across Europe have been left unable to use the app
Facebook Messenger users across Europe have been left unable to use the app
Live Location allows Messenger users will be able to broadcast their location using the app for up to an hour - making meeting up easier than ever.

The service is not always tracking, as users will be able to choose exactly when they share their location, and who sees it.

Messenger users can launch the new service by tapping on the new ‘location’ icon displayed above their chat message.

This will then open up a map showing your current location, along with the option to share this with the person you are chatting with.

Once activated, your friend will be able to see your movements for an hour, with changes reflected in real time.

The service will also show how long it would take to get to the other person’s location by car, but you can also choose to tap anywhere on the map to arrange to meet there instead.

You can stop sharing your location at any time during this period by tapping on the ’Stop Sharing’ button that appears in the map windows.
Share:

Popular Posts

Blog Archive

Powered by Blogger.

Categories

Post Of The Day

How you can make money as a Blogger (HOT)

RevenueHits is a very popular AdSense alternative that works on a  CPA model  rather than CPM model. With the CPA format, you get a high co...

Labels

Blog Archive

Recent Posts

LIKE US ON FB

Translate