Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-13-2004, 06:17 AM   #1 (permalink)
XGangstaX
Registered User
 
Join Date: Dec 2004
Posts: 2
XGangstaX is on a distinguished road
need help with making a script

right i want to write a script.
i want it to be able to look at a site, locate certain numbers, and if certain numbers are identified, then it fills in a number of my choice into a field and then press accept

so using example

a page has numbers changing from 1-100,000 every second right, and when number 340 is shown i want the scritp to fill in 5000 into a field and press accept

how can i write a script like that

please help me....
thanks alot everyone
XGangstaX is offline   Reply With Quote
Old 12-13-2004, 06:37 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
do you have any experience with php ? i could help you out with the logic on how to do this, but would you be able to code it?

you could accomplish this with a mix of php and running the script at a set interval with your operating system. ( linux cron job, windows scheduled task )

forgive me if i'm wrong, but i'm assuming you haven't used php before. this is a great place to get help if you are devoted to learning, but any programming language is going to take the desire to learn in which the effort will definately not be worth learning for 1 script that simulates you checking a web page while you are not there.

the logic would be something like this.

- read the page into a variable.
- locate the number by finding a common string to the left and right of it
- check for the number
- if the number matches, then use php's curl library to submit the data back to the site
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Something wrong with the view script redhead Lounge 1 10-11-2004 01:58 PM
running a script at designated time tzarin PHP 5 05-12-2004 07:11 PM
JS Script question M3GAPL3X HTML, XML, Javascript, AJAX 5 04-20-2003 09:21 PM
shell script for ftp Hrqls Linux / BSD / OS X 7 09-20-2002 03:14 AM


All times are GMT -8. The time now is 11:13 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting