Форум: Форум PHPФорум ApacheФорум Регулярные ВыраженияФорум MySQLHTML+CSS+JavaScriptФорум FlashРазное
Новые темы: 0000000
MySQL на примерах. Авторы: Кузнецов М.В., Симдянов И.В. PHP 5/6. В подлиннике. Авторы: Кузнецов М.В., Симдянов И.В. Объектно-ориентированное программирование на PHP. Авторы: Кузнецов М.В., Симдянов И.В. MySQL 5. В подлиннике. Авторы: Кузнецов М.В., Симдянов И.В. PHP. Практика создания Web-сайтов (второе издание). Авторы: Кузнецов М.В., Симдянов И.В.
ВСЕ НАШИ КНИГИ
Консультационный центр SoftTime

Форум PHP

Выбрать другой форум

 

Здравствуйте, Посетитель!

вид форума:
Линейный форум Структурный форум

тема: unserialize
 
 автор: Шим   (27.04.2009 в 16:43)   письмо автору
 
 

У меня проблема с этим Дьяволом ! :)

Notice: unserialize() [function.unserialize]: Error at offset 2256 of 3765 bytes in .... 

Это что значит, что данные не поддверграются разкодированию ???
и вобще как быть???

  Ответить  
 
 автор: cheops   (27.04.2009 в 17:09)   письмо автору
 
   для: Шим   (27.04.2009 в 16:43)
 

У вас серилизуемые данные не содержат уже серилизованные ранее строки или какие-то бинарные последовательности?

  Ответить  
 
 автор: ШИМ   (27.04.2009 в 17:09)   письмо автору
 
   для: Шим   (27.04.2009 в 16:43)
 

Вроде правильные данные для ансериализации -

a:14:{s:19:"hs_position_primary";s:1:"3";s:21:"hs_position_secondary";
s:1:"4";s:17:"hs_uniform_number";s:1:"8";s:13:"
hs_team_level";s:7:"Varsity";s:9:"gpa_scale";s:3:"4.0";
s:18:"ncaa_clearinghouse";s:1:"Y";s:9:"biography";s:2026:
"My name is Kelsey Keil and I am a 6' 1" junior at 
Palisades High School in Pacific Palisades, California. I 
am 16 years old and I have been playing volleyball for two 
years now. I come from a very athletic family. One of my 
uncles started for 4 years for the University of Utah 
football team. Another uncle played in the NFL for 10 years 
for the Seattle Seahawks. My brother, who is 6' 7", was 
actively recruited for college football. Like many Samoans, 
I am very tall, athletic, mentally strong, physically 
tough, determined, and excited about volleyball. Before I 
tried out for my high school volleyball team I was an avid 
basketball player and I made the Varsity team in my 
freshman year. I used to think basketball was my one and 
only love. But that has changed -- I live and breathe 
volleyball now! I have been on my high school Varsity 
volleyball team for two years. This school year my team won
 the Los Angeles All City Championships. At the beginning 
of our season we took first place at the Venice Volleyball
 Tournament. I am currently playing club volleyball for 
Sports Shack, a very reputable club in Beverly Hills, 
California. Because I have only been playing volleyball for 
a few years I realize I have so much more to learn. But I 
know I will be an asset to any team because I am eager to 
learn and I will soak up every bit of information and bring 
it all to the court. I am extremely coachable with an 
excellent attitude and I get along very well with my peers 
and coaches. I am ready to be developed as a top college 
player. I maintain a good grade point average and have 
taken and currently am taking honors courses in English and 
History. I am just as interested in doing well academically 
in college, as I am in doing well athletically. I am really
 looking forward to going to college where I hope to excel 
in both. PLEASE VIEW MY VOLLEYBALL CLIPS AT: http://
www.youtube.com/watch?v=GkWMRiz2Jhg OR go to 
www.YouTube.com and search for Kelsey Keil. Thank 
you.";s:11:"award_notes";s:210:"State Quarter Finals/Los 
Angeles All City Volleyball Champions 2007. Venice 
Tournament Champions 2007. Several awards in basketball 
from Club basketball, Junior High, and Varsity basketball 
as a Freshman.";s:15:"other_interests";s:71:"Basketball, 
Swimming, Hiking, Dirt Bike Riding, Surfing, Snow 
Boarding.";s:15:"tourn_attending";s:48:"Las Vegas 
Invitational 2008, Reno Festival 
2008";s:18:"hs_academic_awards";s:80:"Deans Honor Roll and 
Principal's List in 9th, 10th and 1st Semester 11th 
grades.";s:13:"family_alumni";s:383:"My father attended the 
University of Oregon, Honors Program, and then went on to 
law school at Boston University. My brother is currently 
attending attended Cal Poly. One of my uncles received a 
Bachelors at Utah State Unversity, a Masters at Indiana 
Unversity, and a Doctors at USC; another uncle attended BYU
 in Provo, Utah; and another uncle attended the University 
of Utah.";s:12:"family_notes";s:252:"My brother is 6'7" and
 was actively recruited for college football; an uncle 
played for the Seattle Seahawks for 10 years and before 
that played football for BYU in Provo, Utah; another uncle 
played for the University of Utah football team for 4 
years.";s:17:"community_service";s:277:"I will be a 
Counselor in Training this summer for Camp Discovery where 
I will be working closely with special needs children. This 
will be full-time community service project for me and 
although it will take up my entire summer I am really 
looking forward to this experience. ";}

  Ответить  
 
 автор: cheops   (27.04.2009 в 17:15)   письмо автору
 
   для: ШИМ   (27.04.2009 в 17:09)
 

Если не сложно прикрепите в виде файла.

  Ответить  
 
 автор: ШИМ   (27.04.2009 в 17:18)   письмо автору
3.6 Кб
 
   для: cheops   (27.04.2009 в 17:15)
 

вот. Пасибо! )

  Ответить  
 
 автор: cheops   (29.04.2009 в 10:43)   письмо автору
 
   для: ШИМ   (27.04.2009 в 17:18)
 

Хм... у меня даже сообщение об ошибке не выводит. А нет возможности привести скрипт, генерирующий исходный массив - в нем точно нет серилизованных данных?

  Ответить  
 
 автор: zavragnov   (29.04.2009 в 18:12)   письмо автору
 
   для: ШИМ   (27.04.2009 в 17:09)
 

У меня была подобная проблема, все дело было в экранировании кавычек


Возможно вот камень предкновения

s:252:"My brother is 6'7" and 
 was actively recruited for college football; an uncle 

  Ответить  
Rambler's Top100
вверх

Rambler's Top100 Яндекс.Метрика Яндекс цитирования