Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Location
    Bay Area -USA
    Posts
    1,740

    URL validation script

    I couldnt find one but i need a code snippet that will validate that a string is a URL.

    Does anyone have a small code or can tell me where to get it?

    Thanks!
    <<< Please see Forum Guidelines for signature setup. >>>

  2. #2
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,104
    If you just want to validate syntax (by checking for components), you can use parse_url. For more robust URL functions, try Net_URL from PEAR.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •