I am using the simple_html_dom script to parse a value from a website.
<?php include('simpleparser/simple_html_dom.php'); $html = file_get_html('http://www.example.com'); foreach($html->find('strong') as $e) // the tag that I am fetching echo $e->innertext ; ?>
Now, I'd like to run this only once per day as the data, I am parsing updates only once every day.
I've read a couple of articles about the cron task, but can not get it to work. The examples seem to overcomplicate things and are not relevant to my case. My hosting plan has the cron scheduler disabled and no shell access and I don't know how else to set it up.
You can contact with your hosting server but temporary solution for this kind of problem is to use cronjob service there are lot of free cronjob service out there in web. you can try those service .
I used this kind of service while creating a DDoS bot .. :p ..
You can use these cronjob service but there are more ...
search in google with "Cron job service" you'll find thousands of service like this
Happy coding :)