Solved

Anyway to run PHP scripts in Windows without PHP interpreter

Posted on 2004-10-18
9
610 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
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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now