Someone suggested http://php.net/manual/en/function.parse-url.php Read the User Contributed Notes and maybe you'll find something useful.
If not, you can always try manipulating the URL with the string functions I have mentioned earlier. For instance, you could remove everything from the URL after the first / On Tue, Sep 14, 2010 at 7:38 PM, Dave Maharaj <[email protected]> wrote: > I have a url field, enter your website no big deal in my form. > > > > So thru testing and tinkering I managed to end up with just the domain > which is what I want….so no matter what they enter with or without http or > www or even adding in subdomain I just get domain.extension perfect. > > > > THEN INTERNATIONAL EXTENSIONS KILLED ME > > > > I tried a site that ended in .com.au/ and it removes “.com” thinking it’s > a subdomain. Ad then the users URL points to nothing since it needs the full > “.com.au/” > > > > So is there anyway around this? Is it either allow subdomins which I > strongly do not want or screw international domains? Or someone out there > has the answer? > > > > Thanks. > > > > Dave > > > > > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
