PHP Function Not Working

Functions Not Working :-
cpu_info()
mail()

Why this fuctions not working on infinityfree Servers and is there a way to activate it?

4 Likes

This does not appear to be a PHP function. I cannot find any reference to it in the official documentation: PHP: Manual Quick Reference

And in general, functions that expose information about the server are restricted on our hosting for security reasons. The information revealed by them could reveal security problems that could be exploited, and there is no legitimate use case for reading system information, seeing how account limits are more important that total server usage anyways.

PHP mail is heavily restricted on free hosting. The function “works” but most likely won’t send your mail to prevent spam. If you want to send email, please use an external mail solution, like Gmail SMTP.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.