473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP and iSeries

My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi
Jul 17 '05 #1
6 7775
Thad Rizzi wrote:
My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi


iSeries means nothing except that it is an IBM box. What OS - Linux,
AIX, WNT(hack,hack,cough,cough,gag!!!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hack,cough,cough,gag -
you're killing me here!!!!) ? Are they installed and configured?

If not, download and install PHP for your platform.
start at http://www.php.net
Download and install MySQL and configure it (create databases etc...)
start at http://www.mysql.com
Which web server - because there are lots of things that must be
changed/added to the web server configurations for PHP to work.

The web is full of examples - try google -- and BTW, the "box" you are
using in these searches is irrelavent.

Michael Austin
Jul 17 '05 #2
On Fri, 25 Jun 2004 14:21:20 +0000, Michael Austin wrote:
Thad Rizzi wrote:
My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi
iSeries means nothing except that it is an IBM box. What OS - Linux,
AIX, WNT(hack,hack,cough,cough,gag!!!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hack,cough,cough,gag -
you're killing me here!!!!) ? Are they installed and configured?


Hi Michael,

I'm not sure how familiar you are with iSeries (the box formerly known as
AS/400) but typically you're running OS/400 (which IBM is calling i5/OS
nowadays). I guess you might be able to put AIX on it but I personally
have never seen nor heard of that. If you have an AS/400 with an LPAR you
can run linux along side OS/400.

So... the original poster is almost certainly running OS/400 and a
bastardized version of Apache. He is also almost certainly talking about
pulling data from the DB2/DBUniversal databases.
The web is full of examples - try google -- and BTW, the "box" you are
using in these searches is irrelavent.


On the contrary, SQL for DB2 is different than it is for MySQL et. al. so
what "box" you're doing this on is quite relevant (since it's far
more common for people to talk about AS/400 and SQL not DB2 and SQL and
that is what Google will index)

Thad - I've never used the Apache server that comes with the AS/400
but I have written several applications that pull data from an AS/400 to
an Apache server running on a separate linux machine. In my case though I
had to use Java because I was making program calls rather than just
pulling data.

Here are some links that might be helpful:

http://www.php-faq.com/as400.html
http://dns.celleweb.de/db2/db2howto.eng.html
http://www-1.ibm.com/servers/eserver...dbc/index.html

and if you're dealing with RVI you may as well plan on figuring everything
out yourself 'cause you'll not get any help from ole Monty or his people.
Jul 17 '05 #3
Benny Hill <benny_hill3@your_rose_colored_glassesyahoo.com> wrote in message news:<pan.2004.06.26.03.12.05.243537@your_rose_col ored_glassesyahoo.com>...
On Fri, 25 Jun 2004 14:21:20 +0000, Michael Austin wrote:
Thad Rizzi wrote:
My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi


iSeries means nothing except that it is an IBM box. What OS - Linux,
AIX, WNT(hack,hack,cough,cough,gag!!!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hack,cough,cough,gag -
you're killing me here!!!!) ? Are they installed and configured?


Hi Michael,

I'm not sure how familiar you are with iSeries (the box formerly known as
AS/400) but typically you're running OS/400 (which IBM is calling i5/OS
nowadays). I guess you might be able to put AIX on it but I personally
have never seen nor heard of that. If you have an AS/400 with an LPAR you
can run linux along side OS/400.

So... the original poster is almost certainly running OS/400 and a
bastardized version of Apache. He is also almost certainly talking about
pulling data from the DB2/DBUniversal databases.
The web is full of examples - try google -- and BTW, the "box" you are
using in these searches is irrelavent.


On the contrary, SQL for DB2 is different than it is for MySQL et. al. so
what "box" you're doing this on is quite relevant (since it's far
more common for people to talk about AS/400 and SQL not DB2 and SQL and
that is what Google will index)

Thad - I've never used the Apache server that comes with the AS/400
but I have written several applications that pull data from an AS/400 to
an Apache server running on a separate linux machine. In my case though I
had to use Java because I was making program calls rather than just
pulling data.

Here are some links that might be helpful:

http://www.php-faq.com/as400.html
http://dns.celleweb.de/db2/db2howto.eng.html
http://www-1.ibm.com/servers/eserver...dbc/index.html

and if you're dealing with RVI you may as well plan on figuring everything
out yourself 'cause you'll not get any help from ole Monty or his people.


Thanks for the info Benny. You were right on with what I was running
and trying to do. My mistake for assuming that everyone is familiar
with the iSeries platform. For the record, I am running V5R2 of
OS/400 as my operating system. I am running IBM's webserver, "powered
by Apache". I wish to connect to UDB (IBM's database on the iSeries)
using PHP which is installed and configured on the iSeries but for
which IBM offers no real support. As I mentioned in my earlier post,
I am rather new to PHP and hopefully will not kill anyone with my
posts.

Thad Rizzi
Jul 17 '05 #4
Michael,

From here on I would appreciate it if you refrained from participating
in any threads initiated by me.

Thanks,
Thad Rizzi
Michael Austin <ma*****@firstdbasource.com> wrote in message news:<Ax*****************@newssvr24.news.prodigy.c om>...
Thad Rizzi wrote:
My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi


iSeries means nothing except that it is an IBM box. What OS - Linux,
AIX, WNT(hack,hack,cough,cough,gag!!!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hack,cough,cough,gag -
you're killing me here!!!!) ? Are they installed and configured?

If not, download and install PHP for your platform.
start at http://www.php.net
Download and install MySQL and configure it (create databases etc...)
start at http://www.mysql.com
Which web server - because there are lots of things that must be
changed/added to the web server configurations for PHP to work.

The web is full of examples - try google -- and BTW, the "box" you are
using in these searches is irrelavent.

Michael Austin

Jul 17 '05 #5
On Sun, 27 Jun 2004 20:51:15 -0700, Thad Rizzi wrote:
Thanks for the info Benny. You were right on with what I was running
and trying to do. My mistake for assuming that everyone is familiar
with the iSeries platform. For the record, I am running V5R2 of
OS/400 as my operating system. I am running IBM's webserver, "powered
by Apache". I wish to connect to UDB (IBM's database on the iSeries)
using PHP which is installed and configured on the iSeries but for
which IBM offers no real support. As I mentioned in my earlier post,
I am rather new to PHP and hopefully will not kill anyone with my
posts.

Thad Rizzi


I'm afraid I don't have much else to add. I assume you are familiar with
the WRKLNK command so you can view/edit files in the IFS. The web stuff
is in /www/apachedft/htdocs/ (at least on the AS/400 I'm looking at right
now).

I was researching hosting companies recently and I remember that one of
them offered hosting on AS/400's (which I thought was really weird). You
might try Googling for "AS400 web hosting" or something. If you find a
place offering hosting they might have documentation that you can get to
that discusses getting access to the DB2 (or UDB or whatever IBM calls
their database nowadays) databases.

If you can't find the information you need as a last resort you could
consider running the webserver on a separate box running linux/apache.
Then you could use PHP/ODBC to connect to the AS/400 or JavaServer Pages
and JDBC (search for the IBM Java Toolbox or jt400).

Good luck!
Jul 17 '05 #6
Thad Rizzi wrote:
Michael,

From here on I would appreciate it if you refrained from participating
in any threads initiated by me.

Thanks,
Thad Rizzi
Michael Austin <ma*****@firstdbasource.com> wrote in message news:<Ax*****************@newssvr24.news.prodigy.c om>...
Thad Rizzi wrote:

My webserver is an iSeries and I want to run some PHP scripts on it
using SQL to access data on the iSeries. Does anyone have any
exapmles or resources on the most effective way to do this?

I am rather green with PHP.

Any help would be appreciated,
Thad Rizzi


iSeries means nothing except that it is an IBM box. What OS - Linux,
AIX, WNT(hack,hack,cough,cough,gag!!!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hack,cough,cough,gag -
you're killing me here!!!!) ? Are they installed and configured?

If not, download and install PHP for your platform.
start at http://www.php.net
Download and install MySQL and configure it (create databases etc...)
start at http://www.mysql.com
Which web server - because there are lots of things that must be
changed/added to the web server configurations for PHP to work.

The web is full of examples - try google -- and BTW, the "box" you are
using in these searches is irrelavent.

Michael Austin


My apologies if you were offended by my attempt to point you in the
right direction. I do know a bit about the iSeries, not only does it
run OS/400, but it also can run Linux and in the near future AIX.
(see << http://www-1.ibm.com/servers/eserver/iseries/linux/ >> for more
details). And a simple google search for "iseries aix" will yield this
quote "Adding to its list of supported platforms, the iSeries is slated
to announce support for AIX in iSeries logical partitions with the next
generation of iSeries" at:
http://www.iseries400experts.com/aiw/02-0204.jsp - granted I did not
read the whole article, but this seems to suggest that you will see it
in the near future... which is why it was included in my question of OS
type. Also, according to IBM's website AIX-5L is now available for the
iSeries.

When posting about a tool/language, it has always been proper netiquette
to provide at least some basic information regarding the operating
system and versions of the tools/languages in question as the answer may
differ from version to version.

Michael Austin.
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Sisk | last post by:
Hi folks: We have a script containing DDL statements to create tables and indexes, etc. On DB2 for Unix, I'd do a "db2 -tvf script_name.sql -z logfile_name.log", but I don't think that works on...
4
by: erkki | last post by:
Hi, I have to move iSeries library to new DB2 database. Is there any easier way to do this moving operation than exporting all tables in iSeries into text files and then import them into DB2...
1
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the...
17
by: Sulu's Beard | last post by:
Hey gang, I'm evaluating the CA ERWin product for an upcoming data warehousing project. I'm most excited about the reverse engineering aspect of this system. I've sucessfully tested it on a...
0
by: Twan Kennis | last post by:
Hello! I do have the following problem: I've developed a Windows application which communicates with a DB2-database on the iSeries platform using an ODBC-connection string. This...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
2
by: chmmr | last post by:
Hello, I would like to ask if there are any differences between DB2 in these versions (e.g. support of triggers, Java stored procedures and such). Also, does anyone know from which DB2 AS/400...
1
by: Chevylover54 | last post by:
We have been using ODBC connections that are in the registry of the computer. However these connections aren't in by default so when a new user uses the Access program or when a current user goes to...
6
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.