I run a cronjob that calls a php script. I get "could not open stream" when the file is called cron. When I connected to the directory and ran the file from this place, everything is fine. Basically, the include_once () file that I want to include consists of two directories from which the PHP script is located.
Can someone please tell me how can I get this to work from a cronjob?
source share