PDA

View Full Version : Scheduled Tasks and fetch_attachment_path()


Ldoppea
08-31-2009, 08:37 PM
Hi,

I'm currently programming a scheduled tasks.

On the script, I want to access attachment files. So I need to use the fetch_attachment_path() function, located in the /includes/functions_file.php.

But on the cron script, the code require_once('./functions_file.php'); seems to not work.

How can I access the fetch_attachment_path() function on a cron script?

--------------- Added 1251761459 at 1251761459 ---------------

Resolved.

I replaced require_once('./functions_file.php'); by require_once(DIR . '/includes/functions_file.php');