'Discord.js automatical whitelister to 000webhost

How do I make it so when I type ".whitelist (MYIPADDRESS)" in my discord channel then my Discord.js bot connects to my 000webhost public_html where all my phps are and it changes ONLY the "$ip = array('MYOLDIP',);" that is in my "whitelist.php:" file

Please I have been trying to solve this problem for like a month or two. people have been telling me to add more information but thats honeslty all the information that I can think of, incase just ask me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source