Home WordPress + php , glob() is not working in cron job function
Reply: 0

WordPress + php , glob() is not working in cron job function

vishal specscale
1#
vishal specscale Published in 2018-02-14 06:06:56Z

I have a directory which has multiple XML files and I am retrieving all XML files via glob function. It is working when I am using on submit button, but when i use it on cron job then it does not work and it can't be retrieve XML files.

$date =  date('d');
$path = "../data/".$date;
define('MY_PLUGIN_DIR',$path);
$files = glob(MY_PLUGIN_DIR."/*.XML", GLOB_BRACE);
print_r($files);

can you suggest me what should i do for it ?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299221 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO