Sorry, we were talking about different things.

A PHP script can include another PHP script using the
'include' or 'require' statements. So, for example, I
can have a PHP script in my Web application (e.g.,
C:\Apache\htdocs\myapp\myscript.php) that includes a
PHP script stored elsewhere on my machine (e.g.,
C:\phpincludes\myotherscript.php). In the php.ini file
set the include_path = ".;c:\phpincludes\".

The code would look like this:
<?php
 require('myotherscript.php');
?>

The Java program must be in a directory listed in
CLASSPATH or in the same directory as the the PHP
script that contains the 'include' or 'require'
statement.

I'm going to try Toolbox for Java without using CGI.
Just run Toolbox classes in Java programs on the same
machine as my PHP scripts.

Thanks,
Kelly

--- Brad Stone <brad@xxxxxxxxxxxx> wrote:

> You said a PHP include statement... I assumed you
> meant a
> server side include directive.  Also, I thought you
> said it
> was on another server (the app you wanted to call). 
> That
> doesn't work with SSI.
> 
> In other words, if your app is:
> 
> www.mysite.com/cgi-bin/app1.php
> 
> You cannot use SSI to include a directive like:
> 
> <!-- #include
> virtual="http://www.site.com/cgi-bin/app"-->
> 
> PHP include, what does it exactly do?  Or what did
> you mean
> by that?  That's the question.
> 
> I wasn't talking about JAva at all.  Just PHP
> calling a CGI
> app on another server.
> 
> 
> On Mon, 6 Sep 2004 10:33:08 -0700 (PDT)
>  Kelly Cookson <kc62301@xxxxxxxxx> wrote:
> > I'm curious why you think it wouldn't work. I
> won't be
> >    near an iSeries again until tomorrow, so can't
> play
> > around with it today. 
> > 
> > My understanding is that the classes in Toolbox
> for
> > Java can be used from Java programs on the PC.
> What
> > would keep a PHP script from running a Java
> program
> > with Toolbox classes in it? Why would a Java
> program
> > with Toolbox classes in it behave differently than
> the
> > Java program I tested with? I was able to call my
> Java
> > test program from an included PHP sript
> (hellojava.php
> > includes javalink1.php, and javalink1.php executes
> the
> > Java program).
> > 
> > I'd appreciate your thoughts on this.
> > Thanks,
> > Kelly
> > 
> > --- Brad Stone <brad@xxxxxxxxxxxx> wrote:
> > 
> > > That probably won't work.  If you're talking
> about
> > > Server
> > > Side Includes.  
> > > 
> > > But, there are other possibilities..  maybe the
> > > Object
> > > containter.  I've never used it, but I believe
> it
> > > can be
> > > used to insert content from another web page.
> > > 
> > > Or even JavaScript would work.
> > > 
> > > Brad
> > > 
> > > On Sat, 4 Sep 2004 12:13:57 -0700 (PDT)
> > >  Kelly Cookson <kc62301@xxxxxxxxx> wrote:
> > > > Hmm. I didn't consider CGI. That might be kind
> of
> > > > interesting...wonder if I could put the url of
> a
> > > CGI
> > > > CL program in a PHP include statement? I'll
> have
> > > to
> > > > try that.
> > > > 
> > > > My dream is iPAD (iSeries or i5 + PHP + Apache
> +
> > > DB2).
> > > > iPAD would run in a Linux partition and use
> Qshell
> > > as
> > > > its command shell. Add an iPAD Toolbox to let
> PHP
> > > > scripts have easy access to database files and
> > > > programs running in an OS400 partition and an
> iPAD
> > > > Redbook. Oh well...I can always dream...
> > > > 
> > > > Thanks for the idea on CGI.
> > > > Kelly
> > > > 
> > > > 
> > > > 
> > > 
> > > --- Brad Stone <brad@xxxxxxxxxxxx> wrote:
> > > > 
> > > > > Indirectly, yes.  If you can make a URI
> request
> > > to a
> > > > > web
> > > > > server running on your AS/400, then you can
> call
> > > a
> > > > > CL
> > > > > program when a certain request is made.
> > > > > 
> > > > > It could also be done indirectly through
> FTP...
> > > > > 
> > > > > Example:
> > > > > Your PHP program makes a URI request to
> > > > > http://yourAS400.com/cgi-bin/cgipgm
> > > > > 
> > > > > cgipgm in turn calls the CL, then returns
> the
> > > > > appropriate
> > > > > HTTP headers and response.
> > > > > 
> > > > > With FTP, you can use RMTCMD.  
> > > > > 
> > > > > Of course, I don't know if these are easily
> done
> > > > > with
> > > > > PHP...  but it is possible.  :)
> > > > > 
> > > > > Brad
> > > > > www.bvstools.com
> > > > > 
> > > > > 
> > > > > On Fri, 3 Sep 2004 13:13:38 -0700 (PDT)
> > > > >  Kelly Cookson <kc62301@xxxxxxxxx> wrote:
> > > > > > Can a PHP script running in an Apache
> server
> > > on my
> > > > > W2K
> > > > > > PC call a CL program on an iSeries?  
> > > > > > 
> > > > > > I think I read somewhere that PHP can
> > > interface
> > > > > with
> > > > > > Java, so maybe an interface between PHP
> > > scripts
> > > > > and
> > > > > > the jt400 Toolbox?  
> > > > > > 
> > > > > > I alo know FTP can be used to start a CL
> > > program
> > > > > on an
> > > > > > iSeries, and that PHP can has support for
> FTP.
> > > > > > 
> > > > > > But maybe there's a better way. Anyone
> doing
> > > this?
> > > > > If
> > > > > > so, how?
> > > > > > 
> > > > > > Thanks,
> > > > > > Kelly
> > > > > > 
> > > > > > 
> > > > > >     
> > > > > >             
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > New and Improved Yahoo! Mail - 100MB free
> > > storage!
> > > > > > http://promotions.yahoo.com/new_mail 
> > > > > >
> > > _______________________________________________
> > > > > > This is the Web Enabling the AS400 /
> iSeries
> > > > > (WEB400)
> > > > > > mailing list
> > > > > > To post a message email:
> WEB400@xxxxxxxxxxxx
> > > > > > To subscribe, unsubscribe, or change list
> > > options,
> > > > > > visit:
> > > > >
> > >
> http://lists.midrange.com/mailman/listinfo/web400
> > > > > > or email: WEB400-request@xxxxxxxxxxxx
> > > > > > Before posting, please take a moment to
> review
> > > the
> > > > > > archives
> > > > > > at http://archive.midrange.com/web400.
> > > > > > 
> > > > > 
> 
=== message truncated ===



                
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.