Monday, May 21, 2018

To design a website using PHP

Friends at CpWebhosting please tell me how to build a website using PHP?
I want the easiest way to build a website, maintain it and have individual pages for good search engines ranking positions
Well, you can use PHP INCLUDE method to made alterations in your website. This method will automatically update your whole website. For example, if you have 300 files in your website and you want to make a common change in all of them, then you can use this method in which you have to just make a change in one file and all other files will be automatically updated.
Well, I have few tips for you which will help you while building your website. you must keep all the files which are related to your website in the same folder.
Do not make too many folders. This will help you work with ease when your website will grow up to large.
Secondly always give names to your files in lowercase letters.

open up your HTML editor and create a new page, save this page as template.php inside the folder you have just created. The extension of the page you create has to end with .php.

We are opening an HTML editor then why we are using .php instead of .htm extension?
This is because All page extensions need to end with .php to allow PHP to parse the pages and include the includes!

Now make the source code by creating tables in WYSIWYG.

Now every time open up new blank pages from HTML editor to create following pages for your website:-
1)template.php (Our main page which we will be using again later)
2)header.php (Our included page header)
3)footer.php (Our included footer page)
4)menu.php (Our included page which will have our menu links on)

Hey, where have we used PHP include on our website?

Well, it will be used in a template file. For example, if you use Contact, name and about in template.php then this information will be automatically generated on all the other pages.

Now PHP include function is very much clear to me.
Now in our final step, to view the pages you have created you will need to upload them to a PHP enabled web server.

How this step can be performed?
Well, now every host provides it as a standard server. 
You do not need any special privileges to start it. Point your browser to the uploaded index page and you should be able to see the basic layout and pages we have just created.

Publishing website

Friends at Reseller Hosting, Dedicated Hosting, Shared Hosting plans - CPWebHosting please tell me how to publish my website by putting the entire HTML and the graphics files, on the internet so that everyone would be able to access it and I may also able to make the latest versions of my pages accessible to the web?

Well, there are editor programs available to publish your page. Besides this you can also:

  • Develop On Your Own Hard Drive
  • Relocation to another Web Server
 
But relocation to another web server demand to inform my visitors to use new URL, otherwise people will keep using the old URL for no worth. It is a very tedious job. Is there any method to automatically invite my visitors to the new URL?
 
Well with the insertion of a refresh meta tag on the home page of the old site you can invite all of your visitors to your new URL.
 
You are always welcome with your queries and ideas. our support team at Reseller Hosting, Dedicated Hosting, Shared Hosting plans - CPWebHosting works round the clock to help people in healing their problems.

No comments:

Post a Comment

Featured on Text Engineer

How to Select A Web Hosting Provider?

Most of us face difficulty choosing when we have too many options. Well, talking about IDEAL, do you believe there is IDEAL web host...