Work with external php

Discussion in 'PHP' started by tomzx, Mar 19, 2006.

  1. #1
    I'm currently working on a script which would be called from another website.

    I'd need it to be passing some info such as the page url + it would also contain other predefined variable by me.

    How could I "initialise" a script like this:
    "http://www.domain.com/script.php?var1=xa&var2=xb&url=currurl)

    without using any php (it would be with javascript so that non-php website can use it)
     
    tomzx, Mar 19, 2006 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You might try actually explaining what you would like to accomplish so that someone could help you.
     
    exam, Mar 19, 2006 IP
  3. onlyican.com

    onlyican.com Peon

    Messages:
    206
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sounds like XML feeds would be best for you.

    Most hosting does not allow for scripts to be called on another website, pages yes, but scripts no.
     
    onlyican.com, Mar 20, 2006 IP
  4. tomzx

    tomzx Peon

    Messages:
    385
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, I know explanations were kinda lame but I got my way through it. Thanks anyway.

    I was just looking for some way to link to my php script so it would actually get parsed. So I used an image with a width and height of 0.
     
    tomzx, Mar 20, 2006 IP
  5. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No problem, now that you have it figured out, I understand what you were looking for. An alternative would be a Javascript onLoad event, but using an image is simpler and wouldn't depend on Javascript being enabled (although some users browse without images too).
     
    exam, Mar 20, 2006 IP