H
H
Hannskod2016-04-26 17:15:52
PHP
Hannskod, 2016-04-26 17:15:52

How to execute cron where there is an include?

Hello everyone, cron is not running, in the file that has cron there is a file dbconfig.php
include('../dbconfig.php');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-04-26
@hannskod

cd /path/to/script/; php script.php
or add
chdir(__DIR__);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question