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
These are the latest code examples I've added. To find other code examples, use the search box in the upper-right.
|
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 18, 2008
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 |
|
|
|
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 |
|
|
|
FLEX CODE EXAMPLE
- added on November 8, 2008
The following instructions show you the exact steps to set up a free development environment on windows which allows you to develop Flex applications with ActionScript 3. You won't have the nice step-through debugging or the design view of Adobe's FlexBuilder but this code shows you how to create a two-line MXML file which allows you to do all your programming back in ActionScript 3 classes anyway so you just kind of use the MXML file as a tunnel to be able use the rich Flex libraries. FlashDevelop has very nice code-completion and other features, and with traces you can do decent debugging. The code helps you get up to speed with event handlers which are a bit different than web scripting if that is all you have been doing so far. You can view a running example of this appliction here.
| post comment or questionpost comment or question |
|
|
|
This works much better than my previous example since it enables FlashDevelop to do its nice code-completion on Flex objects such as "button". In FlashDevelop, new project, Flex, Flex 3 Project, then replace MXML code, then create a class and put in the ActionScript3 code.
| post comment or questionpost comment or question |
|
|
|
In FlashDevelop, new project, Flex, Flex 3 Project, then replace MXML code, then create a class and put in the ActionScript3 code. Unfortunately it doesn't seem to have the nice code complete completion for e.g. the button object.
| post comment or questionpost comment or question |
|
|
|
In FlashDevelop, New Project, AS3 Project, (check Create directory for project), (Project/Properties/Text Movie/Play in popup), then open up Main.as and replace it with this code.
| 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 |
|
|
|
PERL CODE EXAMPLE
- added on September 10, 2008
Was on a Perl project where the code had 5 lines of database connection code for each time it needed to get data from the database, so I wrote these functions which allow you to get records, record, value or execute a command with one-liners. Records are an array of hashes and included the code to call the functions since figuring out what syntax you need to access the objects through pointers/references can be time-consuming. End result is: if you just need to use Perl quick to read and write to a MySQL database, this code will get you up to speed fast.
| post comment or questionpost comment or question |
|
|
|
PERL CODE EXAMPLE
- added on September 2, 2008
If you need to do something quick and useful in Perl, this will get you reading and writing in databases and text files. If you are a PHP programmer getting into Perl then look up the "eq" operator first.
| 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  |