Skip to main content.

Sunday, September 25, 2005

NAJAX is a PHP Ajax framework. Not only does it look easy to use, it also appears to have well-written and well-documented code.

One of the examples is a PHP Exam. I managed to score only 7 out of 12. A list of my errors in in the extended section of this article.

The errors

  1. I confused array_shift with that of array_unshift. I always mix these two up.
  2. I never heard of pcntl_exec before, so I didn't know why it was different than exec.
  3. I didn't know how the === operator worked. I feel ashamed :) (it checks if both operands are the same and are of the same type)
  4. I didn't know what the purpose of either get_required_files or get_included_files was. I guessed that they would be different, but in fact they are exactly the same. It returns an array with the names of included or required files.
  5. I was fooled by the behavior of the ksort function: it does not return an array but rather applies the changes directly in the array passed to it, and returns a bool instead.

Hurray! I learned something today.

Comments

I scored just two. hmmm...

Posted by Arthur at Wednesday, November 02, 2005 14:04:50

Which AJAX framework is good for beginners?

Posted by Pozycjonowanie at Sunday, November 19, 2006 04:32:13

Add Comment

This item is closed, it's not possible to add new comments to it or to vote on it