|
Posted by Lars Eighner on 10/13/72 11:30
In our last episode,
<3sev0sFnuc69U1@individual.net>,
the lovely and talented Kim André Akerø
broadcast on alt.php:
> Ryan Garnier wrote:
>> Hi!
>>
>> Anyone know why this doesn't work?
>>
>> $ruta = "cmd /c \"C:\Server\Apache2\htdocs\webvcr\config\bat\a.bat\"";
>> exec($ruta);
>>
>>
>> Thanks in advance!
> You must escape all the "\" signs in the path as well, like this:
> $ruta = "cmd /c
> \"C:\\Server\\Apache2\\htdocs\\webvcr\\config\\bat\\a.bat\"";
> exec($ruta);
Or you could form the habit of using single quotes in which
only ' has to be escaped (unless you do want escaped characters.
--
Lars Eighner eighner@io.com http://www.larseighner.com/
I don't see posts from or threads started from googlegroups.
War on Terrorism: Treat Readers like Mushrooms
"If the story needs rewriting to play down the civilian casualties, DO IT."
-Memo, _Panama City_ (FL) _News Herald_
Navigation:
[Reply to this message]
|