× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



How about PHP? You can very simply and easily read a directory and
build links every time the page runs. Performance is pretty good too.
Here is the code that will pull the list. All you need to do is format
nice and pretty!

Details about the functions can be found at http://php.net Change the
value of the directory in opendir() to a value you need. Set it up as a
link and the browser should do the rest :-)

Here is an example of what the HREF might look like...
href="http://www.myIBMi.com/files/pdfs/mybigfile.pdf";


$dir = opendir('/www/zendcore/htdocs/mpavlak');
while ($obj = readdir($dir)) {
if ($obj != '.' && $obj != '..') {
echo "Object is: $obj <br>"; //Make this a link, or
whatever...
}
}
closedir($dir);



Hope it's not too verbose :-)


Regards,

Mike

mike.p@xxxxxxxx Cell: (408)679-1011 Office: (815)722-3454

Zend Server for IBM i Beta avilable at
http://www.zend.com/en/products/server/zend-server-5-new-ibmi


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Peter_Vidal@xxxxxxxx
Sent: Friday, December 11, 2009 11:00 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Create links "automatically" from files in anIFS
folder

"Can you use QShell to invoke the Unix ls command?
e.g. ls -1>dir.txt

The command above will produce a text file of all files in the current
directory."

This sounds good.

Thanks Todd

PETER VIDAL
PALL CORPORATION | SR SYSTEM ANALYST @ WH APPLICATION DEVELOPMENT GROUP
10540 RIDGE RD., SUITE 203, NEW PORT RICHEY, FL 34654-5111
727-815-3104 ||| FAX: 727-815-3120 ||| WWW.PALL.COM

?Imagination is more important than knowledge...?
Albert Einstein (1879 - 1955)

------------------------------------------------------------------------
--------

Attention:

This communication may contain information that is confidential,
privileged and/or exempt from disclosure under applicable law.
If you are not the intended recipient, please notify the sender
immediately and delete the original, all attachments, and all
copies of this communication.


------------------------------------------------------------------------
--------

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.