I'm trying to get my head around PHP and am setting a little script up on Apache/Linux.
If I call this as php index.php
from the shell it executes fine. But if I call the same via my browser, it fails to execute. There is no info in the apache error log.
What can be the cause for this?
The script is scraping another getting a url via Goutte
and curl
, so takes about 3 seconds to execute.
-- To respond to comments --
I was omitting the code as it's trivial, a Goutte client, a single request followed by extracting the h1
tag.
It's working in the console but calling via Chrome tells me I am missing curl - which is install with apt-get install php-curl