Building a New Website in Php

Building a New Website in Php

New website owners and existing website owners alike consistently make a very common, yet extremely costly mistake. They find a web designer first and then an SEO second. Unfortunately, these entrepreneurs do not realize that literally every single thing that goes into building a new website will impact your SEO campaign. They commonly funnel thousands of dollars into a brand new website, only to find out that there are a lot of areas that must be rebuilt in order to have an optimum SEO campaign.

I will identify 6 major areas of concern, in hopes that even a small percentage of these website owners will come across this document at the right time, which is BEFORE they begin to develop their website.

1) Domain name registration & hosting. Make sure that when you register your website’s address that you register it for at least 5 years. Sites that register their site for a short amount of time send up a red flag at Google, who end up thinking that site site has been registered short-term in the hopes of helping another website, that is owned by the same person/company, to rank well by linking to it. When choosing your domain name, do not choose a URL that is riddled with hyphens between all your keywords. It is more important that you target this to your visitors than to the search engines.

2) Creating static URL’s. This is one of the most overlooked yet important things that you can do to ensure that your SEO campaign is a success. By eliminating dynamic parameters within your website’s URLs, you are ensuring that search engine bots will have no problems indexing all of your pages. Creating static URL’s can be accomplished by using the mod rewrite command in the .htaccess file in the root folder of your server. Here is an example of a dynamic URL (which you want to avoid), and a static URL (which you want):

Dynamic: http://www.yoursite.com/listings.php?ref=22
Static: http://www.yoursite.com/listings/22.html

Make sure that any potential programmer or designer that you hire understands that this will be a full requirement of the job.

3) Editing the head tag. There are three areas in the head tag that you will want to be able to either edit yourself or have your SEO edit. They are the page title, the description meta tag and the keywords meta tag. Having control over these for each of your top level pages (all the pages linked to from your home page), will be critical to your websites success in the search engines. You definitely do not want these to be the same on every page (they must be unique and reflect the nature of the content on the given page). For other pages that will be created in high volumes, you will want to make sure that there is a variable string (your web designer/programmer will understand what this is) in place for each of the three areas in question, so that they will automatically be filled with content that is the right length and reflects the content on the given page.

Again, make sure that your designer/programmer understands that this is a requirement of the job.

4) Clean, simple code. Ideally you want to define all aesthetic properties that different types of text on your site are going to have in a separate CSS file. This means that you want to avoid using as many tags as possible, especially font, size and color tags. You also want to avoid creating PHP scripts that are either two long, and contain a lot of unnecessary steps, or ones that rely heavily on javascript. It is best to avoid using javascript as much as possible.

Remember, the most important thing your site can be doing is making it easy for search engine bots to easy scroll through the code of your website and follow all the links that it finds. When there is unnecessary code and script on your site, it makes it a lot harder for them, thus hurting your SEO campaign.

Make sure that whoever is helping you build your site understands that there job is to output the cleanest, simplest code possible. If you have any questions about this or don’t understand it, it is best to talk to an SEO expert about it, to ensure that it is done properly.

5) Ensuring that visible written content is editable. The writing within the body of your site is one of the most important areas for you or your Optimizer to help your site increase it’s rankings. Ensuring that either of you can edit it at your own convenience is extremely critical to the entire SEO campaign. This because from time to time search engine algorithms will change, and that might mean that a strategy that was implemented in the past might not suffice, so you must be able to change it to keep up with the most up to date SEO techniques.

6) Site structure. Considering the nature of PHP, your site will most likely (and should) be created by a series of includes that puts all of the pieces of a given page together. You want to ensure that the layout and placement of graphics and navigational links within these includes is strategically correct. Remember, you don’t want to have to pay someone to go back and redo this, so it is critical to get it right the first time.

If you are unfamiliar with a lot of the information that I presented in this article, it is probably in your best interest to at the very least, consult with an SEO or SEO company during the entire design process. A good SEO will be very comfortable working with you and your design team to ensure that the end product will be one that will last you a long time, and will go a long way in helping your site generate revenue online.

Watch the video related to Php Scripts

Help answer the question about Php Scripts

send me ur running php scripts for my learning purpose?
i am a beginer ..i have done project like login system in php/mysql…so please send some more simple or advanced scripts in php so tht i can learn more……thank u…….god bless u

About Author

Bobby Heard is a Managing Director of Abalone Designs, Inc., a search engine optimization company based in Vancouver, Canada.

18 Responses to “Building a New Website in Php”

  1. champ0y says:

    You’re really good man. You’ve got excellent talent.

  2. monkeymanbob says:

    Nice work, you did pretty good.

  3. superchode20164 says:

    amazing! Willy teach me how to paint like you!

  4. lidiabarbarita says:

    Very nice!!

  5. Andre T says:

    haha unfortunately no website "auto complete".. the best thing i can say is use a content management system, or a good template system. one of the most common template systems for php is Smarty. These will make development and maintenance a lot easier.

  6. sdweltephoto says:

    You will have real big problems if you are trying to build with those things and not know what they are. Try looking through wikipedia for the definitions of each of those. A summary i can give you goes like this:

    SQL is the language used to query (retrieve or insert) data into the database. So the database stores all your data. SQL is a standard language that is used to manipulate data on all databases. Samples of databases are MySQL, Oracle, MS-SQL, Sybase, PostgreSQL

    PHP is a server-side language (meaning it executes on the server and is not dependent on the client which can be any browser) meant to display data to the user.

    PHP is needed to connect to the database and use SQL to retrieve the data, and then PHP displays the data to the user. The user will be reading the data from a web browser.

    The best example is Email or even yahoo answers. Your Questions and my answers are held in a database. But to take it out you need to ask for the right thing from the database. For this you need SQL. And to display it to the user… that is what PHP is for.

    Good Luck.

  7. imranali2010 says:

    First, you need a web host supporting php. Take a look at:
    http://www.threehosts.com

    Another useful link:
    http://www.threehosts.com/build
    There you can find a step-by-step guide to start your website.

    Hope this helps.

  8. serkanalasyaa says:

    I suggest that you read PHP in this website.

    http://w3schools.com/php/default.asp

    There is a part that says PHP Database in the left side read it.

  9. br33zy2004 says:

    It seems that you're not knowledgeable about php programming and web design. I'd suggest that you hire a freelancer.

  10. Lebron Yao says:

    I can guarantee one thing: the author of Facebook did NOT have a final product from straight PHP in one week! Perhaps there was a simple working prototype, but there was not a finished site of that complexity!

    A word of advice: if the first site you try to code in PHP is Facebook, then the total number of PHP sites you will successfully construct will be zero. Facebook is a VERY VERY VERY complex piece of software.

    This is the process I took for learning PHP. Keep in mind, when I started with PHP I already had years of experience with UserLand Frontier's dynamic webserver and with Zope, so I had a running start.

    First, you need to grasp the syntax of the language. If you don't have that solidly down, you obviously can't write anything. So build a regular HTML file and make sure it conforms to W3C standards (if there's an error, you can use a validator on the PHP output to find exactly where it is). In that page, have a number of elements: a passage of text including HTML formatting, a date display, an image and a form with a selection of input elements.

    Copy the HTML file and change its extension to "template.php" and then, in another file called "index.php", try to write code that will dynamically construct the HTML in question for one element at a time. Then use <? php echo $whatever; ?> in the template file to output the values in the correct location.

    Suppose you had this line in your HTML file:
    <p>Today's date is <b>June 21, 2007</b>.</p>
    In template.php, replace that line with
    <p>Today's date is <b><?php echo $todays_date; ?></b>.</p>

    Then make index.php like this:
    <?php
    $todays_date = 'June 21, 2007';
    // create your other values here
    require_once ('template.php');
    ?>
    Now, obviously, tomorrow the date will be incorrect. So we need to generate the date string for the current time. Change the code to this:
    <?php
    $todays_date = 'June 21, 2007'; // static value
    $todays_date = date('M j, Y'); // calculated value overrides
    // create your other values here
    require_once ('template.php');
    ?>
    Note how I left the fake code in place and then replaced the value with the calculated one. When the calculation script is running correctly, you can delete the static placeholder. If the dynamic code does not work for some reason, comment it out and run the page again, and the plain text version will return to play.

    You can follow the same basic pattern to develop more complex data. Just break the puzzle down into pieces and do each one individually. Remember the correct order for developing software:
    1) Make it work.
    2) Make it work CORRECTLY.
    3) Make it work CORRECTLY and FAST.
    Filing to follow this order will mean you are optimizing code that's not generating the right product, and that way lies the land of Unfinished Projects. :-)

    Once you are comfortable in PHP — I would allow about a year of tinkering and reading stuff, assuming you work on it every day — then you'll be ready for more advanced projects (but still not Facebook). Once you understand the language well enough to build an automatic templating and navigation system for a PHP website (that generates the page code, including the menus, automatically from the content on eaqch page request), you're ready to move into content management systems. I recommend Drupal for PHP developers; it's a well designed and secure CMS framework. I have been using Drupal for about six weeks now developing a new socializing site. It's coming along nicely, and we're ahead of schedule for our July 7 launch.

  11. nigel says:

    Some Unix servers won't run script or data files with Windows-style line termination. For those, I have to run a utility called dos2unix (Google for it) on the files before uploading them. I have a couple of websites on Earthlink servers that require this treatment.

  12. Forbidia says:

    Brilliant Willy, Just Brilliant =D

  13. serkanalasyaa says:

    Hi

    We are a Web design & Development company from india. You can mail your requirements to mantrainsight@gmail.com
    We would be happy to work for you at a reasonable rate.

    Reagards
    Akshay
    CEO
    mantrainsight
    India

  14. writer_isme says:

    check out this site,.

    http://www.hotscripts.com/PHP/index.html

  15. warah110 says:

    Perfect.

  16. Faithless863 says:

    hm i couldn’t tell the difference between photograph and painting comparing the final resault.

    This is sick

  17. avb17018411 says:

    woww that’s really relax and beatiful soung .good picture of jhony depp !

  18. TheTroubadourMusic says:

    :O

    :O

    :O

    how is this not a real photo?

Leave a Reply