PHP Programming 101

June 22nd, 2009

PHP Browser Checking Script

Posted by Conrad in Basic Programming, Information, PHP

Several factors are to be considered should one be involved with deploying projects over the internet. One of the things you could do would be to have a nifty script that checks for the particular browser your clients might be using. This can be done with a simple and short piece of code that can mean the difference between a successful deployment without problems allowing proper extensions and plugins to be included. A sample of the code can be seen below for your reference which makes it easier for your program/web page to know which set of scripts and what parameters to adhere with. (more…)

May 22nd, 2009

WordPress – The Best and Worst of PHP

Posted by Conrad in Information, PHP

WordPressThe web publishing platform is the most used blogging platform the world over, many thanks to PHP, the scripting language on which it has been published and is continuously being improved upon. Many in the open-sourced community have however been saying that there are still a lot of vulnerabilities with the system that uses code injection and many more that the many developers who have been developing and deploying it that remains to be fixed. Many of these target their AdSense links that is being used to boost rankings for bogus sites. The web is filled with pits and holes that are constantly being fixed with newer versions of the platform coming out to address these issues. (more…)

April 22nd, 2009

Zend continues to Grace the PHP Scene

Posted by Conrad in Information, PHP

ZendOne of the best companies that have been developing tools for PHP, Zend has continued to provide solutions such as development tools and community resources to help developers and budding programmers the world over. Their enterprise edition ZendCore offers developers the stacks they need along with the tools you get from their web site to get you down and fast to developing web applications and pages in minutes. Ideal for enterprise applications, they offer valuable enhancements to the development stage with tools and many other useful tips for all. (more…)

March 22nd, 2009

PHP Gets Updated Again and Again

Posted by Conrad in Information, PHP

PHPThis is the best way developers get the best out of their work, updates to the language itself that has become a mainstay of the internet and the many languages that are being used to deploy application all over the net. With a crummy release that came out as PHP 5.2.7, came PHP 5.2.10 that went fast onto their respective RC releases. Soon after, PHP5.2.10 got it’s 2nd RC, news that 5.3 RC came out making an active few days in the lives of PHP developers. There may be some adjustments in terms of code changes but for security and other issues being addressed, it is indeed getting better. (more…)

February 10th, 2009

Select multiple HTML tag

Posted by editor in Codes, Information
Tips to simplify your life

Tips to simplify your life

Want to select multiple items from a list? Then you need to use the select multiple tag in HTML. The action handler then takes care of the form when the items are passed through it. What happens though, is that all of them are passed with the same widget name.

For example:
<select name=”var” multiple=”yes”>
The option you select will register with the action handler as var=option1, var=option2, var=option3. This thereby overwrites the previous $var variable’s contents.

The fix is to utilize the “array from form element” feature of PHP.

Use it like so:
<select name=”var[]” multiple=”yes”>
The first item then becomes $var[0], and then $var[1] for the next, and so on.

Hope this <a href=”http://phpprogrammingtips.net/information/looping-statements-doesnt-loop/”>tip</a> helps.

January 12th, 2009

PHP to Get it’s own Stack

Posted by Conrad in Information

zendPHP is the most popular programming platform to ever grace the web and thanks to PHP, most of today’s web sites, blogs and many other internet staples are made possible with the use of PHP. Now one of the best news to come out of the PHP world is the announcement of the development of the Zend Server which would allow web application deployment and monitoring easy. This has been the most welcome news for till this, most systems have had to rely on the long used LAMP standard that worked but still relied on more traditional development methods that were labor intensive and quite hard to troubleshoot.
Zend promises to deliver faster development, deployment and bug fixing capabilities we can only dream of. (more…)

December 8th, 2008

5.2.7. is a security hazard–get rid of it!

Posted by editor in Information

PHP version 5.2.7. is dangerous and a security hazard; take it out and update to 5.2.8. immediately:

Due to a security bug found in the PHP 5.2.7 release, it has been removed from distribution. The bug affects configurations where magic_quotes_gpc is enabled, because it remains off even when set to on. In the meantime, use PHP 5.2.6 until PHP 5.2.8 is later released.

The PHP Development Team would like to announce the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, which was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release. Alternatively you can apply a work-around for the bug by changing “filter.default_flags=0″ in php.ini.

Take out 5.2.7. as soon as possible and use the newest one for security’s sake!

Source

November 25th, 2008

Navigate with PHP

Posted by Conrad in Information

Image Source: nusphere.com

It is undeniable that PHP is very efficient most especially for your web site design. You can use the functionalities of PHP for difficult implementations like blogs, forums, chats, shopping carts and user form interfaces. While this may all seem a difficult tasks to undertake, you will always have to remember that PHP was designed to provide easy use yet very effective. Thus it is widely used for web navigation. PHP can be used for your site’s header, side navigation and some page information at the bottom. this provides accessibility for users to go around your site with comfort and ease. It will just require you to understand the basic steps in writing the script. It is not at all that hard, if you really come to understand its basic principles.

October 8th, 2008

Php? How does it work?

Posted by Conrad in Information


Image Source:technical-itch.co.uk

What are the uses of Php in the whole computing thing? We might wonder. The answer is simple. Php is practically used everywhere. It is being adapted to multiple platforms. The scripting language has revolutionized the way we communicate within the internet. Php reads and writes files. It is used to execute basic directory and file monitoring and maintenance. Simply put, Php has enabled developers and programmers and users to do things that wasnt possible to do in the web the previous years, like editing specific documents and files remotely. It is used to search files. Collect them and for the information stored in that file to remain there and retrieve it when needed. Now, information is more accessible. It does not require to be coded to a certain database. It can generate HTML and PDF files. It can process XML for HTTP. Its amazing capability to function on different data source makes it the idela tool for search engines.

August 10th, 2008

HISTORY OF PHP


Image sOurce:www.foundationphp.com
PHP was created by Rasmus Lerdorf in 1994 and it was written in C programming language. He created PHP so that he can trace the people who visited his online CV. To make things easier for him to debug his program, he made it into an open source. Then, on June 8, 1995, Lerdorf combined PHP and his own Form Interpreter because of the growing needs of web pages. It was now called as PHP/FI, but generally known as PHP 2.0. Then, in 1997, Andi Gutmans and Zeev Suraski rebuilt the main parser. Before Andi Gutmans and Zeec Suraski rewrote the PHP’s core, PHP was widely known as “Personal Homepage”.

PHP was widely known as “Personal Homepage” until Andi Gutsman and Zeev Suraski Rebuit the main parser of PHP. And so, the acronym PHP was formally changed to PERL Hypertext Preprocessor. Then PHP 3 was released in 1998.

PHP 4 was released in May 2000 with a new core known as the Zend Engine 1.0. In July 2004, PHP 5 was released with the updated Zend Engine 2.0 and new features. PHP 6 was released in October, 20006.

Next Page »