0 comments / March 12, 2023

Solved: How to check if string is already encrypted in laravel

In Laravel, We can encrypt a string using encryptString method in the Crypt facade. All the characters in the string are encrypted using OpenSSL and AES-256-CBC Cipher. The encrypted string is signed with MAC ( Message Authentication Code )

0 comments / February 24, 2023

Switch php version in command line ubuntu

When we have multiple versions of php installed in ubuntu operating system, we can use "update alternatives" command to switch between the versions.

6 comments / September 12, 2016

Best way to get facebook like/share count after fql depreciation - PHP

So FQL depreciated after August 7,2016. What are you going to do if you have used FQL to get facebook like / share count in your webpage. This trick will get you those numbers without using any app. This is the best alternative to get facebook like / share count after fql depreciation.

0 comments / August 31, 2016

What is binary safe functions in php

In PHP, Some functions are marked as binary safe functions. It means that the functions works correctly even when you pass binary data. Ex: A string containing non-ascii bytes, null bytes etc..

2 comments / July 22, 2016

Solved: Disable google weblight for your website

Google weblight is a google service, which shows the compressed view of the webpages listed in the search results when a slow network is detected. It removes websites default styles and js files, So user can view the webpage much quicker. But it can be disabled by setting cache control header to no transform.

0 comments / July 17, 2016

Get string between parentheses or brackets

We can easily get the string between parentheses or brackets using regular expression. This regular expression can be applied in any programming language / scripts like php, javascript,java,perl,python,c#,asp etc.

0 comments / July 14, 2015

What is sessions in php

Sessions are simple arrays used to store some information and the values can be used throught the project / website