Category : PHP

PHP: trim spaces in the middle of a string

When you let users input text in a textfield or input box it is always a good idea to use trim function to remove spaces form the beginning or the

Continue reading

Unable to find the wrapper “https”

Today I had to put a simple script on one of my hosting server where a “Facebook Login” button was available for login. However when I had to run it

Continue reading

“Progress bar” for long running cron scripts in PHP

Long running scripts can be a pain if you don’t know how much will be running. If you need to see a progress and flush() or ob_flush() do not work

Continue reading