I have a script which will add users to database automatically instead of me manually doing it with a program... but i wish to do it through php so it requires no input from me.

If I try to do it with MYSQL, i do not know the mysql hostname, and the ip address of the server nor the domain works.

So - i created a PHP file on the other hosts. The php file can successfully add users to the database, but if I try to execute site2 or site3s php script from site1, it does not add the users to the database.