Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Create a pinger url?

where do I start?

     

ajs83

12:46 am on Jun 28, 2005 (gmt 0)

10+ Year Member



I'd like to setup a pinger url, but don't know where to start.

What I'd like to do is as follows. Everytime a new entry is entered into a database (whether entered automatically with URL variables or through a webform) a url is "pinged" with the new information.

For example, say I enter the following items into a database

Entry1 Entry2 Entry3

A url is generated similar to the link below

www.test.com/ping.php?id=Entry1&name=Entry2&town=Entry3

and executes it self by visiting another predefined url with the newly entered information. Where do I begin and what's the best method of accomplishing this?

Blackie

8:06 am on Jun 28, 2005 (gmt 0)

10+ Year Member



What is it exactly that you have problem with?

Generating of url or visiting it (you can use header("Location: http://www.example.com/"); ) for this purpose?

ajs83

1:38 am on Jun 30, 2005 (gmt 0)

10+ Year Member



I don't know how I would set up the code to "ping" the url everytime there is a new item entered into the database.

I know what code to use to actually execute the ping (header location), but not how to execute the command that tells it to do it.

Blackie

7:09 am on Jun 30, 2005 (gmt 0)

10+ Year Member



What is the purpose? What are you trying to achive?

ajs83

7:03 am on Jul 2, 2005 (gmt 0)

10+ Year Member



Everytime a specific action occurs, a url of mine is pinged with the new data which then gets inserted into a database. From there I would like to ping another url with the new database information from that entry.

ajs83

11:01 pm on Jul 3, 2005 (gmt 0)

10+ Year Member



bump

copongcopong

4:22 am on Jul 4, 2005 (gmt 0)

10+ Year Member



try to add your pinger code after the insert part in the database ...

mysql_query("insert .... statement");

if(mysql_insert_id() > 0){

your ping script here ...

}