json_encode, json_decode, handle multibyte: json_decode(xx, 'JSON_UNESCAPED_UNICODE').readdir (get all file list in select directory).curl : curl_init, curl_setopt, curl_exec, curl_close.Īfter the new version of phplike 2.2.0, I committed all binary files which already compiled in Windows, Mac and Linux, you can just install the phplike without compiling C/C++ now. It needs python which's version must be bigger than 2.7.8, you can download the python from here. python 2.4 ~ : phplike use node-gyp to compile C/C++ codes.libcurl (libcurl-7.19) : Linux system already have this built-in package.The version 0.12.x of Node.js is not supported now. phplike have been already tested in Node.js version from 0.10.x to 0.11.x.If you have any issue for installing phplike, please open a issue in anytime. Raspberry PI(Pidora OS with ARM CPU): ~.Windows: Supported only in 、, I had ever test phplike in windows 8 and windows xp. Linux : Every version of phplike support linux system.It will let you make a request synchronously. It can reduce the umber of callback functions, also will make the code easier to maintain, and phplike provide the function cUrl which is just like php's function called curl. Phplike support synchronous function "exec", "curl", "fsockopen" executing without callback function. The phplike support many synchroous functions for Node.js. But sometimes, we want to make code be readable and easier to be maintained. Asynchronous IO is not a bad way for any web system. Second, Node.js is a event-driven language and it's method usually use asynchronous IO. This project's purpose is to implement some useful PHP functions for Node.js or Io.js.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |