Hello Programmers

By greg | Posted in RPG Intro
Hello Programmers

This FREE site is dedicated to all professional programmers trying to write clear structured code, network their pc's and, in some cases, deal with web site issues. We have free source code, free samples, free tips and techniques, free utilities, free sample test questions and answers, free downloads, free books and manuals, free examples. You do...
Read more »

Stopping Website Visitor Blog Spam

By greg | Posted in PHP Advanced, PHP WordPress

Stopping Website Visitor Comment Spam. (ex: wordpress) IF you have a blog and want visitors to easily add a comment to an item, you will also get spam - lots of it - unless you, traditionally, forced visitors to create a login before...
Read more »

Unix-Apache .htaccess

By greg | Posted in Networking

.htaccess files (or "distributed configuration files") allow you to do many different things, ... commonly, to have your own custom 404 error pages, to redirect pages, and to enhance security. (for security, see Internet Security Note 1: Unix used .filename extensions before Microsloth...
Read more »

Internet, Web Site, Security

By greg | Posted in Networking

Neither the best passwords, nor .htaccess, nor php.ini files, nor a super-helpful hosting co., will protect your web site if your pc is infected with a key-stroke-logger sending crooks your every id and password...
Read more »

SDA and RDA is now “RDS” or “RDPi”?, A.K.A. Eclipse

By greg | Posted in RPG Advanced
SDA and RDA is now “RDS” or “RDPi”?, A.K.A. Eclipse

April 2010 IBM Rational Developer for i (renamed in 2008 from WDSc), has been withdrawn from market and is replaced by the Rational Developer for Power Systems Software – RPG and COBOL Development Tools for...
Read more »

Structured display of All Variables in memory

By greg | Posted in PHP Advanced

"The function, get_defined_vars(), returns a multidimensional array containing a list of all defined variables at that location in your program." To get ALL variables, list ALL variables, display ALL variables, in memory and available at...
Read more »

PHP6: Character encoding and other new features

By greg | Posted in PHP Advanced

The Internet is converging on UTF-8 for a common / universal character encoding. Set your apache environment to utf-8 by adding 'AddDefaultCharset utf-8' to your .htaccess. If you do not...
Read more »

Function: Convert Numbers to Words

By greg | Posted in PHP Advanced

This little script is to convert a number, an integer, to words. It has an upper limit of 999,999,999 but you can expand or reduce it from there. It also demonstrates the new php5...
Read more »

SQL db Injection, Cross-Scripting, RFI, and LFI

It is possible for a hacker to enter the following seemingly innocuous text into the UserName textbox to gain entry to the system without having to know a valid user name and password: ' Or...
Read more »

Original Technology terms translated

By admin | Posted in asides
Original Technology terms translated

Just for the fun of it: (found this a long time ago) Hope you enjoy it also!
Read more »

Using WordPress

By greg | Posted in PHP WordPress

There are some problems with WordPress which can be easy to fix if someone would just tell you how. Some issues involve portability: when you change internet hosting providers, and when you have...
Read more »

Comparing OOP in php, java, and C++

By greg | Posted in C++ and C#, PHP Advanced

Sample introductory Object Oriented Programming code in php, java, and C++ showing the similarities and differences. Never-the-less, OOP, despite all the bragging we hear about it, is a lot more expensive to write...
Read more »

WDSC tracks TODO/Tasks

By Ken | Posted in RPG WDSC
WDSC tracks TODO/Tasks

Using IBM's WDSC/Rdi, ("WebSphere Development Studio Client") you can use your Task View Window to mark places that you need to update code. This is a very handy Feature! You create create a...
Read more »

more details on the power of Visual Explain

By Ken | Posted in RPG Visual Explain
more details on the power of Visual Explain

I have mentioned Visual Explain before, but thought I would show more details… Recently, I had several people ask me for more details on the power of "Visual Explain" I *think* this option has been around...
Read more »

IBM Bringing MySQL to the iSeries, to DB2

By Ken | Posted in RPG Advanced
IBM Bringing MySQL to the iSeries, to DB2

What a Lifelong DB2 Fanatic Sees in MySQL Published: February 3, 2010 by Susan Gantner In my mind, you can't beat our database. It's not only integrated into the operating system, it's also incredibly flexible. You...
Read more »

Passing Variable-Length Parameters to Subprocedures

By Ken | Posted in RPG Advanced

In RPG, there is a subtle but important difference between the VARYING keyword that is used to assign a variable-length attribute to a character field and the OPTIONS(*VARSIZE) keyword that is used to permit...
Read more »

SQL: some basic JOIN syntax

By greg | Posted in MySQL

INNER JOIN and , (comma) are equivalent in the absence of a join condition and "JOIN" is defined to be equivalent to an "INNER JOIN" Examples: SELECT * FROM customer AS c, ...
Read more »

Activation Groups

By Ken | Posted in RPG Advanced

Activation Groups Creating RPG programs out of modules, is a two-step process:  This includes  CRTRPGMOD (Create RPG...
Read more »

Binding – Linking; Directories

By Ken | Posted in RPG Advanced

Binding ( or Linking ) "service programs" (*SRVPGM). The CRTPGM command is used to combine one or more *MODULEs into a *PGM, while CRTSRVPGM is used to combine one or more...
Read more »

SubProcedures

By Ken | Posted in RPG Advanced

SubProcedures can return a value like a function, and they support recursion. A program with a subprocedure will not run in the default activation group, so include an H-spec to force it to run in...
Read more »

RPG IV Free-format MOVEA

By Ken | Posted in RPG Advanced

The MOVEA (move with array) operation code may not be supported in Free Format, but that doesn't stop Bob Cozzi, or us, from making it work anyway - in his Jan 12th, "Tuesday Tip"...
Read more »

RPG: sample free-format code

By Ken | Posted in RPG Intro

free-format RPG: The only two lines of code that must start in a specific position are the compiler directives /FREE and /END-FREE, which begin in column 7. The lines in between can use any columns...
Read more »

SQL: date – time displays, conversions

By greg | Posted in MySQL

UNIX TIME example: start = (1196440219) 2007-11-30 10:30:19 FROM_UNIXTIME(start) UNIX_TIMESTAMP() = NOW ex: SET start = UNIX_TIMESTAMP() ...
Read more »

RPG-ILE : 35 Question quiz

By Ken | Posted in RPG test Q’s

RPG-ILE - RPG-IV Quiz offered in 2007 to co's and agencies for technical testing of their RPG programmer job applicants. If you have been in an interview recently and were asked a question...
Read more »