Re: Use of exec() in windows

From: Date: Sat, 27 Jan 2001 00:09:33 +0000
Subject: Re: Use of exec() in windows
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36941@lists.php.net to get a copy of this message
>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: Some people say exec() does not work on Windows... I could have sworn I've seen it work, but maybe not... $new_path = str_replace('^', '\\', $WINDOWS_PATH); exec("copy c:\temp\$picture $new_path.$image"); You need \\ for each \ there. In particutlar, you have the tab character after :c and before 'emp' now. The good news is, you can maybe use copy() and unlink() for this instead of exec(). The bad news is, Win98 says I don't have permission to do copy() or unlink() and I'll be damned if I can figure out how to alter permissions in Win98 to make it possible. exec("mv $picture /services/webpages/t/h/thebackcarecenter.com/public/RDI_Shop/images/$image") ; -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#36941) next »