My name is Edward Tanguay. I am a web developer in Berlin, Germany. I learn everything I can and record it on this site.
Other things you might be looking for:
My Ubuntu Tutorial
My Datapod Project
My Blog Feed:
- Code Examples
Code Example: How to create a PHP Webservice with nusoap and consume it with nusoap and PHP5's SoapClient()
PHP CODE EXAMPLE - added on November 18, 2008
How to create a PHP Webservice with nusoap and consume it with nusoap and PHP5's SoapClient() 
Nusoap is convenient because you don't have to make any changes on the server, just download and copy the library files to a sub-directory. Nusoap also creates a WSDL file automatically for you. These examples show how to return an array of values so that you could, e.g. return 20 fields of information about a user, for instance. Not that on the nusoap examples I turn the cache off since when you have it on while you are developing and add a method to your soap server, your client doesn't recognize the changes. First download nusoap, then copy the files to a sub-directory on your web called "nusoap".
post comment or question
Similar Code Examples:
Code Example: File that shows how all PHP 5.2 input_filters work.
PHP CODE EXAMPLE - added on November 18, 2008
This file runs through the input filters codes and shows how e.g. filter_var($value, FILTER_SANITIZE_STRING) and filter_input($value, FILTER_SANITIZE_STRING) will alter strings. You can see an example this here..
SHOW CODE

post comment or question
Code Example: Use define() for tedious-to-type constants
PHP CODE EXAMPLE - added on November 13, 2008
Stumbled across this use of define() today, nice for HTML tag and newline shortcuts etc.
SHOW CODE

post comment or question
Code Example: A quick MySQL data layer class that makes read/writes one-liners
PHP CODE EXAMPLE - added on September 18, 2008
If you need to write a quick PHP script that accesses a MySQL database, just copy in or include this class and you can do all your reads and writes with one-line satements.
SHOW CODE

post comment or question
Code Example: How to check if an IP-address is within the range of two IP-addresses
PHP CODE EXAMPLE - added on July 17, 2008
This function checks if an IP address is between two others, not that ip2long has a problem by itself so you need the sprintf("%u") function as well. Also it returns false if any of the IP addresses are invalid as to avoid tampering.
SHOW CODE

patryksharks: shouldn't it be preg matches? greetings
arrow pointing right
reply
post comment or question
Code Example: How to use an .ini file with constants for e.g. translations
PHP CODE EXAMPLE - added on June 30, 2008
If you have various translations of your website, a quick way to implement this is to have an .ini file with all the translations in it and read it out. This code shows you how to also use constants within the ini file.
SHOW CODE

post comment or question
Code Example: Use mod_rewrite to make easy-to-remember, Google-friendly URLs
PHP CODE EXAMPLE - added on April 30, 2008
Getting mod_rewrite to do what you want is like programming in Perl on a two-beer buzz. It almost makes me want to order the book The Definitive Guide to Apache mod_rewrite. Anyway, and therefore, I am proud to present, a mod_rewrite script that works: this script allows users and search engine bots to access my Install PHP workshop at this nice URL: http://tanguay.info/web/install_php_on_windows instead of the messier one with the idCode etc. Just copy this into your .htaccess file in the directory in which you want it to take effect and change accordingly. The /web/ is the name of directory off my base at my Internet provider. You can write as many Rewrite rules you want to make even your gnarliest URLs short, pretty, easy-to-read, and easy-to-index.
SHOW CODE

Stone Deft: Is there a tutorial somewhere where you can actually integrate this to Ajax. I know it can be done. Please share tnx
arrow pointing right
reply
post comment or question
Code Example: Function to get Date/Time with milliseconds in sortable order
PHP CODE EXAMPLE - added on April 28, 2008
This function saves date/time stamps with milliseconds in an MySQL sortable format, e.g. 2008-12-31 22:18:40.484382.
SHOW CODE

post comment or question
Code Example: Function to combine two arrays.
PHP CODE EXAMPLE - added on April 24, 2008
First of all, the PHP function array_combine() is a false friend if you think it that it combines two small arrays to make a large array. What it actually does is take a key array and a value array and hitches them together into one key/value array. In order to combine arrays in that sense you need array_merge. However, with array_merge, if either of arrays are null you will receive a PHP warning. Hence this function: smartArrayMerge().
SHOW CODE

post comment or question
Code Example: Function that randomizes order of an associative array
PHP CODE EXAMPLE - added on April 21, 2008
This is useful if you have an array of e.g. records which you need to "jumble up" but of course maintain their keys so they can be individually identified after the jumbling.
SHOW CODE

post comment or question
My Free Tutorials:
Tutorial: How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
Tutorial: How to Create a Website with Datapod
How to Create a Website with Datapod
Tutorial: Install Fedora 6 in VMWare on Windows XP and connect it to your network
Install Fedora 6 in VMWare on Windows XP and connect it to your network
Tutorial: Install Perl 5 on Windows XP and Get a Perl Hello World Running
Install Perl 5 on Windows XP and Get a Perl Hello World Running
Tutorial: Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Tutorial: Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Tutorial: Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Tutorial: Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Tutorial: Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Tutorial: How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
This site was made with Datapod.