From: Jost B. <jos...@ya...> - 2005-09-23 10:46:17
|
Hi, [please excuse the delay] > 4.4.0 - at least you can always ask new users to get > latest version of > PHP to avoid bugs introduced earlier. Well, people have a reason why they use php 4.3.2, 4.3.3 or 4.4.0 or 5.0.x. Certain extensions only work in one of these versions. So if users what to use a specific version of php for which no binary exists, I usually ask them to compile from source. > I've tried to > compile PHP myself > from CVS, but failed. Which errors specifically? > I want to try mix of Java and PHP in > standalone application. I didn't think this is possible. PHP is missing features which are essential for desktop applications. For example it doesn't have threads; it relies on the web server to provide an "execution environment". There are other environments which support the PHP programming language for example a php -> CIL compiler exists for the MONO project. > Yes, sometimes. Okay. I think it is possible to split the zip file into a "documentation" zip and a zip file which contains the php_java.dll, the php.ini and a short readme. > I like things like unzip and run. Like any lazy user > I hate doing > things that could be automated I don't see how this could be automated. Some people use IIS, others prefer apache. > README is very long and contains a lot of > information. Read 25k just > to find command line options (especially if there > are not any) is a > waste of time. I thought it should be good for an > application to > react on help/unknown cmd parameters to be > user-friendly. Sorry, the parameters are documented in the INSTALL.WINDOWS document only. The README is indeed a little bit unix centric; unix users usually start the bridge via the php-java-bridge.service script or via the php-java-bridge command. If you install with "rpm -i php-java-bridge*.rpm" or by double-clicking on the .rpm, the RPM package manager will automatically set this up. AFAIK windows doesn't have such a setup program. But I am not a windows expert, though. > I don't think it is easy, esp. for me. =) What I meant was: Isn't it possible to use java_closure() for this? For example: <? class test { function toString() { $sys=new JavaClass("java.lang.System"); return "Hello java from php@" . $sys; } } $t = new test(); $javaT = java_closure($t); echo $javaT; ?> => [proxy0: "Hello java from php@100982"] The problem is that Sun's dynamic proxy doen't accept a super class, i.e. the parent class is always java.lang.Object. There are several open source implementations which change this. But in practice I think this isn't an issue. You can always delegate, e.g. use the decorator pattern. Regards, Jost Boekemeier ___________________________________________________________ Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: http://surveylink.yahoo.com/wix/p0379378.aspx |