Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi EveryOne.

    I am developing an software (Same Like WEB SERVER ) in Microsoft C# and i have to run PHP code with C# program with have PHP file on hard disk i:e; php code will be include in C# project,is there any way to do this.
I tried this:
    
Downloaded PHP for Windows and passed file name of PHP code to php-win.exe and got out put to my C# program.But for this I need to have PHP file to be on hard disk.Which is not good for my Application and I dont like to show that i am using PHP in my application.
Is there any library for PHP so that I can include php file in C# code itself and run php script.Please Let Me know.

I seen this is possible with c++ and python.there is a library pylib or so.I need same for php. even c++ and php is also ok for me.

Regards,
Pavan.
Posted
Updated 7-Jan-12 1:45am
v2
Comments
Toli Cuturicu 29-Oct-10 9:25am    
DON'T SHOUT! Don't be rude!
Mehdi Gholam 7-Jan-12 7:45am    
Removed shouting.
Denno.Secqtinstien 15-Oct-12 2:17am    
you could try phalanger for Php to be used inside visual studio.

 
Share this answer
 
Comments
LazyDragonfist 29-Oct-10 5:58am    
Thansk for your reply,A Good start for my application.

But How to convert PHP Script to dll
the command over there is not working,actually i dont understand what is that phpc file which i dont have.
phpc /target:dll /out:PhpClassLib.dll main.php
www.php-compiler.net, thsi could help you out read the articles properly, it helped me a lot.

thnaks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900