Not too long ago, it seemed like there was a pretty clear distinction between client-side technologies and server-side technologies. Languages like PHP, Perl and Python resided on the server, taking care of tasks like database connectivity, transaction management and remote procedure calls, while tools like JavaScript, CSS and HTML were used exclusively on the client to render pages, perform whizzy effects and respond to user events.
Things aren't that clear any longer. Projects like Jaxer and Phobos are blurring these distinctions, by making it possible to run JavaScript on the server and use it for tasks ranging from server-side file access to input validation. And in this article, I'm going to show you how to add a JavaScript engine to your PHP build, with a little help from PECL's SpiderMonkey extension. Keep reading!
Last week, in a meeting with my boss and another developer, we've decided to test the PHP/Java Bridge. As the project that we are currenlty working (a manager for PLC networks) has grown a lot, we have noticed that we need to do some things that PHP can't do by itself. We often use shell_exec() to execute some shell commands. But it wouldn't fit in this case, as we need some specific things.
There were two options:
* Create C code that could be converted to PHP extensions later (perhaps using SWIG?);
* Use the Java Bridge.
Before we take the step, we decided to test the Java Bridge. Of course the C code would run faster, but the development time also matters. And with Java it would be faster (at least for me).
Auf dieser Seite findest du eine Einführung in die Programmierung von PHP5. Ein allgemeiner Teil führt zunächst in die Grundlagen der Programmierung ein. Dabei werden Variable, Funktionen, Arrays ausführlich erklärt.
Sessions und Datenbanken werden ebenfalls als Mechanismus zur Datenspeicherung erklärt.
Ein Teil zur Objektorientierten Programmierung erklärt Konzepte wie Klassen, Vererbung, Interfaces und abstrakte Klassen an Beispielen. Zum Schluss gibt es einen Teil zu Frameworks, die die tägliche Arbeit mit PHP erleichtern.
Coming from PHP you are probably spoiled with some good developer tools, especially Zend Studio or Ecplipse PHP. In javascript land there are not as many good editors out there. From the ones I've worked with I would recommend Notepad++. It's very light weight, supports numerous languages, can completely replace your windows notepad and I use it for all my JS (and CSS) needs right now. If you don't run the beautiful microsoft operating system (...) you might find Aptana interesting. It's based on eclipse and therefor runs on most major operating systems. It also has advanced support for code completion and some other gimmicks. Personally I don't use it because it's too memory hungry, especially when my php IDE is already opened. Other then that it's a really comfortable IDE to work with.
In my previous post on this topic I described the method we used to convert a legacy MySQL PHP database to a Rails conformant PostgreSQL hosted version. In this article I will tell a bit about how we converted the HTML of the application to Rails layout templates and partials.
The PHP/Java Bridge is an optimized, XML-based network protocol, which can be used to connect a native script engine with a Java or ECMA 335 virtual machine. It is more than 50 times faster than local RPC via SOAP, requires less resources on the web-server side, and it is faster and more reliable than a communication via the Java Native Interface.
In recent weeks I was busy converting a fairly large PHP application to Rails. The existing PHP application is about 65.500 lines of intermingled PHP and HTML/CSS code. Yep, a classic PHP application without any database abstraction layer, no templating, no MVC. This is why I dubbed it “large”, but replacing that with “crappy” would be fine too :)
The Java extension is an extremely exciting tool. By learning how to use this module, you can extend PHP by the power of all available Java classes. To show you the basics of the Java extension, this article will cover installation and a few code examples of using PHP and Java together.
There’s no doubt that right now Ruby is generating a lot of buzz in the developer community. This is mainly attributed to the Ruby on Rails framework, but if we dig deeper, it becomes quite obvious that the power of Rails is derived from the language in which it was written.
While Ruby’s documentation is at a point now where beginners can start digging in and learning quite rapidly, there appears to be a learning curve with developers coming from other languages. Ruby is a language that took the best ideas from many languages such as Perl, Lisp, Smalltalk, and others, and while some syntax is immediately familiar to a PHP developer, the more you really unlock the power of the language, the less it looks like anything we’ve seen before.
My goal is not to write a full tutorial on the language, but to be a starting point for PHP developers to both get a feel for the syntax, and to see why Ruby might be worth a look. For further reading about the language, I recommend reading the following: Why’s (poignant) guide to Ruby, Programming Ruby, or Try Ruby!.
Here's how to team up two of the most popular and powerful platforms for web development together. With the php-java bridge you can build classes and jar files in Java and call them and use their methods in PHP. Use the quick and easy PHP language to bring Java muscle to your web pages.
In this tutorial I am using Windows 2000 Server, PHP 5.1.4 and php-java bridge 3.1.6. Windows is my operating system of choice but there is information on installing and using php-java bridge on Linux and Mac OS. You can find it under the resource link at the end of the article. I am going to assume that you have a bit of knowledge about both PHP and Java. You should know enough to get them installed and be able to do simple coding in both.








