SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2011
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    unserialize() issue

    Hello,

    I need to pass data from one website to another. Site A has a page that outputs a serialized array. Site B gets it like that:

    Code:
    $serialized = file_get_contents('http://www.website.com/data');
    Everything works fine but... I can't unserialize the variable. However, if I die($serialized); and copy the content into a string and unserialize it, everything works fine. So no problem with the serialized data itself.

    What could go wrong?


  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I can't unserialize the variable
    What have you tried?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •