You are here: Re: function popen and spaces in the path or file name « PHP Programming Language « IT news, forums, messages
Re: function popen and spaces in the path or file name

Posted by freak on 04/24/06 15:43

"Erwin Moller"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> schreef in
bericht news:444cb835$0$31639$e4fe514c@news.xs4all.nl...
> freak wrote:
>
>> Sorry , corrections to my script
>>
>> Have a problem with spaces in the function popen
>> Next example works fine:
>> ...
>> $drive="c:";
>> $path="";
>> $file="\\myfile.exe"">";
>> $call = $drive.$path.$file;
>> pclose(popen('start /b '.$call.'', 'r'));
>>
>> ....
>> Using "Program Files" in the path name
>> $path=" \\Program Files"; (error: "c:\Program ... " not found)
>> or
>> $path=" \\Program%20Files"; (error: "c:\Program%20Files ... " not found)
>>
>> thus this will not work!!!!!!!!
>>
>> Please help me
>
> Hi,
>
> Did you try escaping the space, just like you escape the \?
> $path=" \\Program\ Files";
> (not tested)
>
> Regards,
> Erwin Moller

Yes I have tested it and no solution!

 

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

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