Convert text file to JSON with PHP | PHP and JSON Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 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  41 минуту назад

      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 35 минут назад

      @DigitalFox-tutorials
      Thank you sir for everything.