NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [PHP] Clicking Script

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-18-2005, 08:01 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Dec 2005
Posts: 186
chronic will become famous soon enoughchronic will become famous soon enough
 



[PHP] Clicking Script


Hi, I am in need for help with a script I am making which does the following:

Someone clicks a personalized link for someone that is created when that person signs up. When the link is clicked, I need it to give the user +1 clicks or something of the sort. The problem I have is I want it made so that the same person can only click the link every 15 minutes.

Anyone have some ideas? I don't have much to offer since I am new but if anyone can point me to some tutorials or something, that would be great.
chronic is offline  
Old 12-18-2005, 08:10 AM   #2 (permalink)
sm
NamePros Regular
Join Date: Oct 2005
Location: India
Posts: 608
sm is just really nicesm is just really nicesm is just really nicesm is just really nice
 



use php cURL for automated clicking of links. use mysql to store usernames/passwords in a table etc . and another table for links (url, etc...), and another table for linking user_ids with urls when a registered user (unique user_id) clicks on a link (unique link_id) this fact (row of information) can be entered into that 3rd table (user-link table with atributes user_id, link_id, click_time).
????: NamePros.com http://www.namepros.com/programming/149147-php-clicking-script.html

before inserting a row, simply issue a select query to check if that particular user_id, link_id combo exists in that table and if it does check to see the click_time ... do the diff between that time and the current time, and if it is greater than some x minutes etc ..... dont insert the new row.. instead put a message that "You have already clicked this link in the past 15 minutes ... bla bla".

the main thing is to click links automatically ... that can be done via the PHP cURL lib.
__________________
My blog (beta)

Bachelor.co.in - Gemstone.co.in
Assets.co.in - PropertyDealers.org
MortgageFirms.org - eLearner.org
sm is offline  
Old 12-18-2005, 08:28 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Dec 2005
Posts: 186
chronic will become famous soon enoughchronic will become famous soon enough
 



Wow, I didn't even think of using the time part. Thanks alot.

But to do that, how would I log the time to do that? I don't think the date() function would work because that does just the date, right?
chronic is offline  
Old 12-18-2005, 12:51 PM   #4 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
PHP Code:
<?php echo date("g:i:s"); ?>
Hours:Minutes:Seconds
Eric is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Great Scripts for Sale With Resale Rights! Zeeble Scripts For Sale 20 01-04-2006 02:39 AM
Huge Xmas script pack sale $5.00 KPR Scripts For Sale 1 12-08-2005 07:25 PM
Huge Script Pack for $5 with Resale Rights dsforsaken Scripts For Sale 32 12-03-2005 09:46 PM
60.000 Templates, scripts, fonts, banners etc. $9.95 atkims Web Development Wanted 19 11-16-2004 10:48 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:47 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger