Call script from another server.

Discussion in 'PHP' started by jfontestad, Jun 6, 2006.

  1. #1
    I recently moved to a dedicated server, but for some odd strange reason some of the scripts aren't functioning properly on the new server, but are still functioning fine on the old one.

    I'm wondering how can I call that scripts from the old server and have the results displayed on current server?
     
    jfontestad, Jun 6, 2006 IP
  2. jrd1mra

    jrd1mra Peon

    Messages:
    243
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i do it with forms a lot. I just point the action to the old servers domain or ip. But I also make my scripts with limitations to only be used by specific domains or ip addresses so that others cant use them. So if your script is limited to a specific ip or domain you would have to change that before you called it from another server.
     
    jrd1mra, Jun 6, 2006 IP
  3. kLdd15

    kLdd15 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    One of the most common errors is with regard to global variables. If thats the problem, theres an unsafe way to fix it with a few lines on top of each script, but since its ur server you should be able to fix the php.ini urself.
     
    kLdd15, Jun 6, 2006 IP
  4. gwydion

    gwydion Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Dependent on what your script does you can also call your script within an
    or you can include the results in a JavaScript call:

    Of course, the content you put in this way doesn't get indexed.
     
    gwydion, Nov 4, 2007 IP