Thursday, December 17, 2009

The bugs in bcompiler seem to have been worked out since phc-win 0.3.0. Unlike 0.3.0, this release has the standard PHP DLLs (for PHP 5.3.1) and separate Winbinder, win32std and bcompiler DLLs. I’m hoping to be able to get a smaller DLL with all of the required extensions going, but for now this is better than the buggy bcompiler version.

Note to Windows 2000, 9x Users
Due to a change in 5.3.x series of PHP, phc-win does not work on Windows 2000 or 9x machines. There are no plans to compile a 5.2.x series binary for phc-win. If you cannot upgrade your OS, I recommend using phc-win 0.2.1 which uses PHP 5.0.5.

Jeez.. I am new to programming but I learnt how to use imacros and therefore I thought of making an app and perhaps giveaway or sell it online but I don’t know how to convert files into exe..

I tried to convert it into VBS form and couldn’t find an opensource vbs to exe.. later I thought, hey why not convert to php and then exe.. I came across many posts. Only your webpage looked genuine and I tried hell lot of unknown programs, don’t know how to operate them. What advice would you give me? Php to exe or vbs to exe or c# to exe?

If you are trying to pick a language to learn and make EXEs, PHP might not be the best option. If you already know PHP and would like to make tool using PHP, then phc-win is very useful. But in general PHP isn’t well suited for application building.

By the way, Microsoft gives away a “lite” version of Visual Studio, perhaps there is a VB version?

That’s really a sin.
I’ve extracted the (dated 25-09-2008) from the phpV530 distribution.
Instead, the “php_win32service.dll” (dated ‎06-08-2008) from pecl5.2-win32-200808060430.zip found googling around on:http://snaps.php.net/win32/

Unfortunately I don’t have more recent pecl DLLs neither for “php_win32service.dll” nor for “php_shmop.dll”.

BTW it could be nice to be able to run phc from the command prompt or at least have drag-n-drop enabled (drag a PHP to get the exe) in order to automatize the exe production.

Thanks a lot in advance for any eventual hint!
L.R.

P.S. Sorry for the possible cross-posting (I wasn’t able to find back my already sent msg).

Hey I found a very strange behavior of phc-win 0.3.1!
I compiled my test appl under my XP machine at work and it works. The same I did at home with Vista (argh!!!!) and it works (unbelievable! ;)).
Now that’s the foolish thing: at work I use 4 servers all of them are Windows Server 2003 Standard Ed. SP2 (as far as I remember).
Well let’s name them S1, S2, S3, S4 (S1 and S2 have 2 giga of ram, S3 and S4 have 4 giga of ram). Same Xion processors. All machines have the same load (very low only I/O). S1 and S2 are 4-processor. S3 and S4 are 8-processor machines.

Well my test executable works only on S3! On S1 won’t run saying it’s not an executable (I don’t recall exact error but I can tell you later). On S4 it runs only after a while. Let say I run it like “test.exe -h” at the command prompt (as it is a console application) I have to wait about 40 seconds then I get the output !!!!! Of course in S3 the help answer is immediate, less than a second to do the same operation. As expected and as it works on the clients!
Any ideas??
This morning if I have time I’ll try to build a win appl instead of console one so I can test if there is a problem in the EXE building as I’m lead to think.

BTW thanks for previous answers ..I saw them just now!

Luca

P.S. I do hope I’ll have time soon to look into the code to write a REDO button/menu item..

Thanks for the report on different OS versions. I’m not able to offer much help as I’m not an expert in windows executables. It seems PHP 5.3.0 might only be 100% compatible with Windows XP SP2 and up. In the past the biggest complaint about phc-win is that it wasn’t up to date, so now I want to keep moving forward and not worry so much about backward compatibility.

Hi all,
with a long delay, I just wanted to advise that the strange misbehaviour happened right from the absence of the Microsoft Visual C++ 2008 Redistributable Package (x86) someone already adviced here!

I installed them on the machines where I had the absurd msg: “The system cannot execute the specified program.” and now the sw works perfectly!

Excellent work Was using bamcompile before, but its not developed any more and the php 4 was getting hard to work with. I also tried Roadsend compiler but for Windows, overall, it was far too beta and buggy
But now I have found your application and I am extremely happy - a working frontend, and a working backend.
My only wish would be that it wrapped all the files into 1 single exe in a file similar in size to bamcompile can output. But I understand, from another forum I read, you are working on outputting a single file already? How is that progressing?

Sorry about that, I was working on some code and got distracted and apparently forgot that I broke the wiki. Thanks for letting me know the wiki was down. You should be able to read the documentation now.

As far as installing VC++ runtimes, I think XP and older versions of Windows will have to, but newer versions of windows include the runtime files in the Windows installation.

I’m trying to compile a code which uses fileinfo and xml module using the latest release of phc-win. I see that it is compatible with PHP 5.3.1 windows release so I also downloaded that package to get the module extensions. I did a simple test and somehow I can’t make it run properly (extension included in the ini file).

I download your phc 0.3.1 when i compile single file or project directory its create the exe file but when i open the main file exe not open the fle in console or any window. i m using the windows 7… ..