Kelly

I don't know PHP but I do know QNTC and FTP - you don't use FTP through QNTC - the latter is a way to get to a Windows file share using Windows networking. It is not the fastest thing on 2 feet. You have to mount that share - then you just use normal file copy and move IFS commands.

(Having said that, yes, you CAN use ftp, but it's basically going to localhost then - to the file share defined in the IFS.)

I (we at my company) recommend using NFS instead - Network File System - if you Windows server can be set up for it - the server software is free from Microsoft, so it's a corporate decision. You can find information on it at our wiki site http://wiki.rjssoftware.com.wiki - search for nfs on that page - search box is on the left. There are some special steps to take when setting it all up - the information is there.

There will likely be some references to our products, but have no fear - it is not connected to our stuff intrinsically - we just find it works better than QNTC.

HTH
Vern

Kelly Cookson wrote:
Good idea. You're probably on the right track with QNTC being the way to use the filesystem classes.
I found my remote server in the QNTC file system. I tried using "/QNTC/MYSERVER/MYDIR/filename.txt". But it still didn't work.
It's also kind of frustrating that I can get FTP to work from the debugger on my laptop, but the same scripts won't work in the Zend Core in i5.

Thanks,
Kelly



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Thorbjoern Ravn Andersen
Sent: Saturday, July 11, 2009 12:45 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] PHP - Moving files between iSeries and other servers

Kelly Cookson skrev:
How do I use FTP or the filesystem classes to move files back and forth
between the iSeries and remote servers\directories?

When I try this code:


$toFile = "\\\\MyServer\\MyDirectory\\php_filesystem_test.txt";

The snippet uses Windows-syntax -- \\myserver\mydirectory ... - to reach remote servers which only works on Windows servers.

You need to find the IFS-name which does the same. A guess would be through the /QNTC mount point. It appears to be described here, but I don't have any personal experience with it, http://www.itjungle.com/fhg/fhg031704-story04.html


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.