if(file_exists("news/Main News.xml")) returns FALSE when run through cron, but returns TRUE while run from browser.
Is it happening because of white space in filename but it is running ok with browser run.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most likely this is caused by the cron job not being run from the correct folder.
You either need to do something like
(with the full path in the quotes)
or do a