ENC28J60 Arduino Mega

Hello everyone
I’m using ENC28J60 to dump data to local server on my computer.
When plug internet cable from my router to ENC28J60 and connect my computer to WIFI it works fine.Then when i use crossover cable to connect directly ENC28J60 to my computer it won’t work.
I’m using XAMPP server.I’m dumping data using dbconnect.php and add_data.php which is included in attachment and also i attached ino file.
Any suggestions? Thank you.

  • .php files prohibited in forum so uploaded them in .txt file.

sketch_nov14b.ino (5.91 KB)

php files.txt (632 Bytes)