webdevask.com

Menu

  • Home
  • New
  • Add question

php - How to use tilde with `file_get_contents` to read file from home directory

View Original

one text

Solution:

Answer for your question is here https://stackoverflow.com/a/1894954/2686510

In short, use $_SERVER['HOME'] variable to access current user home folder.

Source

See also:

  • php สร้าง Google ชีตจากบัญชีบริการ

  • php - Laravel 8.0 Installation Failed

  • javascript - How to include HTML data (tags) as value in "arrayToDataTable" of Google Pie Chart?

  • how to Grouping array in php

  • php - vender folder from my laravel project has more 1k error

© 2021
E-mail: contact@webdevask.com
Back to top