212
I Use This!
Very Low Activity

News

Analyzed about 21 hours ago. based on code collected about 22 hours ago.
Posted almost 13 years ago by $client = new SoapClient("some.wsdl"); $client->SomeFunction
545
Posted almost 13 years ago by how to find your true love in the least time
now i can use PHP in java files.....wow thats a great help that i was looking forward to. Now i can play more with these codes. I hope i get to read more of this kind of work.
Posted almost 13 years ago by mildevivy
Posted almost 13 years ago by Enuple
Posted almost 13 years ago by Rafał
@Timo: thanks for the report. I think, I've managed to fix it. Check github for latest changes.
Posted almost 13 years ago by Timo
pathinfo("htaccess", PATHINFO_FILENAME) in PHP returns "htaccess", but pathinfo("htaccess", 'PATHINFO_FILENAME') in JS returns "".
Posted almost 13 years ago by hieshibre
Posted almost 13 years ago by weldan
https://gist.github.com/3304628 /************************************ * @name php_uname.js * @date August 9 2012 * @author weldan <[email protected]> ************************************/ /*************************************** * FIXME: * ... [More] 1. proper os version matching * 2. proper machine type detection * 3. get os release name and version * refs: http://my.php.net/php_uname ***************************************/ function get_os() { var _os = navigator.userAgent; if (_os.indexOf("Windows") !== -1) { return "Windows"; }else if (_os.indexOf("Linux") !== -1) { return "Linux"; }else if (_os.indexOf("FreeBSD") !== -1) { return "FreeBSD"; }else if (_os.indexOf("NetBSD") !== -1) { return "NetBSD"; }else if (_os.indexOf("OSX") !== -1) { return "OSX"; }else if (_os.indexOf("iOS") !== -1) { return "iOS"; }else if (_os.indexOf("Android") !== -1) { return "Linux"; } } function get_hostname() { return window.location.hostname; } function get_machinetype() { var _os = navigator.userAgent; if (_os.indexOf("i386") !== -1) { return "i386"; }else if (_os.indexOf("i686") !== -1) { return "i686"; }else if (_os.indexOf("x86_64") !== -1) { return "x86_64"; } } function get_all() { var _os = get_os(); var _hostname = get_hostname(); var _machinetype = get_machinetype(); /************************************ //FIXME: //add os release and version ************************************/ return _os +" "+ _hostname +" "+ _machinetype; } function php_uname(_param) { switch(_param) { case "s": return get_os(); break; case "n": return get_hostname(); break; case "m": return get_machinetype(); break; case "a": return get_all(); break; default: return get_all(); break; } } [Less]
Posted almost 13 years ago by Dj
Note that the regexp does not include the char "F" (uppercase), so expressions like "%01.2F" will not works. The function is already done to process it, but it just was missed in the regexp so it is not captured.
Posted almost 13 years ago by Jan Bouvrie
Is it me, or is the type change from string '4.0' to numeric 4 in the example a side effect?