'How to send a data using cURL and displaying it

I'm currently writing a bash script right now, and I have a website for my bash script. In my website, there will be a page called "statistics" which I will see statistics about my script. Like "total created amount of bots", "total amounts of runned scripts". But I don't know how can I see statistics about the things that I mentioned. I found a "cURL" command for this but I don't know how can I manage it because it requires PHP, command is like this;

curl -d "islem=sinusbot&ip=$ip" http://127.0.0.1/post.php (localhost is just an example)

How can I do this?



Sources

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

Source: Stack Overflow

Solution Source