jeudi 30 avril 2015

Can't access file in home directory from PHP on a EC2 server

Hi everyone I am wondering why this returns an empty string:

$settings = file_get_contents('/home/ec2-user/settings.json');

but this works:

$settings = file_get_contents('/var/www/settings.json');

I can't seem to be able to access my json file from the home directory... Any idea? Thanks




Aucun commentaire:

Enregistrer un commentaire