Article Diary - General Knowledge Digest

Use PHP Functions In JavaScript with PHP.JS Library

PHP Functions in JavaScriptPHP.JS is a JavaScript library that enables anyone to use PHP functions on client-side. It can be very helpful to any developer who wants to get the PHP functions on static pages with JavaScript to get the extra functionality (like being able to use file_get_contents(), mktime(), serialize() ) & take the load off the server. Currently about 400 PHP functions are ported to JavaScript & there are still ones being experimented or waiting to be included. But it is possible to find the most popular ones (even md5()). The download packages can be totally customized & it is possible to get only the functions you need besides all of them.

No server component required to use PHP functions in JavaScript. To use php.js you can either:
  • Goto one of the Functions and just Copy-Paste it :)
  • Customize & download a package (only select what you need)
  • Download the default package (big size use for study only)
If you know how to use functions in PHP, you should know how to do it in JavaScript with php.js

Requirements: No Requirements
Compatibility: All Major Browsers

PHP.JS Website
Download PHP.JS
Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
How to change default web page using htaccess?
Viewed 962 times since Sun, Mar 14, 2010
UI Patterns - User Interface Design Pattern Library
Viewed 803 times since Thu, Dec 31, 2009
PHP Script For PDF to HTML Conversion
Viewed 3597 times since Tue, Dec 15, 2009
Axiis - Open Source Data Visualization Framework
Viewed 948 times since Thu, Jan 7, 2010
jQuery Slider from a Select Element
Viewed 1903 times since Thu, Jan 14, 2010
jqPlot - jQuery Charts & Plotting Plugin
Viewed 988 times since Sat, Jan 9, 2010
Facebook Style Chat Script - ArrowChat
Viewed 777 times since Tue, Aug 3, 2010
Flash Webcam Image Capture
Viewed 1034 times since Thu, Nov 12, 2009
MENU