As an example suppose i want my program to
- Vist stackoverflow everyday
- Find the most question in some tag for that day
- Format it and then send it to my email address
I don’t know how to do it , i know php more , but i have some understnading of Java , j2ee , spring MVC but not java network programming
Any guidelines how should i go
As you’re wanting to retrieve data from a website (i.e. over HTTP), you probably want to look into using one of many HTTP clients already written in Java or PHP.
Apache HTTP Client is a good Java client used by many people. If you’re invoking a RESTful interface, Jersey has a nice client library.
On the PHP side of things, someone already mentioned file_get_contents… but you could also look into the cURL library
As far as emailing goes, there’s a JavaMail API (I’ll admit I’m not familiar with it), or depending on your email server you might jump through other hoops (for example Exchange can send email through their SOAP interfaces.)