Use of exec() in windows

From: Date: Fri, 26 Jan 2001 21:14:40 +0000
Subject: Use of exec() in windows
Groups: php.general 
Request: Send a blank email to php-general+get-36872@lists.php.net to get a copy of this message
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.

« previous php.general (#36872) next »