Skip to content

Instantly share code, notes, and snippets.

Avatar

Stanislaw V Smetanin stansmet

View GitHub Profile
View unserialize.php
<?php
$str = <<<STR
a:2:{i:0;O:8:"stdClass":13:{s:12:"cart_item_id";s:2:"74";s:7:"cart_id";s:1:"1";s:3:"nid";s:3:"283";s:3:"qty";s:1:"3";s:7:"changed";s:10:"1358986013";s:4:"data";a:2:{s:9:"shippable";s:1:"1";s:6:"module";s:10:"uc_product";}s:3:"vid";s:3:"283";s:5:"title";s:12:"Торшер";s:4:"cost";s:7:"0.00000";s:5:"price";s:11:"90000.00000";s:6:"weight";s:1:"0";s:6:"module";s:10:"uc_product";s:5:"model";s:20:"Light Show 9982TL-2L";}i:1;O:8:"stdClass":13:{s:12:"cart_item_id";s:2:"75";s:7:"cart_id";s:1:"1";s:3:"nid";s:3:"980";s:3:"qty";s:1:"1";s:7:"changed";s:10:"1358986013";s:4:"data";a:2:{s:9:"shippable";s:1:"1";s:6:"module";s:10:"uc_product";}s:3:"vid";s:3:"980";s:5:"title";s:12:"Люстра";s:4:"cost";s:7:"0.00000";s:5:"price";s:10:"4550.00000";s:6:"weight";s:1:"0";s:6:"module";s:10:"uc_product";s:5:"model";s:14:"Blitz L1729-46";}}
STR;
print_r(unserialize(urldecode($str)));
?>
View .siegerc
# Updated by Siege 2.72, July-07-2012
# Copyright 2000-2007 by Jeffrey Fulmer, et al.
#
# Siege configuration file -- edit as necessary
# For more information about configuring and running
# this program, visit: http://www.joedog.org/
#
# Variable declarations. You can set variables here
# for use in the directives below. Example: