All,
I'm trying to port a wonderful application over to miserable windows. I can not find
documentation of how to invoke exec on windows. Here's what I tried:
// Creates the image file with a timestamp
$timestamp = time();
$image= $timestamp.$picture_name;
if ($PLATFORM == "windows") {
$new_path = str_replace('^', '\\', $WINDOWS_PATH);
exec("copy c:\temp\$picture $new_path.$image");
echo $new_path.$image;
} else {
exec("mv $picture
/services/webpages/t/h/thebackcarecenter.com/public/RDI_Shop/images/$image");
}
The previous step uploads the file. It does get to the temp directory, but never
copies to the permanent directory. All the varaibles are defined. I think it lies in
how I'm trying to execute a command.