Anyway to run PHP scripts in Windows without PHP interpreter

Hello,

Is there any chance to run PHP scripts in Windows environment without installing PHP? I know that it must be compiled to exe, do you know any good compilers which will compile my php scripts to windows exe files

Thanks!
blacklordAsked:
Who is Participating?
 
tkalchevConnect With a Mentor Commented:
Look at this article, this is a PHP component for Delphi, which allows you to call php code from any Delphi application

http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19278
0
 
hernst42Commented:
no AFAIK there is no possibility to a php-script without a php-interpreter. PHP is a interpreting and no compiling language.

But there is a tool that convert you php-code to C so its compileable: See http://binaryphp.sourceforge.net/wakka.php?wakka=HomePage Maybe so you can get it to work.
0
 
blacklordAuthor Commented:
Isn't it possible to compilte both php interpereter (php.exe) and php script in one exe file?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
hernst42Commented:
AFAIK no, e.g it's the same as Java. There I haven't seen a tool to create a exe with all java-runtime and  javac-files bundled into big exe.
0
 
psgroveCommented:
Try another language. PERL is pretty easy to pick up for PHP dudes, and there are compilers like perl2exe that work well. Or better yet, C# (might as well learn an upcoming language) which has compilers built in.
0
 
tkalchevCommented:
Hi Venabili,

did you have cheched the Delphi component, whch I have linked. It is a free component, which can interpretate PHP code. You must NOT have PHP installed in the computer and you can 100% hide your code inside an EXE. I think this is what blacklord needs.
0
 
hernst42Commented:
tkalchev:
Have you tried that component by your own? looks like it can do this in delphi, but you still need php installed on that system to interpret that code within in delphi.
0
 
tkalchevCommented:
Yes, it needs the php4ts.dll only.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.