It seems strange to me that filePath from C:\\wamp\\....will work on a Linux machine. Anyway, have you tried NOT to avoid slashes?
, . , , , , , , , , , , , .
, , .
http://www.php.net/manual/en/ref.exec.php
, , MOST, , backtick, system
- .
$pyscript = 'C:\\wamp\\www\\testing\\scripts\\imageHandle.py';
$python = 'C:\\Python27\\python.exe';
$filePath = 'C:\\wamp\\www\\testing\\uploads\\thumbs\\10-05-2012-523.jpeg'
$cmd = "$python $pyscript $filePath";
echo $cmd;
`$cmd`
$pyscript = 'C:\wamp\www\testing\scripts\imageHandle.py';
$python = 'C:\Python27\python.exe';
$filePath = 'C:\wamp\www\testing\uploads\thumbs\10-05-2012-523.jpeg'
$cmd = "$python $pyscript $filePath";
echo $cmd;
`$cmd`
: AHHH! , ", , . . , , , , .