What are the 'rules' for specifying file paths for PHP's exec() function? I am running PHP under Apache 2 in Windows XP. I gather that the path separators need to be forward slashes. I have not worked out what to do with spaces, though. If there are any spaces in my file paths execution fails. How can I escape spaces? Also, are there any other Windows allowable characters that are likely to cause problems?