Encode and decode URL

In PHP you can send values by encoding and decoding the URL by using this encoding and decoding method. {code type=PHP}echo base64_encode(‘I am encoded PHP’);{/code} You will get and output something like this. {code...

How to get image size dynamically

There are many times you wonder why the w3c validation is not going through for you. Please make sure that the img tag has the width and height attributes. What will happen if the image file comes dynamically and you do not know the width and height attribute, in that...