Could use some help implementing this |
[eluser]Unknown[/eluser]
I'm working on a project that deals with user submitted urls and I need to break them apart. I found this repository on git that does exactly what I need it to do https://github.com/jeremykendall/php-domain-parser but I'm a little lost on how to use it within CI. I've got it working just fine on a stand alone page, but really unsure of how to bring it into CI. Everything I've tried has just given me include errors/file not found errors etc. Tried loading it as a library, helper and just regular old php require. Can anyone point me in the right direction? Thanks
[eluser]CroNiX[/eluser]
Seems overly complex when there's a native php function that does much or all of what you probably need. http://php.net/manual/en/function.parse-url.php
[eluser]Unknown[/eluser]
I looked at parse url and it's close, but the linked library does a bunch more. Breaks it down further and checks if its an actual top level domain. |
Welcome Guest, Not a member yet? Register Sign In |