Solved

Anyway to run PHP scripts in Windows without PHP interpreter

Posted on 2004-10-18
9
622 Views
Last Modified: 2007-10-18
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!
0
Comment
Question by:blacklord
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 12336889
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
 

Author Comment

by:blacklord
ID: 12336932
Isn't it possible to compilte both php interpereter (php.exe) and php script in one exe file?
0
 
LVL 48

Expert Comment

by:hernst42
ID: 12336983
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
tkalchev earned 250 total points
ID: 12337801
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
 
LVL 1

Expert Comment

by:psgrove
ID: 12339084
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
 
LVL 9

Expert Comment

by:tkalchev
ID: 12564706
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
 
LVL 48

Expert Comment

by:hernst42
ID: 12564966
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
 
LVL 9

Expert Comment

by:tkalchev
ID: 12565404
Yes, it needs the php4ts.dll only.
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question