Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

polling a db

  • 12-08-2004 10:56am
    #1
    Registered Users, Registered Users 2 Posts: 648 ✭✭✭


    ive a little issue that you may be able to help mw with.

    I have an application that connects to my remote db on my site and inputs data.

    However i need to call some php function on 1/2 fields in that database regularily to process the new additions.

    does anyone know how i would do such a thing.... polling the db?

    Tnx


Comments

  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    Not sure what you mean by polling...

    Maybe you could post a little more info about what exactly you want to do and the programming language and database type...


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    if you know what fields are being updated, you can generate a select and throw that into a function


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Do you mean that your application spits out a couple of bits of information ona regular basis, and that information needs to be automatically inserted into the database on your website?

    Depending on what your application is written in, and what access you have to the source - you could try something like having the application use a telnet session to access a page on the site, sending the information (I am assuming it is plain text?) as variables in the URL

    e.g. application creates a HTTP POST to:
    www.mysite.ie/mypage.php?Info1=my%20info%20part%201&Info2=my%20info%20part%202
    

    mypage.php can then parse the URL, and determine that:
    Info1 = my info part 1
    Info2 = my info part 2
    and process the data accordingly.

    Obviously there are security concerns and limitations on the data size & type etc, but hope this helps....

    Eoin_S


Advertisement