Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP log in password protected page

Status
Not open for further replies.

bigdan

Technical User
Nov 13, 2000
41
CA
I would like to make a tools that display me and or advise me when my 3G internet stick have reach my monthly usage limit.
My provider have a HTTPS portal to display it.
To do:
I need a script that can log in a https password protected read an info display it/email it/SMS it!
Naturaly I know the user password there are mine ;-)

Thanks
Daniel
 
the easiest way to do this is via simple browser.

more details at this site:
when you get to the right page via the click() functions, you can either write a regex to extract the text or perhaps use phpQuery (code.google.com/p/phpquery/) to access the relevant node and return the text.

you can also hand code it via curl and the dom functions.

for the email you can use php's native email function or, better still, use phpmailer (
putting them all together is only a five minute job and coding simple-browser for your needs is perhaps another five minutes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top