You are here: Re: exec php « PHP Programming Language « IT news, forums, messages
Re: exec php

Posted by warth33 on 12/24/07 19:00

On 24 Dec, 10:51, wart...@hotmail.com wrote:
> On 24 Dec, 08:48, My Pet Programmer <anth...@mypetprogrammer.com>
> wrote:
>
>
>
>
>
> > Csaba Gabor said:
>
> > > "something like that" covers a lot of ground.  It could have some
> > > bearing, though it is not obvious.  Firstly, you are saying that the
> > > program does what it should do.  That would imply that the paths/
> > > environment vars are correct.  However, if it affects the cleanup of
> > > the program somehow it could be material.  Also, it might be affected
> > > by the "Allow service to interact with desktop" setting that you can
> > > make on Apache/your web server (under Control Panel \ Services).
>
> > > Csaba
>
> > Gotta love the ambiguous errors. I don't think he said it does what it
> > should do, though. I know when I ran exec without the paths right, I
> > didn't get any server errors either, and I had the same kind of issue
> > he's describing.
>
> > So it might cover a lot of ground, but it's kinda always better to have
> > a bunch of ideas, no matter how much they cover, I tink.
>
> > ~A!
>
> Yes, the c# programs do what they have to do. They work! They work 2
> hours, 3 hours, maybe 1 day. And then suddenly it stops to work.
>
> It is extrmly frustating. I have tried to put logs both in the php-
> script and in the c# app. Nothing. Not an exception. Nothing.
>
> Again: if I have a simple C# app that only have an Hello World, then
> the php script, or to be more exact the exec call from the php-script
> to the c# app, seems like going in an infinite loop. Even thought
> there is no loop there. The exec waits, for ever...
>
> No error in error.log fo r apache. And, no problem in continuing with
> running the server. I can always view other pages. The only problem, a
> very big problem, is that at a certain point the exec function hangs
> up.- Dölj citerad text -
>
> - Visa citerad text -

Maybe another intresting thing.

The c# app that I try to run after exec begins to freeze, looks
something like that:

static void Main(string[] args){
tw.WriteLine("Before at " + DateTime.Now);
Console.Write("error test");
tw.WriteLine("After at " + DateTime.Now);
tw.Close();
}

In the c# app there is nothing else than this. The funny thing is that
in the log can see:

Before at (date)
After at (date)

Console.writeline should have been executed right? It is stated before
the second log line...

 

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

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