Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Create a pinger url?

where do I start?

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

Junior Member

10+ Year Member

joined:May 29, 2004
posts:158
votes: 0


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?

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

Full Member

10+ Year Member

joined:Mar 29, 2005
posts:203
votes: 0


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?

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

Junior Member

10+ Year Member

joined:May 29, 2004
posts:158
votes: 0


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.

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

Full Member

10+ Year Member

joined:Mar 29, 2005
posts:203
votes: 0


What is the purpose? What are you trying to achive?
7:03 am on July 2, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 29, 2004
posts:158
votes: 0


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.
11:01 pm on July 3, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 29, 2004
posts:158
votes: 0


bump
4:22 am on July 4, 2005 (gmt 0)

Full Member

10+ Year Member

joined:May 9, 2002
posts:241
votes: 0


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 ...

}