webmaster php coding

By: Craig S. Freshwater, Webmaster/CEO http://www.newcybertech.com http://newcybertech.com/Blog/2006/04/15/using-php-for-website-navigation-explained/

PHP can be very useful in your webiste design, I use PHP for my websites difficult functions such as forums, blogs, chat, user forms, and shopping cart interface. But did you know you can use simple PHP for your website navigation systems?

The use of PHP for your websites header, left side navigation, and bottom of page information can be a great asset. Now I know what you are thinking, PHP can be complicated and intimidating to many of you, but first let me explain. Using simple PHP include commands is a method any webmaster at any expertise level from novice to expert can implement with ease.

Most find editing PHP a frightening endeavor, but never fear, I will show you how.

A lot of us still use tables when designing our web pages instead of CCS, below is a veiw of the basic setup I will be discussing in this article:

Go here to see Image http://www.newcybertech.com/images/Artica1.jpg

As you can see from the image above, all the content surrounding the main content of each page will be shown in PHP and this is what this article is all about. The benefit of this technique will be when you update any of the surrounding PHP files, the results will be reflected on every page on your website that you have setup in this fashion. This sounds great right, but hold on, there is one more benefit.

You may say the same thing can be accomplished with robot include commands, but there is a catch to that.

The problem with the robot include command is that this content can not be seen by search engine robots. We all know that content is king to achieving high search engine rankings, so why hide the content you have? That’s why what I am about to teach you and using PHP for your website navigation is so important.

“All the information and links included in your navigation PHP can be seen and indexed by all the search engine robots for higher rankings.”

Now on to how it all Works:

Please read below if you need this information, if not browse down to the steps to generate PHP navigation on your website.

PHP: Hypertext Preprocessor, better known as PHP, is a highly popular, server-side scripting language that can be embedded directly into HTML coding.PHP can do anything that CGI can do, such as process form data and auto generate dynamic content, but PHP can do much more.It can be used on all major operating systems and supports most web servers.PHP is used by inserting PHP code inside your web page’s HTML code. When the page is called, your server automatically executes the code. What’s more, your visitors don’t need any special plug-ins for the code to run, as it will be displayed just like your HTML coding.As PHP is a server-side scripting language, although your visitors will not need to install any new software, PHP must be set up on your server.

Following is a very simple script that will test your server to ensure PHP is installed. It is a standard PHP function called phpinfo, which instructs the browser to print out information in regard to the set up of your server.

To use the script, simply copy the following three lines of code and paste them into a plain text editor, such as Note Pad.

Save the file as phpinfo.php and upload it to your server where you store your HTML files.

To run the script, simply point your browser to the script address. It should look something like this:

http://www.yourdomain.com/phpinfo.php

If PHP is installed on your server, you will be presented with a page of information about the PHP installed on your server.

If PHP isn’t installed, you will be prompted to download the file. In this case, you’ll need to contact your web host and ask them to install it, as it is free to download and install.

You can learn more about PHP and download it at

http://www.php.net/.

Steps to generate PHP navigation on your website.

First of all you need to enable create a php file with html includes using the php include function. This is easily done by adding one line to your .htaccess file for your apache driven site and have php parsed in html files. To do this logon to your websites FTP account, go into the .htdocs file, find the .htaccess file, edit it to add this one line of code to the file:

AddType application/x-httpd-php .php .html

With that, you can have php blocks parsed in your html files so long as you put the php code in php tags. Example below:

php Code:

We will get into how to use the above command a little later in this article . Now on to the steps:

Step 1. Build the the following pages in your favorite HTML editor: A. header.html B. left.html C. bottom.html D. right.html (optional) Or you can name these files what ever you like, but I will be referencing them as the above for this article. Once you have these pages built to your liking, we now start implementing with PHP. First build a new Index.html page, you can name it TEST or something until you get it the way you want it. Set it up with tables to look like the page below:

Go here to see Image http://www.newcybertech.com/images/Artica2.jpg

Step 2. Now here is the trick, rename each HTML page you just built, “header.html, left.html, bottom.html, and right.html (optional)” to the .php file extension. You can do this by opening each .html file in a text file editor such as Notepad and save as .php to the same directory as the .html files on your server. You will now have a copy of each file in HTML and PHP format.

Step 3. We are now ready to use the new PHP files, in each table around your main content we will insert the Command functions. See example below:

Go here to see Image http://www.newcybertech.com/images/php.jpg

Step 4. Open your new index page in your favorite browser and you will now see all the HTML pages you built come together as one page by using PHP.

Go here to see Image http://www.newcybertech.com/images/newcybertech.jpg

Step 5. Editing the new PHP navigation pages is easy, all you need to do is edit the HTML file you built in you favorite HTML editor. When your are done just copy the pages HTML and then paste it into the corresponding PHP file. To do this open the PHP file with a text editor and replace the HTML with in it with the edited version of HTML and save it as .php again. Now your PHP file is updated to match your edited HTML file.

In conclusion: Now when ever you update your website header and navigation pages the results will be reflected on every page on your website that you have setup in this fashion. And as a added bonus all the information and links included in your navigation PHP can be seen and indexed by all the search engine robots for higher rankings.

You have permission to publish this article electronically, in print, in your ebook or on your web site, free of charge, as long as the author bylines below are included.



yahoo search engine optimization
Jerry Yang and David Filo were graduate students at Stanford University in January of 1994 when they created a website that they called “Jerry’s Guide to the World Wide Web,” a directory that organized other web sites into a hierarchy. Four months later Yang and Filo renamed the search engine Yahoo! after a word used by Jonathan Swift in Gulliver’s Travels. Swift’s definition of Yahoo! was “rude, unsophisticated, uncouth.”

At the end of 1994, approximately twelve months after its creation, Yang and Filo had over one million hits on their fledgling search engine. Understanding that they had designed something that could enjoy potential business success Filo and Yang incorporated Yahoo! early in March of 1995, fourteen months after its inception. Because the name Yahoo was already the brand name of other enterprises, human propelled watercraft, barbecue sauce, and knives, Yang and Filo were forced to add the exclamation point in order to trademark the name. Yahoo! had it first public offering on April 12, 1996. Two point six million shares of Yahoo! were sold at thirteen dollars a piece, earning a total of thirty-three point eight million dollars.

By the late 1990’s Yahoo! and several other internet communications company’s diversified into web portals.

In the late 1990’s Yahoo! also started buying out other companies such as eGroups and GeoCities. Because Yahoo! had a reputation for changing terms of service when purchasing companies most of the buy outs were wrought with controversy.

Although it stocks fell to an all time lo, Yahoo! was able to survive the dot.com bubble burst. In order to help rebuild itself, Yahoo! started forming partnerships with telecommunication companies and internet providers, these alliances led to the creation of content rich broadband services that actively competed with AOL.

With their eye on the future, the powers in charge at Yahoo! are working on creating Yahoo!Next, a concept similar to Google Labs that contains forums that provide places for Yahoo! users to leave feedback that will hopefully assist in the development of future Yahoo! enterprises and technologies.

Like most successful companies Yahoo! is constantly working to improve and expand. Yahoo! currently provides its customers with a smorgasbord of internet services that cater o most online activities. These services include Yahoo! Mail, Yahoo! Groups, Yahoo! Maps and Driving Directions, and Yahoo! Messenger. While Google holds the top spot in search engines Yahoo! is standing strong in second place. Yahoo! competes against Yahoo! by offering its customers vertical search services such as, Yahoo! Image, Yahoo! Local, Yahoo! Shopping Search, Yahoo! Video, and Yahoo! News. Yahoo! is proud to boast the largest, most successful e-mail service in the world.

User generated content products such as Yahoo! Personals, Yahoo! Photos, Yahoo! 360, and Flicker offer Yahoo!’s customer’s social networking services.

Yahoo! Shopping, Yahoo! Merchant Solutions, Yahoo! Store, Yahoo! Web Hosting, Yahoo! Domains, and Yahoo! Business Email are services Yahoo! provides to small business owners that allows them to develop their own online business using Yahoo!’s tools.

In March of 2004 Yahoo! launched a paid inclusion program that guaranteed commercial websites listings on Yahoo! search engines for a fee. While the paid inclusions were lucrative for Yahoo!, they where unpopular with the online marketing world. Business owners didn’t want to pay the internet mogul for search engine optimization. Paid inclusion simply guaranteed that the businesses websites would be ranked; it didn’t guarantee that it would be ranked in the first two pages.



Valid Ways To Increase Your Link Popularity


Link Recognition is a technique to build traffic into your internet site. The idea is begun by Google cofounder noting that if one internet site A points toward another internet site B, this indicates that web site An is advising B on its own site. the better a site is, the more links pointing to that particular site. Lots of website owners are obsessed about their site link recognition. Some attempted unfair way by purchasing lots of text link from another site. The efficacy of purchasing the supposed text link has been decreasing as Google made some changes to its algorithm. Latterly, some suspect the latest Google update also reduce the value of two-way link. Reciprocated link is exchanging link with other sites where site A link to B and site B made a link to site A. The sole people who know how Google works is those people residing at Googleplex themselves. I suspect that there are many ways you can do to gain link recognition. First and most significantly, you want to build tons of contents. Having lots of contents allow you to give info to search engine users. Similarly, as your content grows, you’ll be viewed as the expert in your field.

The second technique to get more links is to open your own web log or blog. The 3rd way to gain link recognition is to submit an one way link page to web directories. While this strategy is less effective, an one way link is a better way to go instead of a reciprocated link.

In fact, you can only control your links pointing to other sites and not the other way around. If you’re doing 2 way link with a ‘bad’ internet site, google will penalise you too since you ‘endorse’ their websites by providing a link back. With this technique, ensure you don’t oversubmit your site to one categorical index.

Google’s spider may suspect plenty of links pointing to your internet site as a sign that you are purchasing a text link from that particular site.

Google Index Inclusion in 48 Hours Or Less


Each web designer knows getting into the Google index is at the pinnacle of the concern list when launching a web-site, but some web designers find the process challenging, even troublesome. The majority will most likely agree the most efficient sort of traffic is search engine traffic. There’s a good likelihood that close to seventy pc of all internet site’s traffic comes from Google or other search engines. Google typically does a good job delivering target results, so it’s likely safe to claim Google is doing their job efficiently. Build Backlinks, Backlinks, Backlinks This is comparatively simple. Once your website is available and prepared for launch, submit the main page to social networking sites. Here are some to think about : Digg, exquisite, sphinn, forums, dofollow blog comments, and any other social link sharing sites you could be an affiliate of. Try and avoid site wide links if feasible. Backlinks ( without the rel=’nofollow’ tag ) will present the new site and its pages to Google’s crawler – this is what we’re going for. Two. Google Web designer Tools Wants Your Sitemap Once signed on to Google’s Web-master Tools, login and add a site to your dashboard. Determine that you are the owner by adding the special meta tag or creating a file with the filename they supply. Now that Google knows you own that site, head over to www.XML-Sitemaps.com and follow directions on their site. Upload the uncompressed sitemap.xml file to your website’s root list, for instance : http://www.your-domain.com / sitemap.xml. Back to the web-master tools dashboard, under sitemaps, click add to add a sitemap for your now hopefully determined site. Check back a couple of hours later to be sure there were not any blunders. Providing a sitemap lets Google know your internet site exists, and which pages are crucial. Three. Continue Building Backlinks! Site directories are a way to build one-way, permanent backlinks. There are many thousands of free directories available all over the Net. Once you are indexed, adding backlinks will improve your odds of survival and boost traffic. Submit prime quality stories or info to Digg, add them to your delectable bookmarks, even stumble your pages. The method is tedious, but till authority is established and folk start naturally linking to your internet site, keep establishing backlinks – they cannot hurt your site. So that is it. Chill and wait. Hopefully Google’s bot shall visit your internet site through the Digg submission, or a forum signature, and start grabbing the site’s content. If your web server logs show the bot as a visitor, and the bot likes what was on the site, congratulations, you are golden.

css

Cascading Style Sheets (CSS) is a language that permits Web designers to attach styles such as spacing, color, font, etc. to HTML documents. Cascading style sheets are similar to a template, permitting Web developers to label styles for an HTML element and then apply it to the number of Web pages required. Thus, Cascading Style Sheets (CSS) are collections of formatting rules, which control the appearance of content in a Web page. With CSS styles you have great flexibility and control of the exact page appearance; from precise positioning of the layout to specific fonts and styles.

There are many benefits of using CSS. Maintenance of a Web site made with CSS is much easier compared to the ones which are table based. Aside from being able to make extensive changes with one CSS file, the code it generates makes it simpler to update. With CSS, when you decide to craft a change, you simply alter the style and that element is updated automatically anywhere it appears in the site, saving you an enormous amount of time. Without CSS you’d have edit each page independently. CSS generally requires less code compared to a table based layout, making your code lighter, cleaner and easier to maintain.

Cascading Style Sheets Benefits and Search Engine Optimization (SEO)

Another major benefit of CSS is that it makes your Web site SEO friendly. The reason behind this is simple. Search engines spiders are actually lethargic. They don’t go through the bundles of HTML code to get to the indexed codes. Font tags and tables make HTML code cumbersome, and thus reduce the accuracy of the results. If you use external CSS files to determine the design attributes, the HTML code will be clean and will create better search engine rankings. With some knowledge of CSS you can change the code without destroying the visual layout. For instance, you could easily make the main content of your site to show up above the header or navigation menu in the code of your Web site; this will help to show search engine crawlers the importance of your content. I personally saw a huge boost in rankings in fully functional CSS Web sites. When I look at someone’s Web site that was built using old school HTML code with tags such as: TABLES, TD, TR, FONT and so on, I convert that site to a CSS layout. There are many tools on the Internet that shows the actual code over text ratio weight of your site. Modern search engines such as Google, Yahoo and MSN love light-weighted Web sites. They want to see your content; the text, not the code. With CSS everything is possible. You can place excessive code into an external file, thus leaving the actual page clean and simple.

Web Site Accessibility

CSS makes your Web site more accessible. By 2008, it’s estimated that one-third of the world’s population will be using hand held devices to access theInternet. It’s important that your site is accessible to them also. You can make an additional CSS document particularly for handheld devices like cell phones, which will be called up in place of the regular CSS document; which is not achievable with a tabular layout. CSS benefits accessibility chiefly by separating document structure from presentation.

Increases Download Speed of Your Website

CSS code downloads faster than tables. Browsers read through tables twice prior to exhibiting their contents; first to work out their structure and then to determine their content. Moreover, tables are shown on the screen as a whole, no part of the table will be displayed until the entire table is downloaded and rendered. Tables support the use of spaced images to assist with positioning. CSS generally requires less code than tables. All layout code can be placed in an external CSS document, which will be called up just once and then stored on the user’s computer; while the table layout stored in each HTML document must be loaded up each time a new page downloads. Also with CSS, you can manage the order of the items downloaded. You have the control to make the content appear prior to images, which tend to load slower than text.

Cross Browser Compatibility

To summarize, CSS makes your Web sites load faster, it saves on time and labor, links can be more attractive and dynamic, and you can add rollovers without using JavaScript. Currently all the major browsers ( Firefox, Explorer and Netscape) recognize CSS – Web Design,Web Designing Company,SEO Services



« Previous Entries Next Entries »