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
5 (1)
Article Rating (1 Votes)
Rate this article
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
Review of Mobile Web Application Frameworks
Viewed 1607 times since Mon, May 9, 2011
tgrdfgdgfdg
Viewed 1147 times since Sun, Jan 17, 2010
What is rel="nofollow" attribute?
Viewed 987 times since Thu, May 13, 2010
Best Free Web Icons for Different Purposes
Viewed 1380 times since Mon, Dec 28, 2009
10 Most Popular JavaScript Frameworks
Viewed 1262 times since Thu, Jul 8, 2010
Modify HTTP Headers in PHP with Examples
Viewed 1264 times since Wed, Mar 10, 2010
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 2390 times since Thu, Feb 4, 2010
Stylish Cross-Browser CSS Buttons - Simply-Buttons v2
Viewed 1201 times since Thu, Nov 12, 2009
AeroSQL - Web Based MySQL Management
Viewed 1344 times since Wed, Feb 24, 2010
Which hosting plans support IIS Mod-Rewrite?
Viewed 5611 times since Sat, Oct 10, 2009