[wp-trac] [WordPress Trac] #8980: Scheduled action does not work
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 28 17:22:22 GMT 2009
#8980: Scheduled action does not work
--------------------------+-------------------------------------------------
Reporter: pavelevap | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Plugins | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Hello, I am using scheduled action in my plugin.
When I run this plugin from my admin area, everything works well.
But when I run this function with wp_schedule_event() then copy function
does not work for me. Everything before it works, but php copy fails.
Thank you for your help...
{{{
$fileName = "example.zip";
$serverPath = "http://www.example.com/getfile.do?filename=example.zip";
$localDir = dirname(__FILE__) . "/";
if(!copy($serverPath, $localDir . $fileName)) { die("Copy error"); }
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8980>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list