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
|
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 questionpost comment or question |
|
|
Similar Code Examples:
|
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..
| post comment or questionpost comment or question |
|
|
|
PHP CODE EXAMPLE
- added on November 13, 2008
Stumbled across this use of define() today, nice for HTML tag and newline shortcuts etc.
| post comment or questionpost comment or question |
|
|
|
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.
| post comment or questionpost comment or question |
|
|
|
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.
patryksharks: shouldn't it be preg matches?
greetings post comment or questionpost comment or question |
|
|
|
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.
| post comment or questionpost comment or question |
|
|
|
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.
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 questionpost comment or question |
|
|
|
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.
| post comment or questionpost comment or question |
|
|
|
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().
| post comment or questionpost comment or question |
|
|
|
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.
| post comment or questionpost comment or question |
|
|
| 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  |