Jump to content

Archived

This topic is now archived and is closed to further replies.

neds75

serialize/unserialize problem

Recommended Posts

I have problem with serialize/unserilize array of strings.

Actually, it works perfect when I do serialize/unserialize on computers with same OS(linux windown). But when I try to serialize data on linux and unserialize that data on windows(or contrary), I get error(notice). Serialized data are saved in file, no GET/POST or any other data, so magic gpc and magic gpc rantime is not problem(altought it is OFF on both computers).
addslashes/strip slashes is not problem too.

I lost few hours searchng net for this problem, but I wasn't lucky to find anythting interesting.

Is this bug, or maybe problem in some special characters like new lines/CR and so on? If so what woudl be the sollution.

Thanks

Share this post


Link to post
Share on other sites
Your have to post some code to understand what your doing, that we can help ok.

Share this post


Link to post
Share on other sites
Probably line feeds.
You could use a regex to automatically convert the data between platforms if that's the problem, although not very graceful.

Share this post


Link to post
Share on other sites

×

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.