How to make my brain melt…
Recently I ran across phpjs.org. Then I started to cry. No, actually although I can’t currently use this to its full potential, this seems pretty cool. During my most recent class (Advanced Web Authoring Languages) I was introduced to a little bit of PHP and thought it was fairly neat-o.
Php.js allows one to use PHP within JavaScript. So if you are looking for a way to make your head hurt on a sunday afternoon, this would really help you out.
Upon inspecting the FAQ section, it seems like the folks at php.js admit that there may be certain functions that are better handled in JavaScript, but in some cases their use of PHP would be more semantic. Php.js is a port of PHP functions into JavaScript for those who are more comfortable or familiar with working in PHP than JavaScript.
Quite a few different versions are available for download, with the option to compile your own version for no overhead. Very interesting. I’m not too sure that I’ll be actually using this any time soon, but I’ll keep it in mind.
If nothing else, it serves as a good example of what is possible with JavaScript and PHP. I hope this post was a little informative and helpful to you. Happy brain melting.
Until next time,
Cory
