Scheduled Tasks and fetch_attachment_path()
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 [DATE]1251761459[/DATE] at [TIME]1251761459[/TIME] ---------------
Resolved.
I replaced require_once('./functions_file.php'); by require_once(DIR . '/includes/functions_file.php');
|