You are here: Re: Calling C functions in PHP « PHP Programming Language « IT news, forums, messages
Re: Calling C functions in PHP

Posted by Anonymous on 11/30/05 00:54

bjorn2k@hotmail.com wrote:
>
> Thanks for the information. By the way, i want to call functions from
> an existing API written in C from PHP to display it using a web
> application.

If you are using Windows and the API is contained within a DLL (which is
often the case) then you could call it via rundll32, which you can call
via the PHP system() function.

system('rundll32.exe YourAPI.DLL,FunctionWithinDLL Parameter1 Parameter2
....')

Bye!

 

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

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