Archive for the ‘PHP’ Category

Page 1 of 212

PHP Fatal Error Maximum Execution Time Issue & htaccess

PHP Fatal Error Maximum Execution Time Issue & htaccess
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 ... Full story
Tags: ,

How to: Setup Multiple Virtual Hosts in WAMP Server

How to: Setup Multiple Virtual Hosts in WAMP Server
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 ... Full story

Knowing $_SERVER PHP Variable in a better way

Knowing $_SERVER PHP Variable in a better way
$_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 ... Full story

RESTful Web Service tutorial: An Introduction for beginners

RESTful Web Service tutorial: An Introduction for beginners
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 ... Full story

Smarty templates: Creating smarty custom functions

Smarty templates: Creating smarty custom functions
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 ... Full story

Twitter like N min/sec ago timestamp in PHP/MySQL

Twitter like N min/sec ago timestamp in PHP/MySQL
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 ... Full story

Gravatar: Manage your user avatars for free

Gravatar: Manage your user avatars for free
While working on one of the application, I had to manage users who logged in to the application and manage their details. In order to manage user's avatar, I had to create a form where user can upload a picture and this photo will get stored on server. Imagine as a user you have to manage ... Full story

15 very useful PHP code snippets for PHP developers

15 very useful PHP code snippets for PHP developers
Following are list of 15 most useful PHP code snippets that a PHP developer will need at any point in his career. Few of the snippets are shared from my projects and few are taken from useful php websites from internet. You may also want to comment on any of the code or also you can ... Full story

Generating Tag cloud with PHP and MySQL

Generating Tag cloud with PHP and MySQL
The basic idea this time is to present a way to form a tag cloud from user input text and text entered in the past. A tag cloud is a visual depiction of user-generated tags, or simply the word content of a site, used typically to describe the content of web sites. for this we will create an HTML form that will accept user text & also ... Full story

Tutorial: File upload in PHP, Securing the things.

Tutorial: File upload in PHP, Securing the things.
Usually users upload their file to a server through a web form as shown below: The HTML form looks something like this: Filename: ... Full story
Page 1 of 212
Copyright © 2010 ViralPatel.net. All rights reserved.