Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    74
    Thanks
    2
    Thanked 0 Times in 0 Posts

    PHP (convert image to thumbnail)

    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.

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,378
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    1. Use PHP GD
    See this: http://us2.php.net/manual/en/functio...yresampled.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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •