Posts Tagged "PHP"

Accessing ZF Application Resources In Controller

My friend Rob Allen recently posted a quick how-to on how to access your configuration data in application.ini file while in a controller or action helper. The one part Rob didn’t touch on was how to get resources back.

read more

What the…?> PHP and unwanted whitespace

Over at BigBlueHat there is an interesting blog post about using the ?> at the end of php files. While personally I don’t use it on scripts that contain just php code, but I can see where both sides are coming from.

Check out the article and leave your feedback!

read more

Zend Studio for Eclipse – New Framework Project Problems

While working on a new project where my base was Zend Framework I desided to give the default layout for new ZF projects in Zend Studio for Eclipse a chance. While it does start a good layout for a project by generating the default code which is a real time saver I did notice some problems.

read more

Twitter Service for Zend Framework

Earlier this week I had the extreme pleasure of having my first addition to Zend Framework added to the standard library.  I started working on this component after talking with Matthew Weier O’Phinney at ZendCon ‘08 where he stated that he didn’t have time to work on implementing the api for use in with the framework.

Zend_Twitter_Service is currently in the standard trunk for Zend Framework and is scheduled to be released with 1.7.  Please check it out and check back for some examples in the next few days.

read more

PHP implemented in 100% Java

Thanks to Federico over at PHP::Impact ( [str Blog] ) for posting this.  I’m going to test it out and see how well it really works.

Quercus allows developers to incorporate Java code into PHP web applications and gives both Java and PHP developers a fast, safe, and powerful alternative to the standard PHP interpreter.

Quercus natively supports Unicode and the new Unicode syntax of the up-and-coming PHP 6, and implements a growing list of PHP extensions (i.e. APC, iconv, GD, gettext, JSON, MySQL, Oracle, PDF, Postgres, etc.). Many popular PHP applications will run as well as, if not better, than the standard PHP interpreter straight out of the box.

Quercus PHP libraries are written entirely in Java, thereby taking the advantages of Java applications and infusing them into PHP.

Benefits

Although PHP users and Java users can take advantage of Quercus immediately without modifying their application, the real benefits come from developing mixed Java/PHP applications:

  • PHP libraries written in Java are fast, safe, and relatively easy to develop, compared with C libraries. Since Java is the library language, developers won’t need to be paranoid about third-party libraries having C-memory problems or segvs.
  • PHP applications can take advantage of Java libraries and capabilities like JMS, SOA frameworks, Hibernate, or Spring. (Or EJB if you really wanted.)
  • Java application can move presentation code to PHP, leaving behind templating systems, or languages with small libraries, and taking advantage of PHP flexibility and capability.

Links

I’m going to setup a test box and test this out to see how it compares to the standard LAMP stack.  Check back for more information.

read more
Page 1 of 212