public class CronJobber implements Runnable {
public void run() {
while(true){
HttpClient client = new DefaultHttpClient();
HttpGet cronPage = new HttpGet("http://www.meinePHPseite.com/cronJob.php");
HttpResponse response = client.execute(cronPage);
System.out.println("Result: " + response.getStatusLine().getStatusCode());
}
}
public static void main(String args[]) {
(new Thread(new CronJobber())).start();
}
}