cupOfBlue
08-18-2006, 05:05 PM
On one server I have a mysql query pulling data out of a database, and then printing the results. These results are then pulled from another server
$result = implode(file('http://www.fakesite.com/query.php');
the page result is like this - Array ( [index] => 1 [title] => test [author] => [authorEmail] => [filename] => blah [startDate] => 0000-00-00 [expireDate] => 0000-00-00 [priority] => 0 [interesting] => 0 [ap] => 0 [relatedStories] => [tags] => [blurb] => [article] => [sections] => [deprecated] => [hits] => 0 [pageCreated] => 0 [extraAttributes] => [forumPostStatus] => 0 [tagLine] => ) (note that this result would not always contain the same fields)
but it's a string, rather than the array it was on the other page. Is there a way to turn this into the same array it was before, without a long process of replacing items in the string?
$result = implode(file('http://www.fakesite.com/query.php');
the page result is like this - Array ( [index] => 1 [title] => test [author] => [authorEmail] => [filename] => blah [startDate] => 0000-00-00 [expireDate] => 0000-00-00 [priority] => 0 [interesting] => 0 [ap] => 0 [relatedStories] => [tags] => [blurb] => [article] => [sections] => [deprecated] => [hits] => 0 [pageCreated] => 0 [extraAttributes] => [forumPostStatus] => 0 [tagLine] => ) (note that this result would not always contain the same fields)
but it's a string, rather than the array it was on the other page. Is there a way to turn this into the same array it was before, without a long process of replacing items in the string?