Internet marketing articles and tips Follow up Autoresponder  
With FREE Shoppingcart  
FREE Membership script!  
50% Special DISCOUNT!!  
iNet Marketing Ezine | Past Ezine Issues | Article Index | Private policy | Contact us

How to create a simple php template or webpage?

How to create a simple php template or webpage?

Radhika Venkata (c)


Standard file extention of web pages are:
html - this is oldest of all. Used to be on Unix servers.
htm - this is second oldest. Used to be on Windows server.
But now both files runs on both Unix and Windows servers.

Both above are static web pages and when client requests
them through browser, server just show them as it is.


Other file extentions of web pages are:
shtml - These have SSI tags called 'Server Side Includes'.
php - Php is a server side scripting language gaining more and
more support by web developers and web masters.
asp - Called 'Active Server Pages' on Windows servers.
cgi or pl - CGI or Perl is a server side scripting language. These
scripts run inside cgi-bin of your web site.


Some times rare extentions can be see like .stm, .pt etc. The web server
needs to configure to work those extentions, which regular web masters
don't need such a complicated processes.


Here is a simple template of a php web page:

1. Just copy and paste it in a text file.
2. Adjust the code according to your need.
3. Upload it to your web site. Rename it index.php.
4. Upload header.inc, footer.inc and navbar.inc.
(Create them as text files and upload in ASCII mode. Rename them)
You can also use header.txt, footer.txt and navbar.txt, if you want.


===================================
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Your Title</title>
<meta name="description" content="Your Description">
<meta name="keywords" content="Your keywords">
<link href="styles.css" type="text/css" rel="stylesheet">
<link type="image/x-icon" rel="shortcut icon" href="favicon.ico">
</head>
<body>
<table style="text-align: left; width: 100%; border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><!--#include virtual="/header.inc"--></td>
</tr>
<tr>
<td><br>
<table style="background-color: transparent; width: 99%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="text-align: left; vertical-align: top;">


YOUR CONTENT HERE!


</td>
<td><!--#include virtual="/navbar.inc"--></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><!--#include virtual="/footer.inc"--></td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
===================================

You can use kompozer html editor to open these files and edit them.
http://www.kompozer.net/





-----------------------------------------------------------------------
Radhika Venkata
iNet Marketing Ezine - Susbscribe Now to receive Marketing Tips and Articles.
Fr*ee Ebooks - With resale rights!
Fr*ee Ecourse - Simple strategies to increase your online profits!
http://www.webmasters-central.net/
----------------------------------------------------------------------


Article Details
Author: Admin
Posted: 2008-09-24 18:14:51
Number of Views: 74
Keywords: create a web page,create a php template, php web page,php include



iNet Marketing Ezine
iNet Marketing Ezine
Subscribe Now and Get Ebooks, Free reports and Internet marketing tips and articles!





Powered by Scripts4webmasters.com





Webmasters-central.net. Part of RV Internet Solutions LLC ® 2001 - Present. All Rights Reserved.
You can publish aricles from this web site in your ezines or websites but only with the author's resourcebox intact.
All information provided is for informational purpose only. Use it at your own discretion.
TOS and Private policy | Contact us | Anti-spam policy