This is available for PHP 3, PHP 4, & PHP 5.
strtoupper -- Make a string uppercase
Description
string strtoupper ( string )
Returns string with all alphabetic characters converted to uppercase.
Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted.
Example 1. strtoupper() example
CODE:
-
<?php
-
$string = "This is a test of the Emergency Broadcasting system...";
-
$string = strtoupper($string);
-
echo $string; // echos - THIS IS A TEST OF THE EMERGENCY BROADCASTING SYSTEM...
Note: This function is binary-safe.
Like all programing languages, there are many ways to connect to databases, this in particular shows a the simplest method, though burying the host, username and password in an include would be better for security reasons, this is effective enough for most purposes.
The only requirements for perl may be the DBD::mysql module if not already installed, this should get all the needed prerequisites that may not be present. Either download them directly from CPAN or use the interactive installer shell
CODE:
-
$perl -MCPAN -e shell
-
$install DBD::mysql
To use this example copy this code into your script, edits $username, $password, and $db_name values to suit your environment.
CODE:
-
#Invoke the Perl Database Libraries
-
use DBI;
-
-
-
# MySQL server hostname
-
my $host = "mysql.serverhost.com";
-
-
#your account username and MySQL password
-
my $username = "your_user";
-
my $password = "your_MySQL_password";
-
-
-
#Edit this to point to the database you wish to connect to
-
my $db_name = "your_database";
-
-
-
#
-
#The following lines do not need to be edited
-
#
-
#put the database and server in to the connect statement
-
$dsn = "DBI:mysql:database=$db_name;host=$host";
-
-
-
#Generate the full connect statement
-
$dbh = DBI->connect($dsn, $username, $password);
-
-
-
#run the connect statement
-
$self->dbh = $dbh;
How To Determine What Version You Are Running
“What version am I running?” is often the question you need to answer before you can start talking to someone about a problem with your software or about making changes to your software.
You can use the following as a quick reference guide to easily answer the question “What version am I running?” for each component of your software (operating system, database, and application):
What version of HP-UX/Solaris/Linux (and most posix systems) am I running?
To get the version of Unix on your server, go into the korn shell and enter the 'uname' command with an 'a' option.:
>uname -a
HP-UX bmd350 B.10.20 D 9000/831 2011043966 64-user license
This example shows HP-UX running the 10.20 version.
$ uname -a
Linux server01 2.6.11-6mdk #1 Tue Mar 22 16:04:32 CET 2005 i686
Mandrake Linux using 2.6.11 kernel
$ uname -a
SunOS server1 5.10 Generic_118822-23 sun4u sparc SUNW,Sun-Fire-V440
Solaris... you get the idea.
What version of IBM AIX am I running?
For those of you running the IBM AIX operating system, to find out what version of the Operating System you are running (including the IBM UniData release), go to the UNIX shell, change directories as shown below and execute the cat command as follows:
# pwd
/usr/ud/bin
-r--r--r-- 1 root dw 173 Feb 28 2003 port.note
# cat port.note
Platform : AIX 4.3.3
Operating System : AIX engine 3 4 000159494C00
Porting Date : Feb 28 2003
UniData Release : 6.0.3 60_030221_4161
Ported by : srcman
#
What version of Windows NT am I running?
To get the version of Windows on your server for all releases of NT4.0, execute the command ‘status’ at TCL within the Universe environment:
>STATUS
You are logged onto XYZ running Windows NT 4.0 (Build 1381 Service Pack 6)
What version of Universe am I running?
To get the version of Universe on your server for all recent releases of Universe, edit the ‘RELLEVEL’ file in your VOC file:
>ED VOC RELLEVEL
0001: X-type - The RELEASE LEVEL of this account
0002: 9.6.1.3
0003: ADMIN
0004:
0005: 9.6.1.3
In this example, the release is 9.6.1.3.
What is my UniVerse Serial Number?
To find the UniVerse Serial Number, enter the CONFIG command at TCL. The Serial Number is the same as the License Number listed on the first line.
>CONFIG
Configuration data for license number 123456789:
User limit = 10
In this example, the UniVerse Serial Number is 123456789
What version of UniData am I running?
To get the version of UniData on your server for all recent releases of UniData, execute ‘VERSION’:
>VERSION
Unidata RDBMS......................3.3.2 Yes
Recoverable File System............1.1 No
Transaction Processing.............1.1 No
UniData OFS/NFA....................1.3 No
UniServer..........................1.3 Yes
UniDesktop.........................1.3 No
USAM Monitor Profile...............1.3 No
USAM Print.........................1.3 No
USAM Batch.........................1.3 No
USAM Journaling....................1.3 No
33265
The actual Version of UniData is 3.3.2.65 (last line).
What version of wIntergrate am I running?
For all releases of wIntegrate, start a session and click on the pull down menu and choose the "About" selection. You will see the version of wIntegrate. Note that wIntegrate98 is the also known as wIntegrate4.x.
What version of Preview am I running?
The easiest way to get your Preview version is to execute the command ‘Preview’ at TCL within the Universe/Unidata environment:
>PREVIEW
PREVIEW v3.0.2
File Name:
This is obviously version 3.0.2. Hit to get out of the file name prompt.
What version of DataFlo am I running?
For those of you who are on DataFlo, it is easy to find out which version of DataFlo you are on. If you are on releases before 5.5, edit the file “WELCOME” in STAT-USER at TCL within the Universe/Unidata environment:
> DataFlo release 5.4 (example shows 5.6 G6):
ED STAT-USER WELCOME
001: \RULER L A A A A CZ
002: ðð D A T A W O R K S C O R P O R A T I O N
003: ððððð+-----------------------------------------+
004: ðð | T H E D A T A W O R K S S Y S T E M |
005: ðð | R E L E A S E 5.4 09-25-92 |
006: ðð | R E V I S I O N G6 06-10-98 |:
The example here is Release 5.4 G6.
For those of you who are on versions of DataFlo that are 5.5 or higher, look at the version record in STAT-TABLES:
>ED STAT-TABLES VERSION
0001: 5.7.8
0002: 10-31-00
0003: 1998/1999/2000
The example here is version 5.7.8.
What version of Kourier am I running?
This list wouldn’t be complete without including how to get your Kourier release. For versions of Kourier that are version 3.0 or higher, the easiest way to get the version is to execute the command ‘KMK.VERSION’ at TCL within the Universe/Unidata environment:
>KMK.VERSION
Kourier by Kore Technologies
Version......: 3.1.1
Release Date.: 05-23-2002:
The example shows the Kourier version is 3.1.1.
An amazing illusion! And the last sentence is so true...
If your eyes follow the movement of the rotating pink dot, you will only
see one color, pink.
However. if you stare at the black "+" in the center, the moving dot turns
to green.
Now, concentrate on the black "+" in the center of the picture. After a
short period, all the pink dots will slowly disappear, and you will only
see a green dot rotating.
It's amazing how our brain works. There really is no green dot, and the
pink ones really don't disappear. This should be proof enough, we don't
always see what we think we see.
