Posts tagged 'php'
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 )
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.
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.
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..
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.
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.
What is sessions in php
Sessions are simple arrays used to store some information and the values can be used throught the project / website