DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> Tips, Tricks, and Q&A >> Login Script for PHP (DPC)
Pages:  
Showing posts 1 - 19 of 19, (reverse)
AuthorThread
07/26/2005 02:31:11 AM · #1
I am trying to write a utility which logs into DPC using my user/pass
Grabs by current challenge score
Stores it as a value
Check back 20 minutes later
If stored value is different from current value it alerts me.

I have got an idea how to do all of it except I cant find a way to have my script authenticate my user/pass onto DPC.

any ideas?
07/26/2005 02:52:34 AM · #2
surely, if you log in and it saves a cookie, you can then send your script to DPC home and your score will be on the page. How are you grabbing the score? Just simply scraping the page?
07/26/2005 03:00:39 AM · #3
Thing is Im trying to tie the logging into DPC into a perl script.

Grabbing the score by taking the html and scraping it.. yes.
07/26/2005 03:03:52 AM · #4
The login page will use a HTTP POST command. Look at the HTML and find out the form parameter names, then send the with a POST request.
07/26/2005 08:19:50 AM · #5
Originally posted by PaulMdx:

The login page will use a HTTP POST command. Look at the HTML and find out the form parameter names, then send the with a POST request.


Could I get a snippet example? ive been trying no luck
07/26/2005 08:28:04 AM · #6
Isn't it easier to just log in and check the score!?
I mean, if it's going to alert you, you get an alert every 20 minutes (scores always change), therefore, you'll always be on DPC, the same way! LoL
07/26/2005 01:11:24 PM · #7
Hot dog ;)!
Got the perl script loggin into dpc..
Now just need to scape out the challenge name + score
07/26/2005 01:18:29 PM · #8
Originally posted by jseyerle:

Could I get a snippet example? ive been trying no luck

I don't know any PHP I'm afraid, but here's a function I googled that sends data in the format I think you want:

//nf.wh3rd.net/projects/http.inc/
07/26/2005 01:39:56 PM · #9
Originally posted by PaulMdx:

Originally posted by jseyerle:

Could I get a snippet example? ive been trying no luck

I don't know any PHP I'm afraid, but here's a function I googled that sends data in the format I think you want:

//nf.wh3rd.net/projects/http.inc/


Thanks.. got the script to login to dpc..
Now gotta figure out how to rip out the challenge name and my avg score..

perls almost as fun as photography ;)
07/26/2005 01:41:50 PM · #10
Originally posted by scuds:

Isn't it easier to just log in and check the score!?
I mean, if it's going to alert you, you get an alert every 20 minutes (scores always change), therefore, you'll always be on DPC, the same way! LoL


Ah but thats the goal..
Not be on DPC, but have a little pop-up window which is automatically updating me with me scores..

no more logging in required, nor hitting update ;)
07/26/2005 01:49:12 PM · #11
wow, get me a script like that for ribbon winning!
what you say!?
LoL
07/26/2005 03:54:23 PM · #12
I think all this hardcore score tracking is just making people more miserable as they see their scores crash at various points in time - and then head to the forums (not you - just throwing this out there) to complain about it all.

Relax, and enjoy life a little!
07/26/2005 11:54:40 PM · #13
This score tracker I want to write is for fun.
If you have never tried to write stuff in perl to create some useless code then you wouldnt understand.

Its like a puzzle challenge.

The ultimate will to have the little windows track your score like you do with stock prices, you know a little moving graph etc.. who knows if Ill make it that cool.
07/27/2005 12:22:11 AM · #14
Originally posted by jseyerle:

I am trying to write a utility which logs into DPC using my user/pass
Grabs by current challenge score
Stores it as a value
Check back 20 minutes later
If stored value is different from current value it alerts me.

I have got an idea how to do all of it except I cant find a way to have my script authenticate my user/pass onto DPC.

any ideas?


Before going further with this I would recommend contacting the administrators (via Help/Contact) for permission to do so. Technically, the Terms of Use prohibit what you are trying to do (see sections 4.3(iv), 4.6 and 5.7(b)).

Any exceptions would be up to the site administrators (Drew and Langdon).

If nothing else, this will make them aware of the cause of any unusual activity coming from your IP address and afford them the ommportunity to communicate with you if it causes problems with the site.

-Terry
07/27/2005 12:30:05 AM · #15
Originally posted by jseyerle:

This score tracker I want to write is for fun.
If you have never tried to write stuff in perl to create some useless code then you wouldnt understand.


Okay - as long as it's for fun and not misery! :)
07/27/2005 09:22:57 AM · #16
Originally posted by ClubJuggle:

Originally posted by jseyerle:

I am trying to write a utility which logs into DPC using my user/pass
Grabs by current challenge score
Stores it as a value
Check back 20 minutes later
If stored value is different from current value it alerts me.

I have got an idea how to do all of it except I cant find a way to have my script authenticate my user/pass onto DPC.

any ideas?


Before going further with this I would recommend contacting the administrators (via Help/Contact) for permission to do so. Technically, the Terms of Use prohibit what you are trying to do (see sections 4.3(iv), 4.6 and 5.7(b)).

Any exceptions would be up to the site administrators (Drew and Langdon).

If nothing else, this will make them aware of the cause of any unusual activity coming from your IP address and afford them the ommportunity to communicate with you if it causes problems with the site.

-Terry


Cheers.. I asked Langdon for permission.
07/27/2005 10:19:27 AM · #17
Hmm...with a little work, you could get this to send a text to your mobile so you could be updated no matter where you're at.
07/28/2005 02:04:35 AM · #18
Originally posted by JonLud:

Hmm...with a little work, you could get this to send a text to your mobile so you could be updated no matter where you're at.


that would be cool.. but a bit sad ;)
07/28/2005 02:18:47 AM · #19
or you can have your scores paged every few minutes! isn't the update button going too far? ;)
Pages:  
Current Server Time: 04/12/2025 04:13:28 AM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 04/12/2025 04:13:28 AM EDT.