Could use some help implementing this - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Could use some help implementing this (/showthread.php?tid=59877) |
Could use some help implementing this - El Forum - 12-03-2013 [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 Could use some help implementing this - El Forum - 12-03-2013 [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 Could use some help implementing this - El Forum - 12-09-2013 [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. |