homepage Welcome to WebmasterWorld Guest from 54.205.144.54
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Create a pinger url?
where do I start?
ajs83




msg:1266316
 12:46 am on Jun 28, 2005 (gmt 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?

 

Blackie




msg:1266317
 8:06 am on Jun 28, 2005 (gmt 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?

ajs83




msg:1266318
 1:38 am on Jun 30, 2005 (gmt 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.

Blackie




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

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

ajs83




msg:1266320
 7:03 am on Jul 2, 2005 (gmt 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.

ajs83




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

bump

copongcopong




msg:1266322
 4:22 am on Jul 4, 2005 (gmt 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 ...

}

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved