You are here: Re: CGI Error after exec or system in Windows « PHP Programming Language « IT news, forums, messages
Re: CGI Error after exec or system in Windows

Posted by Gordon Burditt on 10/18/88 11:31

>i am trying to run php(4.3.4) on iis6 (W2k3 Server).
>
>All works perfect except running external programs.
>
>The command system (or exec) starts and works (tried it, and the command is
>executed)
>but the server returns: CGI Error, CGI-application misbehaved.....
>
>This is the code:
>
>$command="date /T >>c:\\temp\\log.txt";
>system ($command);
>system ($command);

A CGI needs to return a content-type: header (possibly plus other
headers) followed by a blank line followed by the body. Where did
you output the headers?

Gordon L. Burditt

 

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

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