The ‘PHP programming’ Archives
Posted April 21, 2013 by

PHP: Get Form Data via POST and GET

In many applications you will need to retrieve user entered data from a form of some sort, here are a few methods of doing so with PHP.

Category PHP programming

Posted April 11, 2013 by

PHP: Find Length and Word Count of String

It’s important to understand PHP’s numerous built in functions for manipulating strings if you ever want to be efficient with the language. Here are two really important ones.

Category PHP programming

Posted April 8, 2013 by

PHP: Create an Array

Learn how to store multiple values in one variable via an array, with PHP

Category PHP programming

Posted December 13, 2012 by

PHP Syntax: Three Ways to Create Comments

example of block comments in php

PHP allows three different methods of formatting comments. All of these sytax examples will seem familiar to programmers of other languages.

Category PHP programming

Posted September 23, 2012 by

Install Pear on Windows 7 64x using WAMP

Learn how to set up PEAR in a Windows 7 environment using WAMP. We go around a Windows 7 64x WAMP issue and make it work!

Category PHP programming

Posted July 20, 2012 by

Display the Date with PHP

Learn how to put a little kick in your static website and display the date via PHP – it’s very simple and easy to customize.

Category PHP programming

Posted February 12, 2012 by

php: Separate Spaced Words within a String

Frequently, coders find they need to split a string into its separate words. If these words are separated by spaces, then the command options are simple.

Category PHP programming

Posted March 19, 2010 by

PHP: Camel Case to Spaces or Underscore

Recently while working on a project, I found I needed to convert camelcase strings to space-separated strings. This same technique will work if you want to convert camelcase to underscore separation as well.

Category PHP programming

Posted February 12, 2009 by

Pear Fix for “Error: Unable to Unpack”

Recently while trying to install some Pear packages, I received an odd “Error: Unable to Unpack” message. A search for this error message found a lot of complaining people and not a lot of answers. I finally figured out the cause and the fix for this common Pear problem.

Category PHP programming

Posted September 30, 2008 by

PHP: Upload Files to the Server

With PHP, it is simple to upload any file to your server.

Category PHP programming

Posted March 8, 2008 by

PHP: Print the current year for copyright notices

Hardcoding the year in a copyright notice is an easy way to get a blog or other website started, just placing the starting and ending years next to the copyright symbol. We have the very best of intentions to change this number right after the big ball drops in Times Square each year. We’re also […]

Category PHP programming

Posted July 14, 2006 by

PHP: Delete or Expire a Browser Cookie

Cookies may be created with an expiration time. It may become necessary to expire a cookie before the expiration time such as when a user logs out of a cookie-based authentication web application. This tech-recipe describes expiring a cookie.

Category PHP programming