hello
i have cron job
php -q /home/user/domain/public_html/folder/file.php
there i have first line:
require_once($_SERVER['DOCUMENT_ROOT']."/wp-load.php");
and i got FATAL ERROR because "DOCUMENT_ROOT" show private_html not public_html also, when i run phpinfo(); i get private_html not public_html
when i open in browser the same file from cronjob it working but on cronjob doesn't
while i'm waiting here i add str_replace('private','public',$_SERVER['document_root']);
also i search about this and found posts here for symlink and have checked on domain setup by default but that not help
i have cron job
php -q /home/user/domain/public_html/folder/file.php
there i have first line:
require_once($_SERVER['DOCUMENT_ROOT']."/wp-load.php");
and i got FATAL ERROR because "DOCUMENT_ROOT" show private_html not public_html also, when i run phpinfo(); i get private_html not public_html
when i open in browser the same file from cronjob it working but on cronjob doesn't
while i'm waiting here i add str_replace('private','public',$_SERVER['document_root']);
also i search about this and found posts here for symlink and have checked on domain setup by default but that not help