flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > integrate PHP into your application

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8903
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i actually wanna know this for sometime already,
how to integrate the PHP parser & output capability into let say my application.exe?

so eg. my application could run php script, with cookie, session support.
like a web application with PHP built-in?
Post 29 Aug 2008, 22:38
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
PHP might not be the best scripting language to integrate in your application.

PHP is usually more suited for server-side applications.

Try Tcl as it's very easy to extend/embed. Take a look at http://wiki.tcl.tk/
Post 08 Sep 2008, 20:08
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Or LUA, very lightweight... Or Python, not as lightweight as LUA but pretty cool.
Post 08 Sep 2008, 22:01
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8903
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
thanks ozzy & fodder.
actually the idea is to use my own mini weight server,
coz the solution is coded in PHP.

and i don't feel like wanna use the lighttpd nor apache.

the "wish to" is to let my coded solution aka the php web application, and supply the customer with my own web server that php capable, (you might wanna call it vendor lock down)

maybe the question should be how to let the web server support fast cgi or the php4ts.dll?
Post 09 Sep 2008, 19:28
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Ah, you're fixed to PHP and don't just want "a scripting language" - I sorta suspected this, but thought I'd throw in some alternatives after all.

I dunno which method of embedding PHP is "the best" - using a DLL (or static libraries) probably "feels best" if you consider performance, fastcgi might be easier to implement (I haven't looked at the php lib/dll so can't say how much work it'd be). I had a brief look at the fastcgi protocol once though, and it seemed pretty easy to implement Smile
Post 09 Sep 2008, 23:11
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.