Floating Point Comparisons In PHP and Javascript

2010-05-25T22:45:59+00:00 January 8th, 2008|JavaScript, PHP|

Here’s the problem. Say you’re comparing two floating point numbers a (71.00) and b (71.00) to see if they are the same. The problem is if you’ve done any calculations to arrive at these numbers they might actually be stored as 71.00000000001. Now if one of them is stored that way and the other isn’t and you compare the two to see if they are equal you’ll get a FALSE as the response, even though they should be the same.

Create a Facebook Application With PHP

2010-05-25T22:45:39+00:00 January 7th, 2008|PHP, Social Media|

This tutorial covers the basics of using the Facebook PHP Client Library and how to get your application started, including, installing the Facebook Developer Application, downloading the Facebook PHP Client Library, create your application, a hello Facebook! example, FBML - Facebook Markup Language and using the Facebook API.

Scraping Links With PHP

2010-05-25T22:45:54+00:00 January 6th, 2008|PHP|

In this tutorial you will learn how to build a php script that scrapes links from any web page, some things that can be created via scraping links and the legal issues associated with scraping content.

How to Install PHP 5 on Linux

2010-05-25T22:46:59+00:00 December 21st, 2007|Linux, PHP|

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all Linux-like operating systems.

Upload Files to MySQL using PHP Tutorial

2010-05-25T22:50:28+00:00 November 22nd, 2007|MySQL, PHP|

I much prefer to upload files to mysql instead of saving them directly to the file system. I can run database backups/mirrors that are much easier to manage then if files were placed on the file system. Here are the simple scripts I use to upload files and a script to stream the file back to the browser.

Introduction to PHP Programming

2010-05-25T22:50:40+00:00 November 19th, 2007|PHP|

PHP stands for 'Hypertext Preprocessor' which is actually a recursive acronym. It is an open source and most widely used scripting language for the web. In another words, PHP is a server side scripting language and can be embedded into HTML code which is parsed and processed when the page is requested.

PHP and MySql with PayPal

2010-05-25T22:51:40+00:00 November 16th, 2007|MySQL, PHP|

This tutorial shows how to take use dynamic PHP/MySQL content with PayPal. This is my firsts GoLive tutorial so please let me know how to improve things. I'm also open to any suggestions for more tutorials.

Writing PHP

2010-05-25T22:53:02+00:00 November 11th, 2007|PHP|

System functions available within PHP include creating, opening, reading from, writing to and closing files on the server, executing system commands, create directories and modify file permissions in pre-determined directories. PHP can receive and process data from forms, save data to files, send by email and output a response to the browser.

Using MySQL and PHP

2010-05-25T22:52:32+00:00 November 10th, 2007|MySQL, PHP|

This section deals mainly with exploring the possibilities of combining PHP and MySQL. To check if PHP is setup to use MySQL on your server, look for a section on MySQL in the phpinfo file described earlier. The technical details of setting up MySQL on your system are covered comprehensively in various text books. See the "Source Code Books" link below for more information.