PHP fsocketopen and Salesforce.com
Image via Wikipedia I have been asked many times if there is a way to integrate salesforce.com into an existing website without anyone knowing that it is being integrated without paying for the highend accounts or using the API. For those of you scratching your heads let me try and clarify this. Lets say you [...]
Ubuntu: Install LAMP: Linux Apache2 MySQL PHP5
First off, this one will be quick and painless, and only applies to those who are installing Apache2, MySQL, and PHP5 after the fact. The major step that stumps most people is getting PHP5 to work, more on this in a moment. If you are doing any kind of PHP development at all, most will [...]
PHP and MySQL Dates – A guide to ease the pain!
This is one of those issues that seems to pop up a lot especially with programmers new to PHP and MySQL. Seems that a lot of the people get hung up when trying to find the best way (or any way for that matter) to manage dates in a MySQL database and then use them [...]
PHP – A Template Class with Simple Parser
It is actually very easy to create a Template system in PHP. Just about every CMS system out there uses some sort of template system. There will come a time that every developer, for one reason or another will need to create their own template system. What I have decided to do is create a [...]
PHP – Manipulating Files
Now I know there are a hundred and one tutorials on how to manipulate files with PHP, but I have to write this tutorial for no other reason than to practice writing. You see I aspire to perhaps write a book or two about programming on the web and well, I am going to need [...]
PHP – Stack and Queue
I have been ask on more than one occasion by beginners in PHP, especially those fresh out of college or those still in college, how would I do a stack and queue structure in PHP. Well the truth is that PHP has built in functions to manipulate arrays as though the were either a Stack [...]
PHP – Simulating Two Handed Card Shuffle
I decided that I would write a tutorial on how to simulate a two handed card shuffle on a deck of cards. Yesterday I wrote this in JavaScript here, today I am porting this to PHP. Most of us know what a two handed card shuffle is, and most of use this method to shuffle [...]
The Basics of Working With PHP Arrays
An array in PHP is simply a variable that is used to store data. Most of the time this data has some sort of common denominator. You will see a lot of code storing things like table row data in arrays. Using arrays also allows you do do some neat things that would be other [...]
Adding a Comment to a PHP Code Page
Comments are actually the most important thing any coder can learn to properly use. There are actually a few different styles to use when commenting code for PHP. In this tutorial I am mostly going to let the code do the speaking … so to speak …?! Any way. Let me get a few important [...]
Inserting PHP Code Into a Web Page
Most beginners in PHP are under the assumption that only PHP code can be placed in .php files. This is an incorrect assumption. Today I am going to show how to insert PHP code into HTML markup and place all of it in a .php file. Inserting PHP code into HTML markup allows us to [...]




