View Full Version : PHP (convert image to thumbnail)

03-14-2009, 06:59 PM
1. please say how can i convert my image to thumbnail image in php

2. i want to know the name(or number) of user or guest currently accessing mysite . i thought a solution like i would keep an attribute like flag in( USER TABLE) then when user login the attibute(flag) would be set and when logoff the attribute (flag)is off.would this work or is there any good solution. please help me out.

03-14-2009, 07:21 PM
1. Use PHP GD
See this: http://us2.php.net/manual/en/function.imagecopyresampled.php
Scroll through the many examples.

2. Use this free class:

An example of "usersonline" class is found here,
it tells how many "souls" are currently viewing the site:

Works great, and easy to use.