You are here: Re: exec « All PHP « IT news, forums, messages
Re: exec

Posted by steve on 10/13/16 11:30

lol, oli...repeat after me..."i will not just glance at code anymore!" <ad
nausium>

good catch. ;^)

cheers


"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:x7u8f.23272$65.2324@newsfe6-win.ntli.net...
| steve said the following on 28/10/2005 18:09:
| > | > 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.
| >
| > OR, leaving off the trailing "\" could help cmd to interpret "a.bat" as
an
| > executable file rather than a directory/folder name. ;^)
| >
|
| OR you could leave it on, so that it continues to escape the
| double-quote mark. ;)
|
|
| --
| Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация