Subject: Clarification on PHP Function Restrictions (exec, shell_exec, set_time_limit) on InfinityFr

Dear InfinityFree Support Team,

I hope this message finds you well. I am seeking clarification regarding the use of certain PHP functions on my InfinityFree hosting account, as I am experiencing difficulties executing a PHP script.

I have developed a PHP script that uses yt-dlp.exe to download YouTube videos. The script executes as expected on my local development environment, but encounters issues when deployed to my InfinityFree hosting account.

The script relies on the following PHP functions:

β†’ exec()
β†’ shell_exec()
β†’ set_time_limit()

does InfinityFree allow execution of these functions?

No.

5 Likes

Goodluck, you cannot run exe files on the servers as they are powered by Linux.

7 Likes
  • We don’t allow video downloading sites to be hosted with us, regardless of how they work.
  • We do not allow executing system commands on our hosting, or tampering with the limits of our hosting.
  • Our servers, like basically all other hosting servers unless specifically advertised, run on Linux. And a .exe is Windows software. While you could in theory run it through Wine (a Windows emulator for Linux), I know that yt-dlp also has a native Linux version. And using native software is almost always better than using an emulator.

So no, you cannot host your project with us for a wide variety of reasons.

4 Likes

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