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 - 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".
Similar Code Examples:
- 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.
patryksharks: shouldn't it be preg matches?
post comment or question
- 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.
- 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.
Stone Deft: Is there a tutorial somewhere where you can actually integrate this to Ajax. I know it can be done. Please share tnx
post comment or question
- 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().
My Free Tutorials:
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
How to Create a Website with Datapod
Install Fedora 6 in VMWare on Windows XP and connect it to your network
Install Perl 5 on Windows XP and Get a Perl Hello World Running
Install OpenSuse 10.2 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
Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin