This project can be useful for you if you have a website that you can use to keep the data and you can't get static IP address from your internet provider. The common way is to set the ENC28J60 to server mode and connect to it from the internet by entering your router static IP address in a browser.
In this project the Ethernet is set to Client mode and it sends several bytes of data to a website. I can browse at the data by logging to a page in my website.
A disadvantage of this system is that you can't access the Ethernet module directly from a browser on the internet. This code is set to transfer the data to the website once every 30 seconds. Changes to the code can allow for transfer of more data.The idea is taken from here: https://thingspeak.com/ The process is to request a file and to add the data using URL parameters. The PHP file (a11.php) records the data on another file which I named a12.php. I added a suggestion for a PHP script. To see the data log to page http://moty22.co.uk/a12.php.
In the code change the name of my website to yours. Change also 'a11.php' to the name of the php file in your website. You can use my website to test your project.
You can download the php file and get more info on my website http://moty22.co.uk/wIfI.php
Comments