You are here: Calling an FTP location in PHP « PHP Programming Language « IT news, forums, messages
Calling an FTP location in PHP

Posted by dalgibbard on 09/28/38 11:37

This (im hoping) is an easy problem to solve!
Quite simply, i have a HTML login form, where users can type their
usernames and passwords for an FTP server of mine.

The code im using is;

<?
//set variables for form values of previous page to make next code
easier.
$user = $_POST['user'];
$pass = $_POST['pass'];
$login = "Location: ftp://{$user}:{$pass}@12.34.5.67/";


header( "$login" );

?>

User and Pass are boxes on the form before hand, and all works fine-
however, the page this opens is a list of files that are inside that
ftp location- instead of a 'folder view' that you usually get with most
modern versions of windows. You can easily get to the folder view by
hitting refresh when the file list shows up, but this ideally isnt what
i want.

So is there another method of calling that page so that it goes
straight to folder view? Maybe opening it up in another window would
work, but how would i do that?

Any help would be greatfully recieved as ive only really just got into
PHP :)
Darren.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация