Reply to Re: exec php

Your name:

Reply:


Posted by warth33 on 12/23/07 17:35

> First, what kind of program are you calling?  Whats it do?
Its a few programs, made in c#. The programs mostly make operations on
the windows media server. They create publishing point, for example,
on the fly.

> Second, please tell me you looked up Exec on the php.net site and read
> all the comments made by folks who have done or attempted to do what
> you are trying.  The answer might be right there!

I had a look there. But no one that got the same king of problem.

> Third, what kind of resources does the called program use?  Are you
> running out of memory?  are you running out of connections to a
> database?  What is your take on why the program is failing?  What
> permissions does the called program have?  What permsissions does it
> need?-
>

I put log functions both in the php-script and in the c# app.

I restart the server, and everything works. But then, after may one
day, for some reason, one of the c# app (can be any of them) freezes
during the execution, and before it can returns.

The php-log says that, well, nothing. It stops when it has to show the
return value got from the c# app.

The C# app doesnt catch. That is the big problem. The log function in
the c# app is located at the end of the try statement. And exactly
before the return statement. In the log file I try to write the return
value. But it is blank, for some reason.

Worst of all, maybe, is that the c# app is runnable from the command
line. Always. And it executes returning the value. So the problem, as
I see it, is that suddenly the php-interpretor hangs up when running
exec.

Yes, this is obvious, as I created a dummy c# app, one that only
returns hello world. Well, after the php-interpretor (or is it apache
stuff?) hangs up, I cannot either get the return value from that app.

Is it an apache problem? What do you think guys? But the error log
doesnt have any trace of problems with the exec...

[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

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