This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

character range

Old posts that have not been replied to for several years.
Locked
s
sirkrunch
Voice
Posts: 19
Joined: Wed Oct 09, 2002 2:36 am

character range

Post by sirkrunch »

I'm trying to write a URL catcher
but when a URL has a '?' it seem to just take everything b4 the '?'
http://www.site.com/index.php?link=link1
would return
http://www.site.com/index.php
how do I go about fixing that??
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Can we see the catcher code?

Without knowing how you are doing things, we have no way to give you a method of full capture.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

small code I use to catch urls:

Code: Select all

bind pubm - * url_catcher

proc url_catcher {nick host hand chan arg} {
	if {[set a [lsearch -regexp [split $arg] "(http)://(.*)\.(.*)"]] != -1} {
		set url [lindex [split $arg] $a] 
		blablabla the code in here, write the $url to file or something ;)
	}
}
Elen sila lúmenn' omentielvo
Locked