Fetch page contents and send login information

I am new to PHP programming (<1 weeks experience!).

I was thinking of automating login through php to an external URL (say, for Gmail, Hotmail etc) so that I don’t have to open all my email login pages and fill in the details. Here is what I have made so far:

script.php source code:

[php]

<?php $src=file_get_contents('https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=http://mail.google.com/mail/&scc=1&ltmpl=default&ltmplcache=2'); ?> <?php echo $src; ?>

[/php]

Any suggestions on how I can make it work using simple methods? I don’t want to use OpenAuth or any API related techniques for the time being.

Sponsor our Newsletter | Privacy Policy | Terms of Service