these are the top 10 reads of June 2014.
thanks to all visitors, bookmark us, share us, talk about us, Follow us!, let’s grow bigger!
these are the top 10 reads of June 2014.
thanks to all visitors, bookmark us, share us, talk about us, Follow us!, let’s grow bigger!
To Decode a URL in PHP you can use the following snippet.
Also take a look at How to encode a URL in PHP.
urldecode("http://codesnippets.fesslersoft.de/")
To encode a URL in PHP you can use the following snippet.
Also take a look at How to decode a URL in PHP.
urlencode("http://codesnippets.fesslersoft.de/")
To decode a URL in Javascript you can use the following snippet.
Also take a look at How to encode a URL in Javascript.
unescape("http://codesnippets.fesslersoft.de/");
To encode a URL in Javascript you can use the following snippet.
Also take a look at How to decode a URL in Javascript.
escape("http://codesnippets.fesslersoft.de/");
To Decode a URL in Java you can use the following snippet.
Also take a look at How to encode a URL in Java.
URLEncoder.decode("http://codesnippets.fesslersoft.de/");
To encode a URL in Java you can use the following snippet.
Also take a look at How to decode a URL in Java.
URLEncoder.encode("http://codesnippets.fesslersoft.de/");
To get the size of a file in PHP you can use the following snippet.
You can combine this snippet with How to convert bytes to human readable file size in PHP.
$MyFileSize = filesize('fileName');
To get the size of a file in Python you can use the following snippet.
You can combine this snippet with How to format bytes to human readable Size in Python.
os.path.getsize(fileName)
To format bytes to human readable Size in Python you can use the following snippet.
fileSize = 12454162221 for count in ['Bytes','KB','MB','GB']: if fileSize > -1024.0 and fileSize < 1024.0: print "%3.1f%s" % (fileSize, count) fileSize /= 1024.0 print "%3.1f%s" % (fileSize, 'TB')