Reply to Re: Running a system command from php

Your name:

Reply:


Posted by Peter van Schie on 09/09/05 15:15

Hi John,

So, when you run the AS2Agent.exe command manually from the commandline,
does it output anything?
If yes, then the return value of the system command will hold the last
line of the output of the AS2Agent.exe command. So you could try storing
that like:

$strLastLine = system("/Program Files/Intelligent Converters/A2SAGENT.EXE
--dest=st_staff --src=$sourceFile --tab_file=$tableFile --mode=1",
$strOutput);
var_dump($strOutput);
var_dump($strLastLine);

My instict still points into the userrights direction, so I'd check that.

--
http://www.phpforums.nl

[Back to original 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

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