nadeemshafi9 Posted May 18, 2009 Share Posted May 18, 2009 hello guys my ini_parse function returns an array on one server where i output it using print_r (you know what teh format is) now i need to read it into a variable on my other server where i fopen this page and read the pages contents in order to get it on my other server. so basicaly i need to eval the result of a print_r. or should i be using var_dump i dont know ? or should i be exploding basicaly i need to evaluate the output from a page into an aray $handle = fopen("http://*/*/api.php", "rb"); $contents = stream_get_contents($handle); fclose($handle); echo $contents; // this is a print_r or a var_dump i dont know but i need to eval it now exit; thanks guys Link to comment https://forums.phpfreaks.com/topic/158572-solved-cross-server-ini_parse-array-transmission/ Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 Best thing would be to serialize the array. Link to comment https://forums.phpfreaks.com/topic/158572-solved-cross-server-ini_parse-array-transmission/#findComment-836330 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Author Share Posted May 18, 2009 i have done it, i used serialize and unserialize Link to comment https://forums.phpfreaks.com/topic/158572-solved-cross-server-ini_parse-array-transmission/#findComment-836336 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Author Share Posted May 18, 2009 Best thing would be to serialize the array. i beat you to it, but you would have told me before if it wernt for the fact that all my posts are being stalled to be read by admins. Link to comment https://forums.phpfreaks.com/topic/158572-solved-cross-server-ini_parse-array-transmission/#findComment-836368 Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 Whatever you say buddy. The posts are displayed in chronological order though, and the time stamps on the posts denote when they were submitted, not when they were approved. Link to comment https://forums.phpfreaks.com/topic/158572-solved-cross-server-ini_parse-array-transmission/#findComment-836371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.