IT Community - Software Programming, Web Development and Technical Support

how to create exe files in php?

This is a discussion on how to create exe files in php? within the PHP Programming forums, part of the Web Development category; is there any possibilities to create exe files in php?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-27-2008, 07:51 AM
sureshbabu sureshbabu is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: India
Posts: 101
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default how to create exe files in php?

is there any possibilities to create exe files in php?
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-27-2008, 10:12 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: how to create exe files in php?

Hi suresh,

Yes it is possible to create exe's.

As you know, PHP is widely know as a web language. But now, it is very easy to use the language you make websites with, to make desktop applications.

The way you can only make executables for windows. I have yet to find one that makes them for Mac or Linux.

Here we can see the steps to create exe.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 10:15 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: how to create exe files in php?

Step 1: Get the required software]

Here i am using the BamBalam Compiler. This one is the easiest to use.

Download it here.

Once downloaded, Unzip.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2008, 10:17 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: how to create exe files in php?

Step 2: Setup a good environment

To make a good environment for building your exe's, copy bamcompile.exe to a new folder on your desktop. Rename it bam.exe.

Make a new file called compile.bat, and in it, put:
Code:
bam source.php
Make a new file called source.php

Now your environment is setup!
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-27-2008, 10:21 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: how to create exe files in php?

Step 3: Make a program!

It is now very easy to make a quick little application. In your file called source.php, put:
Code:
<?php
$file = fopen("test.txt", 'w') or die("can't open file");
fclose($file);
?>
Now, double click, compile.bat.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-27-2008, 10:23 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: how to create exe files in php?

Result

If you followed all the instructions, you should end up with a file called source.exe.
If you run that, it should make a new blank file called test.txt

Wow, that was easy! Feel free to play with the source.php and try different things.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-28-2008, 11:09 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: how to create exe files in php?

Hi,
I think this will be worthy information
How can it work?
while i am creating exe for the PHP files as a application, can it be run from the browser?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create log files in java? saravanan Java Programming 2 08-06-2008 03:43 AM
How to create ISO Files? $enthil C# Programming 0 09-17-2007 01:20 AM
Can I create PDF files from php? itbarota PHP Programming 1 09-12-2007 01:06 AM
Different between GUI map and GUI map files? senthilkannan Testing Tools 1 08-10-2007 02:59 AM
Trace files and Log Files in Unix vigneshgets Operating Systems 0 08-01-2007 05:18 AM


All times are GMT -7. The time now is 02:59 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0