Jump to content

Longlands

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Longlands's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a script that needs to run a routine on a different server. The reason is so that I can update that small part of the code without users needing to install a script upgrade every so often. It is easy enough to pass variables to the remote script: include 'http://www.remotedomain.com/script.php?var=$var The remote script calculates and creates an array, but try as I might, I haven't been able to get it to send the array back. I've tried using return($x); in accordance with what I've read in the PHP Manual, but it didn't seem to work. Is this even possible? Martin
  2. I see! And it works perfectly. Many thanks, indeed. Martin
  3. Thinking about it, a txt file may not work either as several people could be accessing the script simultaneously, and the variables would be different for each user.
  4. Unfortunately, sessions and cookies don't work because the second script is on a different domain. Also, I don't think POST is suitable here because there is no user input to click on a submit button. I'm thinking that writing a text file may be the answer, but it isn't very elegant. Martin
  5. At the moment I'm passing a bunch of variables from a script on one server to a script on a different server with header("location: http://www.newurl.com?var=$var") and then grabbing them with $vars = $_GET['var'] at the destination. It works fine, but the list of passed variables are displayed in the browser's address bar. Is there a way to pass variables to a script on a different domain without making them visible? Thanks, Martin
  6. I'd like to know if this is possible - but don't even know how to go about looking it up! I have a script that runs fine on one of my domains, but for technical reasons I'd like it to call a function that resides on a different domain. I can see how I can simply divert the script on server 'a' to the new file on server 'b', but can't see how to get the server 'b' file to return with a value back to the point in the server 'a' script where it left off. Including the remote function won't work because I really need it to be run from a different IP address. It is entirely possible that I'm missing the obvious, but can anyone help me preserve the little remaining hair that I have? Thanks! Martin
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.