Hello
Anyone got any links to a tutorial(s0 that will first check if an inputted data is a url (either with or without any http:// or www [[eg example.com would return true, www.example.com would return true (and with http://), examplecom wouldn't]]
Then could someone tlel me where to find info about formatting a domain (which may have been entered with or without http:// or www) so it is the full domain (so i can use it as an anchor link)
ie:
user enters XXXXX
using php it validates if it is a real domain (or if i could be, doesn't have to check if it exists)
then, it formats it so that it can return a string value that is a full domain (so if the user entered example.com, it would change it to http://www.example.com)
I can't find anything
thanks
Anyone got any links to a tutorial(s0 that will first check if an inputted data is a url (either with or without any http:// or www [[eg example.com would return true, www.example.com would return true (and with http://), examplecom wouldn't]]
Then could someone tlel me where to find info about formatting a domain (which may have been entered with or without http:// or www) so it is the full domain (so i can use it as an anchor link)
ie:
user enters XXXXX
using php it validates if it is a real domain (or if i could be, doesn't have to check if it exists)
then, it formats it so that it can return a string value that is a full domain (so if the user entered example.com, it would change it to http://www.example.com)
I can't find anything
thanks