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 Andy Hassall on 11/16/21 11:31

On Mon, 7 Nov 2005 14:11:33 +0100, "Alexander" <abauer@gmx.net> wrote:

>i am trying to run php(4.3.4)

That's quite old.

>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.....

What's the rest of the error? Doesn't that message also include the headers
that it did send?

Have you checked the error logs for more information?

>This is the code:
>
>$command="date /T >>c:\\temp\\log.txt";
>system ($command);
>system ($command);
>
>
>The actual date is written into the logfile twice, as expected, but no
>website is returned.
>This cannot be a security problem ??? File is written!
>
>The save code on save machine works perfect using Apache 2.

Running as CGI as well? Or a module?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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