Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Design and Webmaster Issues
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-09-2000, 11:29 PM   #1
DJ_B
Registered User
 
Join Date: Aug 2000
Posts: 260
Unhappy Very simple Perl Scripting Question/problem

Hi there folks, I'll make this short:

In the DBMan Script, if you set a text field to URL only it will automatically check to make sure there is a http:// at the beginning of the address. Problem is I want to make it recognize URL with FTP:// (along with HTTP://)at the beginning. The script looks for the HTTP through this line in the script

Thanks in advance!

'^http://']

How would I modify that very simple and short line so it recognizes the prefix FTP:// too? Thanks!

[This message has been edited by DJ_B (edited 11-10-2000).]
DJ_B is offline   Reply With Quote
Old 11-10-2000, 04:58 AM   #2
Ed Sullivan
Registered User
 
Join Date: Aug 2000
Location: Allentown, PA, USA
Posts: 9
Unhappy

My Perl skills aren't amazing any more, but I believe this should work - sorry if it doesn't http://geekvillage.com/ubb/smile.gif I'll actually look it up then.

^(http://|ftp://)

[This message has been edited by Ed Sullivan (edited 11-10-2000).]
Ed Sullivan is offline   Reply With Quote
Old 11-10-2000, 08:22 AM   #3
DJ_B
Registered User
 
Join Date: Aug 2000
Posts: 260
Unhappy

Works perfectly! Thanks!
DJ_B is offline   Reply With Quote
Old 11-10-2000, 09:44 AM   #4
singloon

GeekGuide
 
singloon's Avatar
 
Join Date: Jan 2000
Location: Brisbane, Australia
Posts: 2,167
Unhappy

Quote:
Originally posted by Ed Sullivan:
My Perl skills aren't amazing any more, but I believe this should work - sorry if it doesn't http://geekvillage.com/ubb/smile.gif I'll actually look it up then.

^(http://|ftp://)

[This message has been edited by Ed Sullivan (edited 11-10-2000).]
and i wonder why http://geekvillage.com/ubb/wink.gif


------------------
Australian Evangelion
singloon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCOVERED: Simple way to overcome scumware scslawin StopScum 4 09-16-2001 03:43 PM
Need a free simple CGI banner rotator SGA Making Money with CPC and/or CPM Programs 7 02-01-2001 11:04 PM
Need a simple perl script WildComputer Web Design and Webmaster Issues 1 10-06-2000 07:59 AM
Perl vs PHP? ccole Web Design and Webmaster Issues 1 09-19-2000 11:58 PM
selling your own software (and perl) gallery Web Design and Webmaster Issues 6 05-19-2000 12:04 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 04:41 PM.


GeekVillage.com is copyright © 1998-2014 iOnline Web Design. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.