PHP Version out of date

Hello, so I have this issue: https://prnt.sc/lb7q7w it’s telling me my PHP Version is out of date, when it clearly isn’t:

As far as I can see it is a check no?

If version < lower than then show message.

Yeah but I’ve put an iplogger in the index and it doesn’t work because of that

You’ve put an IP logger in the index.php file of a Zyro install? That won’t do anything.

How would I make it log an IP just off of a user clicking the domain?

Depends on the script but inside Zyro you should be able to embed html code/widget

Sorry I’m really new to PHP and web coding, this is the script: <?php

$ip = $_SERVER[‘REMOTE_ADDR’];

$file = “GGWELLPLAYEDLOL.txt”;
$text = file_get_contents($file);
$text .= $ip . “\n”;
file_put_contents($file, $text);

?>

Hmm that is PHP which won’t really work in the .php file Zyro renders I don’t think.

If you make that code into a .php file like log.php inside public_html then if you add HTML element / widget in site builder and use HTML code for iframe 1x1 or invisible iframe.

I don’t really know how to do that, is there anyway I can log the ip of a user who visits the domain to a .txt file?

Using the code I previously posted

Use

<?php

$ip = $_SERVER[‘REMOTE_ADDR’];

$file = “GGWELLPLAYEDLOL.txt”;
$text = file_get_contents($file);
$text .= $ip . “\n”;
file_put_contents($file, $text);

?>

To make a file called log.php

Then in Site Builder / Zyro use the add HTML widget option to add in

<iframe src="log.php" width="1" height="1"> </iframe>

I think it should work…

Like this?

That makes it so it logs IPs from this http://plextay20.000webhostapp.com/log.php I want to make it log ips from the same url without the /log.php

Nevermind, it works with the site as well, you have just made my day.

That only works because of that HTML code, right?

Yeah think so :umbrella:

Thanks, is there any way I can remove this image with that still there?

Try 0 X 0 instead

Or even style=“width:0; height:0; border:0; border:none”

Like

<iframe src="log.php" style="width:0;height:0;border: 0;border: none;"></iframe>