| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | [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. |
| |
| | #2 (permalink) |
| NamePros Regular | 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). 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 |
| |
![]() |
| 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 01:39 AM |
| Huge Xmas script pack sale $5.00 | KPR | Scripts For Sale | 1 | 12-08-2005 06:25 PM |
| Huge Script Pack for $5 with Resale Rights | dsforsaken | Scripts For Sale | 32 | 12-03-2005 08:46 PM |
| 60.000 Templates, scripts, fonts, banners etc. $9.95 | atkims | Web Development Wanted | 19 | 11-16-2004 09:48 AM |