How to convert text file to JSON with PHP | PHP and JSON Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 4

  • @DigitalFox-tutorials
    @DigitalFox-tutorials  2 หลายเดือนก่อน

    Hi everyone.
    I hope you like the video.
    If you have any question feel free to ask,
    or you can just say hi. 😉
    Thanks for watching guys.

  • @NedumEze
    @NedumEze 2 หลายเดือนก่อน

    But, sir, the file_get_contents () is often disabled in most Production Servers.
    Does it work for you in your Production Server?
    Is there any other way of doing this which should have universal acceptance?

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  2 หลายเดือนก่อน

      You're correct;
      file_get_contents() is often disabled on many production
      servers due to security concerns when fetching remote files.
      But there is no problem to fetch local files.
      Ensure the directive 'allow_url_fopen' in the php.ini file,
      is set to 'On'.
      allow_url_fopen = On
      If you want to fetch remote files you can use 'cURL' instead.

    • @NedumEze
      @NedumEze 2 หลายเดือนก่อน

      @DigitalFox-tutorials
      Thank you sir for everything.