Re: php e c++



xiang wrote:
Dovrei far interagire php con una dll compilata in c++, mi spiego,
dovrei far in modo di inviare un comando dalla pagina php ad una dll ,
magari un numero un valore, e invocare un metodo che si trova nella
dll, come posso fare ? Ma si può fare ?

Grazie

I sort of deduct you want to know how to invoke a DLL from within a PHP
script, parse and retrieve some data from it by calling a specific
function/method in the C++ program, if that's possible at all. Is my
deduction more or less correct?

(That's why English is such a marvellous language, practically everyone
writes/understands at least the basics of it.)

Check the PHP manuals for exec(), system(), passthru() &
escapeshellcmd() on how to invoke external programs.

If you want to invoke just a particular function in a program/library,
things probably become much more complicated. Perhaps you could use the
argv[] in the C++ program to parse command options.

Rgds
Sh.
.



Relevant Pages

  • Re: Reflection problem
    ... "After calling method" immediately after the line. ... not passing from the line in which i call the invoke. ... i doubt whether the problem could be with the dll. ... >> private string CallFunction(string assemblyPath, string className, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: PHP has encountered an access violation...
    ... I uninstalled PHP 5.2.5 and installed 5.2.6. ... correct dll to be used...thus solving your problem and the related symptoms. ... IIS, i've run several web servers with it, private and commercial, and never ...
    (comp.lang.php)
  • Error dynamically invoking vb.net dll from C# test application
    ... invoke a DLL. ... The test application is able to sucessfully invoke ... public string Translate ... Namespace proclaim ...
    (microsoft.public.dotnet.general)
  • Re: [PHP] Missing DLLs
    ... Is that something in PHP source that could be fixed to specify WHICH dll is really missing? ... I'm happy to put it in bugs.php.net as a feature request, if it's actually IN php, but don't want to waste the resources to mark it as junk if there's no way PHP could do that. ... It's been a while since I've done Windows development, but IIRC PHP will only be able to tell that the DLL could not be loaded, I don't believe Windows exposes exactly what the problem was. ... Because I can recall other times that you got the urge to hit your head on the keyboard multiple times in order to get over the fact that the problem that caused the error was so ...king obvious. ...
    (php.general)
  • Re: [PHP] Missing DLLs
    ... Is that something in PHP source that could be fixed to specify WHICH dll is really missing? ... I'm happy to put it in bugs.php.net as a feature request, if it's actually IN php, but don't want to waste the resources to mark it as junk if there's no way PHP could do that. ... It's been a while since I've done Windows development, but IIRC PHP will only be able to tell that the DLL could not be loaded, I don't believe Windows exposes exactly what the problem was. ... Because I can recall other times that you got the urge to hit your head on the keyboard multiple times in order to get over the fact that the problem that caused the error was so ...king obvious. ...
    (php.general)