eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 

Your Online Guide » IT Hardwares » Computer Hardware Guide

[O10]Object Oriented Php Programming
by Jon Caldwell, Jon

If you have been browsing the web foir quite sometime, then you might have come across cookies which allows your browser to remember passwords and other information that may have anything to do with your actions on a particular website. These can be preferences that would allow the browser or webpage on the browser to determine your habits online allowing it to perform the requested operations faster and easier. A cookie is called a client-based information for it is stored on the client computer (yours when you browse the web) and is taken or stored intact along with all the information it contains for a specified amount of time or till you delete your browsing history and cookies. If you have come across tracking cookies, these are information that defines you to a particular web page which is called upon on your next visit. When creating cookies with your page, there are specific parameters (cookies by the way are created using user-made code in PHP) that must be remembered so as not to fill up the hard disks of your client computers as they visit your website page again and again. The function setcookie is used with the following syntax:

setcookie(var1, var2, time)

The var 1 stands for the name of the cookie you are creating, with the var 2 containing the value of the said cookie and the last parameter is the time which specifies the amount of time it takes for the function to kill (terminate/delete) the cookie. A more defined and elaborate explanation of the function can be found on this page.

There are a lot of programmers who share code and sample applications which you can use for free (provided you clear it up first) but for budding programmers, they’re all there for the taking. Sites like , and many other blogs and help sites allows access to tips from programmers like you making it a pleasant experience altogether. Can’t find a question, post questions to the many forums and you’ll get help from others in no time, you might even get help from the guru’s themselves who made the phenomenon that is PHP possible for all of us to use.

Thanks to the basic foundation on which PHP is founded on, the language being free of all legalities and other stuff that makes deployment of other languages on the many platforms quite expensive. But the many people who makeup the PHP community are not ones who keep knowledge to themselves for there are tons of free pre-made templates for applications and processes on the web available for programmers from all skill levels. They make it fun and easy to learn the language in no time and the community fosters growth to all of those who benefit from the use of PHP. Search online for help and you will surely get it in the form of forums and other helpful articles.

As stated in the previous entry, shortening or simplifying your source code makes it easier and better when you need to find bugs and a good example of this would be :

Example :
if ($Mickey == true) echo ‘Welcome to the Mickey Mouse Club House’;
elseif ($MainCharacter == false) echo ‘Hi Barney!’;

Making things a bit simpler, say by taking away the ‘==’ and ‘!=’ gives you;

if ($Mickey) echo ‘Welcome to the Mickey Mouse Club House.’;
elseif (!$MainCharacter) echo ‘Hi Barney!’;

Simplifying code should be the aim of each and every programmer (who’s head aches when you get some bugs you got to fix) so you get to code less and better than the other guy. Remember, we’re all on the same plane using the same free language so we should be helping others for the better.


For some people, it may be too complicated but given a couple of sessions and trial on how to program using PHP, most of these tags such as and will become elementary for most.

You can build a lot of things with PHP and one important program you can compile are file uploaders which will be important when you need to place images or other files necessary for you site.

If you're a PHP developer who has built a certain number of web applications, then it's quite probable that you've already worked with HTTP file uploads. They play a relevant role in the business logic of any PHP program that permits users to transfer specific files from their client computers to a web server via a web-based front-end, which is generally represented by an online form.

Ranking behind Java, C, and Visual Basic, PHP is the fourth most popular computer programming language that is especially suited for web development. It mainly runs on a web server with PHP code as its input and generating web pages as output. PHP can be installed on web servers, operating systems and platforms. It can be used for command-line scripting and client-side GUI application, as well as with several relational database management systems. The PHP group provides the complete source code for users to build, customize and expand for their own purposes and the best part is, it is free of charge.

PHP is considered to be one of the most popular server-side scripting systems on the web. And because of PHP's popularity, a new generation of programmers who are familiar with PHP alone makes it possible to open a ?command line interface? for PHP. Along with GUI functions support (Gtk or ncurses support), CLI or ?command line interface? is a process of interacting with a computer by providing lines of text commands in written structure either from a keyboard input or from a script. This whole process of command line interface is considered to be a major step for PHP as it stands for its implementation as a genuine programming language.

Rasmus Lerdorf in 1994 originally generated PHP as a wrapper around Perl to display his resume information and collect some data like how many hits it was making. In 1995 Leodorf combined his own Form Interpreter with ?personal home page tools? to create PHP/FI. In 1997, two Israeli developers of the Technion, Zeev Suraski and Andi Gutmans, rewrote the parser thus the basis of PHP3. PHP/FI 2 was officially released in November 1997 and public testing of PHP 3 began right away and the official launching was in June 1998. in 1999, the two Israelite started a new rewrite of PHP's core thus producing the Zend Engine. And in May 2000, PHP 4 was released and the development continues with PHP 5.

PHP's principal focus is server-side scripting which is a web server technology in that involves the process of running a script directly on the web server to create dynamic HTML pages thus fulfilling the user's request. PHP is originally intended to generate dynamic web pages and its server-side scripting function is the same with other server-side scripting languages that offer dynamic content from a web server to a client, such as http://ASP.NET system of Microsoft, Sun Microsystems's JavaServer Pages and mod perl. PHP attracted development of various frameworks (code library made for helping in software development) as well that give building blocks and a design structure to promote rapid application development (RAD).
Article Source : Can T Get On Internet

Jon Caldwell has sinced written about articles on various topics from Beauty Tips, Careers and Job Hunting and Interview Questions. Jon Caldwell is a professional content manager. Much of his articles can be found at http://. Jon Caldwell's top article generates over 301000 views. to your Favourites.
EditorialToday IT Hardwares has 2 sub sections. Such as Computer Guide and Hardware. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors