...

View Full Version : PHP (convert image to thumbnail)



deshi2003
03-14-2009, 05: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.

mlseim
03-14-2009, 06: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:
http://www.sim-php.info/users-online-script.php

An example of "usersonline" class is found here,
it tells how many "souls" are currently viewing the site:
http://www.tormented.tv

Works great, and easy to use.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum