www.digitalmars.com         C & C++   DMDScript  

D - Embedding PHP into D, and ruby for that matter.

reply Joshua <savagejoshua gmail.com> writes:
I am building a GA in D and part of the analysis I need to do involves
evaluating chunks of PHP code. I have found a few posts about getting
php-embed to work in D but no links to a how to or other example. Has anyone
tried it? The main advantage for me would be to be able to process the code
directly from the server instead of having to use the php CLI.

Plus I think it would be neat to just see it working in D :)

And I would like to do the same thing with ruby but I think the ruby portion
is a lot easier.
Jul 03 2007
parent reply poly <p0lycyb0rg gmail.com> writes:
hi Joshua,

You've mentioned something about Ruby, too. I've done once a ruby
interpreter plugin for a D project. To do this I used a dummy-c-dll and
used it in D. I dont know if this can be done easier!? I hope this helps
you.

regards, pimp

Joshua schrieb:
 I am building a GA in D and part of the analysis I need to do involves
 evaluating chunks of PHP code. I have found a few posts about getting
 php-embed to work in D but no links to a how to or other example. Has anyone
 tried it? The main advantage for me would be to be able to process the code
 directly from the server instead of having to use the php CLI.
 
 Plus I think it would be neat to just see it working in D :)
 
 And I would like to do the same thing with ruby but I think the ruby portion
 is a lot easier.
Dec 08 2008
parent "Simen Kjaeraas" <simen.kjaras gmail.com> writes:
On Mon, 08 Dec 2008 09:12:31 +0100, poly <p0lycyb0rg gmail.com> wrote:

 hi Joshua,

 You've mentioned something about Ruby, too. I've done once a ruby
 interpreter plugin for a D project. To do this I used a dummy-c-dll and
 used it in D. I dont know if this can be done easier!? I hope this helps
 you.

 regards, pimp

 Joshua schrieb:
 I am building a GA in D and part of the analysis I need to do involves
 evaluating chunks of PHP code. I have found a few posts about getting
 php-embed to work in D but no links to a how to or other example. Has  
 anyone
 tried it? The main advantage for me would be to be able to process the  
 code
 directly from the server instead of having to use the php CLI.

 Plus I think it would be neat to just see it working in D :)

 And I would like to do the same thing with ruby but I think the ruby  
 portion
 is a lot easier.
The D newsgroups is dead. Please use digitalmars.D instead. Thank you. -- Simen
Dec 08 2008