I have all the codes first tested it on my nas disk and this script works fine here but I have it on another server and this proves not to work.
The are 2 servers, both based on debian (32 bit) with a panel of ISPCONFIG. one State in America and the other (just like my nas disk) in the Netherlands on the same network.
The script I have taken and adapted from this website http://www.andrehonsberg.com/article/automatically-post-to-twitter-using-php-twitteroauth-class
I hope you guys know because I can not find it,