Page 1 of 1
Running C Code & Inserting it into SQL
Posted: Sun Mar 05, 2006 10:08 pm
by fecophobia
I want to modify osDate to do astrology searches, so I need to insert astrological data into the database, but my source for the calculations is written in C. Should I make it an ActiveX control, or is there some way I can get it to execute server side and insert the data without downloading anything? What is the best way to integrate C code into a server-side application?
Posted: Sun Mar 05, 2006 10:40 pm
by feyd
If you have the source, why not port it?
Posted: Sun Mar 05, 2006 10:41 pm
by fecophobia
Port it to what, PHP?
Posted: Mon Mar 06, 2006 8:23 pm
by alex.barylski
fecophobia wrote:Port it to what, PHP?
I'm pretty sure thats what was meant...
Honestly...if you have to ask that question your better off following the path of least resistance...that being port the code to PHP.
IMHO ActiveX would not be a very good solution...especially if it's written in C...
ATL is the only library that should be used to write anything ActiveX
Posted: Wed Mar 08, 2006 6:17 am
by timvw
I'd probably have a look at PECL_Codegen and wrap it as an extension...