Posts tagged 'php'
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
Create dynamic variables name in php
We can dynamically create a variable name based on the other variable value! It is a concept called PHP Variable variables. It might be useful at certain cases, lets see how we do it.
Regex check minimum and maximum length
Using Regular expression( Regex ), We can check whether the given string has minimum no. of characters or whether it is inside specified range etc.