Apache version 1.3.42
PHP version 5.3.5
MySQL version 5.0.95-community
Architecture i686
Operating system linux
A cRon job calls a php file with the following function:
Code: Select all
//Get a defined list of images from $source_path - rename them and save to $local_path.
function GetUrlImage ($source_paths, $local_path) {
ini_set('max_execution_time', 60);
$i = -1;
foreach ($source_paths as $path) {
$i++;
$c = 10;
foreach ($path as $name) {
$source_image = pathinfo ($name, PATHINFO_BASENAME);
$file = $local_path[$i] . $c . ".gif";
$c++;
$source_file = file_get_contents ($name);
file_put_contents ($file, $source_file);
}
}
}
ANY ideas ANYBODY please!
Thanks
Ron