|
just another regularban.info web blog |
| MEMBERS: | Using Functions
Functions are used to perform a well defined task that is normally repeated at various places within a web site, web application, or other software application. The function sometimes needs certain information before performing its task, and sometimes returns a value to the calling page or program. An example of how to use a simple function in PHP: function showMessage() {The above example shows a very simple function that displays the contents of a session variable called 'message'. The idea being that while a user is using a web site, etc, various messages are generated and stored in the 'message' session variable. Whenever the showMessage function is called, the contents of the session variable are displayed. So, for example, when the user logs on, you could display a message saying that they have done so. Likewise, when they log off, a different message could be displayed. Calling a function To call the showMessage function, you would just need to include the line: showMessage() in the web page (wrapped in php tags to distinguish it from normall HTML). Passing values to a function Often, a function requires one or more input values in order to perform its task. For example, take the following example that takes two numbers as input, and adds them together. The result is then returned to the calling web page or program. function addNumbers($number1,$number2) {In the calling program we would have something similar to the following: $number1 = "5"; Obviously, in a real program you would not have the numbers hardcoded like this, but they would be obtained from user input or by some other means. Notice also that although the name of the returned variable is $answer, the calling program makes no reference to that. We could, if we wanted to, change the calling program to: $answer = addNumbers($number1,$number2); which might make things slightly easier to understand.
9 Tips for Creating a Site Map for Visitors and Spiders
Not every site needs a site map, they can certainly be a good idea. Site maps provide a dual purpose: They provide search engine spiders easy access to all of your site pages and they provide site visitors easy access to all of your site pages. The difference is that search engines and visitors access your site map differently and therefore there are different methods that need to be applied to creating site map(s) that are friendly for both engines and search spiders. Small sites typically don't need a site map so long as all pages are linked in the main navigation. Once you get into main and sub-navigation menu's then site maps are helpful in allowing search engines and visitors to quickly find anything they are looking for within just a couple of clicks. A single site map can be used for both purposes or multiple site maps can be created. Here we'll address creating site maps for spiders and humans separately. Site Map For Spiders .xml file An .xml document should be added to your site's root directory containing links to all site pages. This .xml file should then be referenced should be compiled and placed into a proper .xml document which should be uploaded into the root directory. Robots.txt file With your .xml site map file in place you must then make it accessible to search spiders. Reference the site map in your robots.txt file by adding a line for sitemap: URL (example: sitemap: http://www.polepositionmarketing.com/sitemap.xml) Keep current Be sure that your .xml file is updated and uploaded frequently, or at least as often as pages are added or removed from your site. Large sites should implement an automated site map update monthly or even weekly or daily. Site Map For Visitors Navigation links A site map designed for human visitors is just like any other website page. Link to the site map page should be included in the primary navigation or the site's global footer. Visitors should be able to find this link without too much searching. Additional page links Site map should also be linked from various pages within the site such as Help pages and your custom 404-redirect page. This helps point visitors to the site map as a quick and easy means to find what they need. Overview It's helpful to provide a short overview paragraph at the top of your site map page. This can be a nice introduction should someone land on this page directly from a search engine or elsewhere. Heading and layout The layout of the site map should present a clear visual hierarchal structure or your website. Both headings and sub-headings should be used above properly grouped links. Text links & descriptions Site map should primarily use textual links and page should not be cluttered with images or other distractions. It is also a good idea to provide an additional short description (provided there is room) for each link that allows the visitor to better understand where each link will take them. Keep current Be sure that your site map is updated and uploaded frequently, or at least as often as pages are added or removed from your site. As I said above, not every site needs a site map. But those that do should be sure that the site map(s) they create are actually benefiting them. And the best way to do that is to make sure your site maps provide maximum usability for visitors and search engine spiders.
Tips To Help You Build A Money Making Website
Any of us who are interested in making money online are bombarded daily with information relative to achieving this objective. Along with this it seems that everyday there is a new technique and if you do not apply it you could be leaving thousands of dollars on the table. Many of these opportunities involve creating your own website. This way you can earn revenue using multiple techniques. And of course on the business opportunity sales pages they often say that this can be done within weeks of implementing their strategies. While in some cases this may be true it is often more the exception rather than the rule. I do not want to burst anyone's bubble. I have been marketing online for almost four years and honestly it takes grit and determination to build a successful business on the internet. The truth is it can be done but many factors have to be brought into consideration before you begin. The first being how many hours per day are you willing to spend to build your online business. By the way do not be fooled into thinking that an online business does not have to be taken as seriously as an offline business. If you do not take it seriously then you will not achieve serious results. The step to take is to outline on a piece of paper what your interests are. Then you will need to research the market online to see which way you can enter the market and make money. In terms of building a website you need to gather all this information first. Once you find what you are looking for and have determined that you are going to build a site relative to that subject you can then look for a site builder that will help you achieve the results you desire to achieve. The best site builders are the ones that have proven results. Secondly if you are not technically minded you want it to take care of all those details. Remember if you are busy building a site then you will not be marketing your website hence you will not be making money. To conclude apply due diligence. Research your market thoroughly and you will achieve results.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |