You are here: Re: Problems starting a console application though PHP « PHP Programming Language « IT news, forums, messages
Re: Problems starting a console application though PHP

Posted by Csaba Gabor on 07/08/06 03:00

m.sorana@schiketanz.at wrote:
> Thanks for the answer.
>
> The thing is some complicate.
> I wrote a VB6 programm with GUI which uses a COM object to send and retrieve
> datas from a remore Reuters server. I send a sql query and I get the
> response. The COM object works with events: when tha datas are retrieved
> then an event will be fired and so on.
> Well, I tried to start this programm through PHP but it did not work.
> First I thought the problem is the GUI, so I changed the programming
> language and I write a similar console application in VB.NET.
>
> Now, if I start the programm local on the server, it works. It sends the sql
> and after few seconds gets the response back and saves it.
>
> If I start it through PHP, it executes but it is not able to instantiate the
> COM object...

This is like pulling teeth. Let me be more specific: "Please be
detailed and specific." means that I want to see the relevant lines of
code. I don't want to see all your code, but I do want to see how you
(that is to say: the lines of code that) create the COM object and how
you (lines of code that) hook up the event handling. And I also want
to see the specific line that it fails on. Also, and possibly most
importantly, exactly how do you start PHP (and if it's scheduled, the
exact scheduling line should be provided (using password placeholders,
of course)).

Furthermore, the context that PHP is started under is extremely
important. You have said "local on the server". The implication is
that the (eventual and expected) behaviour is one where a web page
request kicks off a server side PHP script which script is attempting
to work with the COM object (is my inference correct? If not outline
the scenario). There surely is a security (permissions) issue here.

Csaba

 

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

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