I'm running apache with php 7.0 on a raspberry pi 3. When I use the curl command on the command line, it works great.
But when I use this command in my PHP code, it does nothing. Any idea what this may be?
I get a Resource id #5. I don't know what this is....
Tried the following things:
- add 2>&1 at the end of the command
- running the command with sudo in front
- change privileges of www-data (not sure if that is the user that is running apache)