Publishing from php


Hi, some years ago I could post to twitter from a PHP script that would run daily but since the API changed it stopped working. I’ve been trying to find a solution but all the tutorials I find don’t work for me.

What script should I use toghether with my app’s API and Access Token, so that I can show you the error I am getting?