Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #16  
Old 13 Apr 2004, 18:17
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
when you read out an object very often, but don't change that object very often
Reply With Quote
  #17  
Old 13 Apr 2004, 18:23
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
can you give me an example, cause im kinda new to this serialize thingy
Reply With Quote
  #18  
Old 13 Apr 2004, 20:49
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Like my forumhome stats cache hack. It gets read from the cache only every 10 minutes on my site (you can set it to whatvere you want) so it's a great place to store it since the information won't change until it gets updated again. Plus, when you unserialize it (read from the cache) it doesn't produce a query.
Reply With Quote
  #19  
Old 05 Oct 2007, 09:46
kafi kafi is offline
 
Join Date: Apr 2004
How do I make querry to filter users according their option in multiple profile field option?.

I need to get all users that have choosed any of first five options out of 17? Some of them may have choosed more than 1 otion!
In admincp you can serach users only like this "option1 and option2 and option3..." but I need to search like this "option1 OR option2 OR option3" (which is impossible with admincp).


a:18:{i:0;s:8:"option1";i:1;s:19:"option2";i:2;s:5 :"option3";i:3;s:15:"option4";i:4;s:21:"option5";i :5;s:15:"";i:6;s:16:"option6";i:7;s:17:"option7";i :8;s:10:"option8";i:9;s:18:"option9";i:10;s:8:"opt ion10";i:11;s:15:"option11 ";i:12;s:14:"option12";i:13;s:7:"option13";i:14;s: 7:"option14";i:15;s:20:"option15";i:16;s:22:"optio n16";i:17;s:3:"option17";}


Thanks!!!!!
Reply With Quote
  #20  
Old 05 Oct 2007, 10:20
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Alternatively, you could add up the values

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


This query should be more efficient.

Option 1 = 1
Option 2 = 2
Option 3 = 4
Option 4 = 8
and so on
Reply With Quote
  #21  
Old 30 Apr 2008, 11:38
kafi kafi is offline
 
Join Date: Apr 2004
Thank you Andreas!

It helped me today again
Reply With Quote
  #22  
Old 25 Oct 2010, 20:50
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Not to resurrect an old thread, but... I have been storing a lot of serialized data lately, and came across a pretty useful web tool to easily view it when needed. Basically This tool enables you to serialize or unserialize arrays (mainly) with several 'serialization' functions : php serialize, json, yaml, and php var_export.

Supposedly also does following:
•unserialization of broken serialized array (recover / repair "php serialize" arrays)
•deep unserialization of serialized serialisation ! (for php serialize)

http://www.unserialize.net/serialize
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:59.

Layout Options | Width: Wide Color: