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

Posted by Markus Ernst on 09/28/93 11:37

FingAZ schrieb:
> Janwillem Borleffs wrote:
>
>>dalgibbard@gmail.com wrote:
>>
>>>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?
>>>
>>
>>No, this is something the client should modify on his/her machine by
>>changing the folder options. Not PHP related...
>>
>>
>>JW
>
>
> Well, at first, it would just load up a "page nopt found error" then
> you hit refresh and it works? Its definately something to do with the
> header function- is there any other functions available to call a page?
> preferably in a new windo or something?
>
> Darren.
>

Client-side redirect: In the form action attribute call a script, call
it for example "ftplogin.php"; you can use the target attribute in order
to open a new window.

ftplogin.php then will be something like:

<?php
$url = "ftp://".$_POST['user'].":".$_POST['pass']."@12.34.5.67/";
?>
<html>
<head>
<meta http-equiv="refresh" content="0; URL=<?php echo $url; ?>">
</head>
<body>
If you are not redirected automatically click
<a href="<?php echo $url; ?>">here!</a>
</body>
</html>

HTH
Markus

 

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

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