Arduino is able to connect to server but not POST temperature data to php

I'll try this later today when I have my arduino with me. I've also tried testing file_put_contents() but only for the time variable. Issue is, this still isn't doing anything. I checked that I had the up to date php.

$ php -v
PHP 8.0.12 (cli) (built: Oct 22 2021 12:38:28) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.12, Copyright (c) Zend Technologies

$ whereis php
php: /usr/bin/php7.4 /usr/bin/php /usr/bin/php8.0 /usr/lib/php /etc/php /usr/share/php7.4-readline /usr/share/php7.4-common /usr/share/php8.0-common /usr/share/php7.4-json /usr/share/php7.4-opcache /usr/share/php8.0-readline /usr/share/php8.0-opcache /usr/share/man/man1/php.1.gz

Any idea why this might be happening.