Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

FTP URL Validation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
brown-hornettt
Smarty n00b


Joined: 01 Mar 2007
Posts: 3

PostPosted: Thu Mar 01, 2007 2:43 am    Post subject: FTP URL Validation Reply with quote

Can someone help me figure out how to correctly validate a FTP URL, I Have tried several different time with no luck........ I have also search this form and did not find anything on the subject. The only thing I found was about validate URL, Which is not working with ftp address.... I'm having trouble trying to write a valid expression for checking ftp. My script uses PHP so I've also tried to write a function to add to smarty but with no luck Rolling Eyes
Back to top
View user's profile Send private message
Hielke Hoeve
Smarty Elite


Joined: 06 Jan 2006
Posts: 406
Location: Netherlands

PostPosted: Thu Mar 01, 2007 10:27 am    Post subject: Reply with quote

an ftp link (can) contain(s):

protocol (string)
username (string)
:
password (string)
@
hostname or ip (string)
location on the server (string)

ftp://foo:bar@foo.com
ftp://foo:bar@foo.com/bar/foo
ftp://foo@foo.com/bar/foo
ftp://foo.com/bar/foo
ftp://foo.com

So check for ftp://, :, @ and /. That'll give you a good idea of what to do and where to connect to.
_________________
Debug XHTML Compliance
SmartyPaginate
Smarty License Questions
---
(About Unix) The learning curve is full of aha! moments, such as that glorious day that the full beauty of grep and, later, find is revealed in all its majesty. --- Robert Uhl <ruhl@4dv.net>
Back to top
View user's profile Send private message
TGKnIght
Smarty Junkie


Joined: 07 Sep 2005
Posts: 580
Location: Philadelphia, PA

PostPosted: Thu Mar 01, 2007 2:11 pm    Post subject: Reply with quote

FYI Internet Explorer 7 seems to ignore passing a username and password through an anchor tag
_________________
Smarty site with one index.php controller file
Working with MySQL and Smarty
SmartyColumnSort
Custom Smarty Javascript Debug Template
Back to top
View user's profile Send private message Visit poster's website
eakinasila
Smarty n00b


Joined: 21 Nov 2009
Posts: 2

PostPosted: Wed Nov 25, 2009 9:18 am    Post subject: Reply with quote

How can I ftp between 2 computers connected through a Lan Hub? I have a notebook and a desktop and instead of constantly having to relly on a memory stick to transfer files and info from one to the other, I would like to know if I can use FTP instead.
_____________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
Back to top
View user's profile Send private message
mackenzie02
Smarty n00b


Joined: 16 Feb 2011
Posts: 2
Location: Zurich

PostPosted: Wed Feb 16, 2011 11:40 pm    Post subject: Reply with quote

Something tells me you already know the answer...

If not, then start a FTP server on one side and a FTP client on the other side.

eakinasila wrote:
How can I ftp between 2 computers connected through a Lan Hub? I have a notebook and a desktop and instead of constantly having to relly on a memory stick to transfer files and info from one to the other, I would like to know if I can use FTP instead.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP