Hi,
as I'm waiting for an unrestricted FTP access I tried to drill down the error message.
For this I added an extra line of code in the ips4.php script as follows:
The result looks like this:
From my point of view the PHP system reports 512M memory too, but your script does a the wrong evaluation.
Or am I completely wrong?