Tags in Php

Image Source: blog.bcwelt.de
Perhaps, we should start from the very basic of Php. To be able to fully understand the harder principles. What are tags? Tags are the starting and ending point of a specific code snippet that belongs to any scripting language. To give you a simple example, in HTML, we close HTML codes with and . Much the same with javascript code, which is written like this; . In Asp or Active Server Pages, it is written this way; <% 'asp code and then end with %>. Most of the languages for programming uses similar types too. You might ask yourself, why do these programming need tags, but to be able to understand it, you must have a basic understanding of the process of displaying web page in a browser wether it may be Internet Explorer or Mozilla Firefox.
Starting Php
Here are some helpful basics on PHP.
Image Source:zoo.parkingspa.com
Begin, at all times, a PHP page with “.” and use “;” at the end of a variable. Before manually starting phpmyadmin to make your PHP program run properly, be ready to set up PHP, PHPTriad first. Next, to enable your php program to function, bring a php page in a .php wing. And lastly, don’t forget that security is the main requirement in using this type of PHP language. In developing a page with PHP, high level of security is necessary. It is also very important to note that if you really want your program to operate, follow instructions to the letter. With this type of system, accuracy is the key. Programming is not really hard. , nowadays, almost anyone can learn the skill. There are tutorials online that should be boosted by a one’s interest. Perseverance entails to a learner reading tutorial lessons and later try out some actual programming.
Your First PHP Codes

Image source: www.flickr.com
Why not exhibit some output onto the screen? It is in truth much easier to achieve with PHP. All you have to do is use PHP language construct called echo and we are done. Here’s how..
Open a blank new file in your editor or notepad and write the below talk about lines in the file. Then save the file with a .php extension. If you are using notepad as editor then be careful about the file extension. In Windows OS the file extensions are often hidden, so you must ensure that file saved has a .php extension.
If that is the exact output on your browser, then it is a success!!! We are on a good start. If you did not see this output, then perhaps PHP was not installed or configured properly. Note that if the PHP file is prompted to be downloaded in your browser, then PHP is not installed or configured properly as the file with .php extension is not being parsed. Please refer to your installation procedure.
Where CMS information is stored
CMS stores the data for building the pages in an Open Source in the MySQL database system provided by PHP. The backend database is where all systems related to page building are stored: various graphics linked to pages, text, maintaining statistics and managing user login and logout.
Usually, the content in a site is arranged while the text in each article is merely piled up, hence, if the site administrator decides to alter the look of the site, he can only update the template. The information stored on the other hand, remains as is, but the manner it is presented becomes different.
Versions 4
Just so you’ll be aware of the different versions of PHP. This post features older versions:
Version 4.1.0 introduced the superglobal arrays. Because of this, there are scripts written in superglobals that will not run in versions prior to this particular version. If you’re using older versions of PHP, then you must use old style arrays such as the $HTTP_POST_VARS.
Version 4.2.0 is a little more complicated. This version of PHP changed the default setting for register_globals to Off. There are scripts developed under previous versions that depend on register_globals that are set to On. These particular scripts may stop running with the 4.2.0 setting. To solve this, change the coding of the scripts so that they can run with this version.
Important improvements were made to the CU version of PHP in Version 4.3.0. The CU is built automatically by default when the PHP is complied from source code. If one wishes for it not to be built, then it must be disabled with installation options.
Version 4.3.1 features a security fix to problems in 4.3.0.
More to come…
On restricting some users.
There are some website owners who wish to restrict the access of their webpage to certain individuals or groups. It is inconceivable since every website owner’s dream is for him or her to have more traffic. Perhaps because some spammers have infiltrated their website, or maybe they have personal reasons. Nevertheless, there is actually a way to restrict the access of a certain user/s to the website or a certain page in a website. Captcha is being used by most webmasters in preventing spammers to send and send information in their website, however, here is the trick to totally ban them from entering your site. The key? IP addresses. Yes, this number sequence means a lot. You can find the coding here for your reference.
Photo taken from http://www.css-design-yorkshire.com
Email forms.
php scripting is not a limited deal. It can create wonderful and secure pages (much more secure than HTML), and so webmasters prefer using it when it comes to online transactions. But aside from making a certain page of your website secure, php can also do lots of things. In fact, you can also make an email sender and put it on your website. You can use it and send personal or business related emails, without using the usual web-based clients people use. Limesoftware has a step by step tutorial on how you can make an email client on your website. What’s more is that you can even make a feedback form so that people can just leave you messages on your website. This can be very beneficial if you have an online business.
Photo taken from http://www.websiteuserguide.com
Create a free SMS counter.
There are a number of reasons why you would want to have a “send free SMS” corner on your website. First, you can drive people to visit your site. Talk about traffic (and I hope that’s enough reason for you to put up a free SMS corner). Second, you can actually use it and send free SMS to your friends. Third, the free SMS counter adds a “friendly” aura to your site. Farheen Rehman posted in Auroranet how people can add SMS boxes in their websites. He even laid everything in a step by step manner, starting with the definitions that most people who don’t have gateway and php scripting skills cannot understand.
Photo taken from http://auroranet.fre3.com
Create a game using PHP.
Who says php programmers can’t be game programmers? Of course they can! But do not expect them to create a Grand Theft Auto kind of game out of php coding. They can’t. All they can make are simple, yet fun games such as quizzes, sudoku and puzzles. LizQuiz is a downloadable snippet, wherein you can just change the variables you will use for the quiz you are making. You can configure the quiz using an XML file, so you don’t need a database to store your pool of questions. You can even add multiple answers to a single question if the question sees fit. You can get the snippet here.
Photo taken from http://www.sliver.com
Using a WYSIWYG editor.
Editing or creating a php page can lead to migraines and irregular sleeps due to the complicated nature of its coding. However, you can actually save time (and get more sleeps too!) if you will use a WYSIWYG php editor. WYSIWYG stands for “What You See Is What You Get” and it is basically a visual editor. It was made specifically for those who wish to make web pages but do not know anything about coding. TinyMCE is a nice program for those who wish to make websites using javascript, html and php. You can even control the pictures you are going to use in the website you are making, allowing you to preview and move the pictures as freely as possible—of course, without the hassle of inputting codes you cannot understand.
Photo taken from http://www.thesynapticleap.org





