I've been looking into Dyndns and saw that someone wrote a Python script that pulls the WAN IP from a LinkSys router for submission to Dyndns. I decided I'd do the same thing in PHP (for practice, for experience, for the open-source community, and for those that rather not have to deal with installing yet another scripting language on their machines).
The first hurdle so to speak would be handling a page request that requires authentication...How do I do this?
Granted, the user will need to supply the IP, U/N, and P/W...I then need to make a call to <IP>/Status.htm with the supplied params and do a little regex to pull the WAN IP out.
That part I can handle...it's the initial fetching of the page that I'm having issues with (no code yet but haven't found anything that addresses this directly).
If someone knows of a function that deals with this or has written a function, please pass it along.
TIA