PHP Tutorials, Tips & Tricks
PHP is a widely-used general-purpose scripting language that is especially well-suited for Web development and can be embedded into HTML.
Today almost every website you visit show content in form of thumbnails. Thumbnails are nothing but images displayed next to the content. Be it News website or a blog, displaying images next to content is key to appeal user. Even our blog shows images as thumbnails on home page.A prerequisites to show Thumbnail in a ...
I was trying to start WAMP server on my local machine and strangely it was not getting started! Everytime I tried to click "Start All Services" it just ignored it.I checked Windows Logs under Event Viewer:Control Panel > Administrative Tools > Event Viewer > Windows Logs > ApplicationIt seems the Apache ...
Gmail
has just launched small but really useful feature in Gmail Labs. Dynamic Favicon showing unread email counts directly in your browser tab icon. If your browser window has lots and lots of tabs open at anytime, this might be really a wonderful feature that lets user know ...
Recently a serious security flaw was discovered on one of my webpage where a folder which was intended to be accessed just by admin was open for access to anyone. I somehow ignored that folder as it was lying there for years.Fortunately before those sensitive information could compromised, one of the site follower sent me an email describing the serious flaw in security. I ...
Lot of times it happen that we get some weird error in PHP. One of such errors is a Fatal Error that usually occurs when Uploading big files in PHP.This error has to do something with the Maximum timeout setting. When we upload a large file it may happen that the timeout occurs and result in ...
WAMP, or Windows Apache MySQL PHP has been a very server for lots of PHP developers who uses Windows environment. These are mainly the freelancers who mostly uses laptops as their local development machines. Whatever may be the reason, but when you use WAMP, it becomes difficult to manage multiple application installed in same root.For example ...
$_SERVER array in PHP is very useful in getting lot of information about the PHP script in execution as well as the server/request details. $_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server.Following are few very useful attributes of ...
REST is a term coined by
Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. REST is an acronym standing for Representational State Transfer. Representational State Transfer(REST), a software architecture style used in developing stateless web services. While this style may be used to describe any distributed framework that uses ...
Yesterday
I wrote an article about a php method that can convert normal timestamp into "x Min Ago" like timestamps. I will call these type of timestamps an "agots". Although the PHP method is straight forward in converting unix timestamps to agotimestamps, I thought of implementing a custom function in smarty that can be used ...
While working on one of the forum project, I had to print the timestamp of a topic in format "N Seconds ago" or "X minutes ago".! The Web 2.0 world have changed the way these dates are displayed. The days are gone when the timestamps were displayed like "12 Jan 2003 10:50 pm"!!! A paradigm shift ...