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.

September 29th, 2008

The numeric status code

Posted by Conrad in Codes


Image Source:yourhtmlsource.com

A reply line indicates whether a request was successful. It includes the protocol being used, a numeric status code, and a short description of the status code.

An example would be:

HTTP/1.1 200 OK

We often see numeric status codes in the browser every now and then. For so many reasons. These numbers may look jumbled to us or we simply cannot understand them but it stands for something.

The numeric status codes fall into the following ranges:

100-199
Information messages on the current status of processing.
200-299
Successful request.
300-399
Request cancelled because document or resource has been moved.
400-499
Client error. The request was incomplete, incorrect, or otherwise unresolvable.
500-599
Server error. Request appears valid, but server could not complete it.

Have you observed? The most common status message we get to see is the “404 Not Found” error, it just means that the document you requested does not exist. Two things though, this is either because it really doesn’t exist or because you entered the URL wrong. When a 404 is returned it is usually displayed on the browser screen in whatever default format is used by that browser. The server may also transmit a detailed error report page along with an error message if the resource call was unsuccessful.

Next Page »

Bad Behavior has blocked 92 access attempts in the last 7 days.