|
just another regularban.info web blog |
| MEMBERS: | The Beginners Guide to PHP
What Is PHP? The full form of PHP is Hypertext PreProcessor and is a server-side scripting language. The PHP code can be combined with regular HTML tags and parsed on the server. The creator of PHP, Rasmus Lerdorf first displayed the language in the form of a Perl script . In 1997 it was adapted by Andi Gutmans and Zeev Suraski to use a C-written compiler. They completely reconstructed the original PHP into the web language that we know and use today. Uses of PHP It is used in the creation of dynamic web pages. Web developers like it because of its fast parsing and flexibility and versatility. PHP is a popular tool for managing a form's data after it is submitted and comes built in with many different interfaces and API's. It has database capability built into the language, the most common database being MySQL. Typically the PHP can connect to any SQL enabled database. The Syntax of PHP is similar in structure to Perl and C where curly braces { } define blocks of code and semi-colons specify the end of a statement PHP is as easy to learn as Perl. It maintains all the traditional loops, if/else, and subroutines that are expected in a programming language. One difference between the two is that the code'?' is embedded in with the HTML; you could however, use a separate file. The PHP code is different from HTML code by use of the opening and closing tags. When it finds a PHP file, it tells the server to scan through for these tags, and execute the code in between them. The server recognizes a PHP enabled file by its extension, .php. These are essentially HTML files with PHP codes in them. Getting Started To start PHP requires a server with PHP installed and a simple ASCII text editor such as Notepad or VI, eMacs, Kate, etc. for a UNIX/Linux machine. What are the problems faced by PHP? It is case sensitive. For example if you name a variable $MyVar, you cannot call it as $myvar or $mYvAr. In case you forget to close your curly brackets, then it helps to indent lines inside the curly braces so that any missing braces can be spotted easily.
Simple SEO Web Site Development Tips
So, you've bought your domain, got some hosting. Now what? You need to make sure that your web site is as friendly as possible to the search engines so that they send you some traffic. This process is called "search engine optimization" or SEO for short. It is probably the most important - and most neglected - part of web site development. Here are some tips to help your SEO web site development. 1. Don't use frames Frames may help you to control the layout of your site but they are a nightmare as far as the search engine robots are concerned and will make it difficult for your site to be crawled by the search engine spiders. 2. Make sure there's text on your pages This even goes for the page featuring that expensive Flash movie that you're currently forcing visitors to your site to watch (or more likely press the "skip intro" link). Search engines don't know what's written on images or animations. They can only read text (the images search is their best guess based on the text on the page and the video search is based on the description of the video). So make sure they have text to read! 3. Separate style and content This means using CSS as much as possible to control the layout of your pages. That way the spider can read more of your content if all the "this is how it should look" stuff is self contained in its own CSS file. The biggest snag with this is that CSS needs to be really well written if it is to look nice at different screen sizes, on different browsers and with varying amount of text on the page. Test at least in Internet Explorer and Firefox and play around with the width of the browser to see how well or badly your site copes. 4. Use a title tag HTML design programs are good at putting in really generic titles such as "Page 1" or "Home Page" but they're almost certainly not what you want the search engines to think your site is about. Change the title to something meaningful. If possible make your title catchy and make sure it's short enough to be completely displayed when the search engine results are shown. This is basic SEO but you'd be amazed how many people don't do it. 5. Put in a meta description tag Despite what you may read, the description tag is useful. It isn't often taken into account when Google or whoever decide which results to show, which is why some people say it isn't important. But it's normally used as the extract that's shown below the blue clickable link to your site. So if it says "XYZ home page constructed with Dreamweaver" instead of something interesting, that's what will likely show up below your title. And if it's blank, you're giving the search engines free reign to put whatever they want there. 6. Keep it simple Spiders like simple. Despite all the advances in the internet, they're fairly dumb and the easier you make it for them to understand what your site is about, the more they will reward you.
Simple Website Creation That Will Make You Money
As you know we are all fond of the easy things in life. We all like the path of least resistance. The easier we can find our way the better for us. The more complicated something appears the less we understand it and as consequence the less we like it. With this in mind we need to approach the building of a website in a way that will avoid all of the above. Your website will need to be laid out in a way that understands the visitor's needs and addresses them clearly and concisely. The question then becomes how to do this? When considering what subject to build your site around you will need to start your research on the forums relative to the topics of choice. For example if your passion relates to golf then you will need to visit forums where this subject is discussed. Here you will need to look at what questions are being asked and where the people posting to this forum are having difficulty. Then you will need to get engaged and try and help. Here is how you could do this. Create a signature that links back to a free blog that asks the question "what is the biggest problem you face when it comes to golf" On your free blog you could ask other questions. Your blog then can have a form where people can submit their questions. Of course you would need to offer them something to do this that will help their game and of course you will need to offer it for free. Based on this you will be gathering actionable intelligence relative to your target market. With this information you can then build a website that addresses these concerns and provides a product that you are either affiliated with or that you have created yourself. Now that you have this information you can build a real website that can generate a real income in multiple ways. You will want to build a site that is structured properly for the search engines and one which is easy to navigate for your visitors. To conclude if you lay the groundwork properly then the rest will fall into place.
|
* 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). |