Log in

View Full Version : making php exe



pandita_arun
01-26-2009, 12:30 PM
My links in a php exe is not working. I my using bamcompiler for making php exe my paths are correct. It works only when the sourefile is the path But when i remove that source file exe is not working

Nile
01-26-2009, 12:56 PM
You would need to provide your link, and a link to the bambalam (http://www.bambalam.se/bamcompile/) page.

Twey
01-26-2009, 01:14 PM
PHP really isn't the best language for application development. It's highly specialised. Try another, like Haskell (http://www.haskell.org/), Python (http://www.python.org/), or C# (http://en.wikipedia.org/wiki/C_Sharp_(programming_language)) (especially for Windows development).

pandita_arun
02-25-2009, 08:48 AM
Thanks for the suggestion Twey, but I would appreciate if you could provide the information, if any, about the bamcompile tool that I am trying to crack.

I wonder why this tool at all ( Bamcompile) If php isn't meant for the application develpment , Any ideas ?



Arun - Webdeveloper,

ProximaSystemsIndia.com (http://www.proximasystemsindia.com)

P.S. :Sorry about the substantial delay in the post , I am back on it.

Twey
02-25-2009, 11:51 AM
I doubt anyone but the developer will know, if your paths are truly correct. You might want to double-check them. I don't think it's been updated to work with PHP5 yet, despite the fact that it's been out for several years now, so that may be the issue if you're using an up-to-date version of PHP.
I wonder why this tool at all ( Bamcompile) If php isn't meant for the application develpment , Any ideas ?'When your only tool is a hammer, all problems look like nails.' PHP is a Turing-complete language, and as such it can technically be used for most tasks to which a programming language can be applied. As such, some people, generally those who have learnt it for the purposes of web development, see this power and think 'hey, this is cool, I can use it for all these other things!', never suspecting that there may be a better way, and that there's a reason most people don't.

djr33
02-25-2009, 10:15 PM
You'd need to post your source code if we were to do anything with it. If this really is an issue within bamcompile, if your files work on a server, etc., then it may have to do with PHP5, or perhaps your method of output. But that is uncertain until you show us the source code.

pandita_arun
03-10-2009, 11:11 AM
djr33 / Twey ,

Earlier, I tried it with php5 and hit lot of problems, and then read the documentation (I hope I don't get penalized by bamcompile for reading documentation after trying it out :) )

I am aware of the fact that it is not compatible with php5 and I am definitely using php4.
Well, I have checked the paths, but if you insist I am posting the source files shortly.

Shall get back,
Thanks guys.

Twey
03-10-2009, 11:58 AM
Basically, the solution to your problem is to stop trying. bamcompile is out of date and seemingly unmaintained for three years, and the approach you've chosen to solving this problem is practically the worst possible. Learn a real applications-programming language such as one of those I mentioned above and do it properly.

pandita_arun
03-10-2009, 01:00 PM
:( :(

What say you djr33 ?

After all the effort i put into this research , looks like everything going down the drain. :(

Twey
03-10-2009, 01:38 PM
It would have been a lot less effort had you done it properly from the start, at least once you got past the hurdle of new technologies. As it is you should probably just chalk it up as a learning experience and move on.

If you're really desperate to use your PHP version, there are better ways to distribute it than bamcompile — you can simply include the PHP interpreter and a small executable launcher (shown here in C):
#include <stdlib.h>

int main(int argc, char **argv) {
return system("php bootstrap.php");
}

pandita_arun
03-13-2009, 01:10 PM
Okay, i am still mulling over the options.
Thanks, anyways, for your time & suggestions.