I have a php script that changes a database when the page is requested. Here is the php:
change server to localhost, even if it is the name of your server. the server is always the localhost.