1
nilium
FTP wrap`
  • 2006/7/14 14:43

  • nilium

  • Just popping in

  • Posts: 2

  • Since: 2006/6/10


Hello all,

My appologies if this is not the best board to post this question but I didn't find a better one. I tried several FTP modules but none satisfied my needs. What I'm trying to do is pretty simple: to wrap the contents of an ftp server. I tried creating my own module. Below the code of my first idea (note the 3rd include):

include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");

include("ftp://username:passw@ftpserver.com");

include(XOOPS_ROOT_PATH."/footer.php");
?>

As expected, this showed the header, footer and main menu correctly, but the center frame was blank. I also tried refering the 3rd include to an html document containing a redirection script. This showed the contents of the ftp server without wrapping.

Any ideas about how to accomplish it?

Thanks!

- Nilium -

2
tripmon
Re: FTP wrap`
  • 2006/7/14 16:00

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Look into (read up on) PHP's CURL or Fopen depending on your server config.

3
nilium
Re: FTP wrap`
  • 2006/7/14 22:15

  • nilium

  • Just popping in

  • Posts: 2

  • Since: 2006/6/10


Thanks tripmon, my PHP knowledge is not that extensive. I've read a couple of pages on PHP CURL and fopen. I'm not sure that's what I'm looking for. Just in case there's a misunderstanding here, let me explain my objective again. Just as my browser lists the contents of an ftp folder when I type in the URL (ftp://...), I would like to wrap that list with my site's header, footer and main menu. In the same way that include("http://example.html") in index.php would wrap example.html, how can I wrap the list of contents in an FTP folder?

Thanks,

- Nilium -

Login

Who's Online

315 user(s) are online (227 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits