[python-win32] Pb server COM with PHP

Michel Claveau mc at mclaveau.com
Sat Nov 6 11:17:06 CET 2004


Bonjour, Mark !
Hi, Mark !



Thank you for your answer.



||| >         $oa = new COM("Word.Application");
|||  Presumably this is creating a Word object, not a Python object?

Désolé, je me suis trompé dans mon copier/coller ; c'est :
Sorry, error with copy/paste ; it's :
        $oa = new COM("Ponx.Mci");



|||  Try setting "PYTHONVERBOSE=2" in your environment before creating the
object - this is the same as "python -v", and should show you the error
importing site.

Je vais essayer votre suggestion la prochaine nuit (je suis un peu
programmeur nocturne)
I try your suggestion next night (I am a little night programmer)



Pour information, j'ai fait différents essais, et j'ai trouvé que le
problème n'existe que pour PHP en ligne de commande. Si PHP est accolé à
Apache, il n'y a pas de problème.

For information, I had try various tests, and I found that the problem
exists only for PHP in "command-line".  If PHP is coupled in Apache, there
is no problem.


And  *re-sorry for my bad english (powered by google-translation-tool)

-- 
Michel Claveau






More information about the Python-win32 mailing list