0

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.

1 Answers1

0

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.

Hardrain
  • 331
  • 3
  • 4