twsowerby Posted January 18, 2009 Share Posted January 18, 2009 Hi Guys, I'm writing a little app and I've reached a stumbling block and could do with you clearing something up for me. I'm passing some variables through a URL to a function on another server. That function then does its business and outputs an array of values. Is there any way of getting the values out of that array back to my server to do with as I please? Apologies if its a stupid question, let me know if you need more details. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/141352-values-in-an-array/ Share on other sites More sharing options...
DarkWater Posted January 18, 2009 Share Posted January 18, 2009 serialize() and unserialize()? Quote Link to comment https://forums.phpfreaks.com/topic/141352-values-in-an-array/#findComment-739855 Share on other sites More sharing options...
.josh Posted January 18, 2009 Share Posted January 18, 2009 You can possibly use curl to send data/receive response. Or you could possibly use file_get_contents and some regex. Depends on what you mean by "That function then does its business and outputs an array of values." Quote Link to comment https://forums.phpfreaks.com/topic/141352-values-in-an-array/#findComment-739860 Share on other sites More sharing options...
twsowerby Posted January 18, 2009 Author Share Posted January 18, 2009 Ok ill elaborate a bit, its an API basically. This: http://www.eve-tool.com/api/class/class.access.php?user=demo&password=demo&skey=abc123&request=Dashboard&userID=127 Returns an array of values based on the variables passed in. How do I get the array created by the functions in that class so that I can manipulate them in my code? Quote Link to comment https://forums.phpfreaks.com/topic/141352-values-in-an-array/#findComment-739898 Share on other sites More sharing options...
.josh Posted January 18, 2009 Share Posted January 18, 2009 http://us3.php.net/manual/en/function.print-r.php#77958 Quote Link to comment https://forums.phpfreaks.com/topic/141352-values-in-an-array/#findComment-739937 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.