473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7816
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,c ough,cough,gag! !!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hac k,cough,cough,g ag -
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,c ough,cough,gag! !!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hac k,cough,cough,g ag -
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@yo ur_rose_colored _glassesyahoo.c om> wrote in message news:<pan.2004. 06.26.03.12.05. 243537@your_ros e_colored_glass esyahoo.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,c ough,cough,gag! !!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hac k,cough,cough,g ag -
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*****@firstd basource.com> wrote in message news:<Ax******* **********@news svr24.news.prod igy.com>...
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,c ough,cough,gag! !!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hac k,cough,cough,g ag -
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*****@firstd basource.com> wrote in message news:<Ax******* **********@news svr24.news.prod igy.com>...
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,c ough,cough,gag! !!!)? Do you have PHP installed? Are
you using Oracle, DB2 or MySQL, SQL Server(hack,hac k,cough,cough,g ag -
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
18299
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 the iSeries. I've found in the docs that you can run DDL scripts from a client application called "iSeries Navigator". I was wondering if there's an easier way. If I just FTP the script physically onto the host, then how can I run it? (I used...
4
7698
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 Express? I am looking for same kind of function like db2move between two DB2 databases.
1
14957
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 new managed IBM.Data.DB2.iSeries data provider from iSeries Access V5R3. When I remove Database=AMFLIB from the connection string, I can connect but as soon as I try to specify a known database (like my good old AMFLIB) I get the following error:
17
7186
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 SQL Server 2000 system, however, when I run it against our iSeries DB2 system (on which our ERP exists), I encounter errors that essentially say that files are missing from our SYSCAT library. I'm not an iSeries expert, but I can say that the
0
1838
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 ODBC-connection-string refers to a system-connection configured within the iSeries Navigator based on the Windows username and password of the logged-on user.
3
4082
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 APPC over TCP/IP protocol? Or SNA protocol?
2
4185
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 version is Java officially supported? Thank you
1
6067
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 a different computer, we have to send them the batch program to put the ODBC hooks on that machine. We want to get around that by using Pass-Through queries and the ODBC connection string. What we have got to work is this: ...
6
4608
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 installed it, but apparently I need an additional product, "DB Connect" to actually make a connection. "DB connect" says that it will only display tables with a type of "T", and as far as I know, we are using files, not tables on the 400. Can...
0
9944
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9793
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11151
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10420
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.