Posted by Steve on 04/27/07 00:05
"Rick Stem" <rickstem@yahoo.com> wrote in message
news:f0rag812fcb@news4.newsguy.com...
|I have checkURL(http://globalwarmingawareness2007.org.uk,
| globalwarmingawareness2007.org.uk)
|
| I see almost everyone using regular expressions. But I don't completely
| trust them. Don't know if this code is the best way to find if a user
| entered a valid URL and to avoid SQL injection from the URL.
JESUS CHRIST!!!
'dont' trust them'? you mean 'i couldn't write one if it meant i'd get
laid'.
i don't 'trust' the code you've just written! have you completely overlooked
the fact that php has built-in functions that break out a url into the
pieces you're looking for? do you not know that even if it 'looks' valid, it
may point to nowhere?
'don't trust them'...i'm still laughing.
Navigation:
[Reply to this message]
|