I have a centos7 and I have installed httpd and mysqld.
I wanted to access to apache log in /var/httpd/log
with:
echo file_get_contents("/var/log/httpd/domains/example.com.log");
But it does not work.
I have a centos7 and I have installed httpd and mysqld.
I wanted to access to apache log in /var/httpd/log
with:
echo file_get_contents("/var/log/httpd/domains/example.com.log");
But it does not work.
Seems your code is in PHP syntax, is it correct?
While file_get_contents();
can only obtain file under the WEB ROOT in relative link or a URI.