Jump to content

geroi

Newbie
  • Posts

    5
  • Joined

  • Last visited

Everything posted by geroi

  1. Если Бе я знал то наверно уже не мучился! Как мне кажется на UTF-8!
  2. Я тоже решил что дело в кодировке, пробовал перекодировать в UTF-8, windows-1252, windows-1251 через функцию iconv, нечего не помогает =(
  3. Столкнулся вот с такой проблемой, ниже находится скрипт от PayPal который получает данные о платежи, он отлично работает за исключением случаев если у покупателя в анкете данные указаны на русском языке! Скрипт почему-то не воспринимает русский текст и взамен русского текста получает символы ZZZZ. И в результате не может пройти проверку… $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen('www.paypal.com', 80, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets($fp, 1024); if (strcmp($res, "VERIFIED") == 0) $paypal_result = 'done'; elseif (strcmp($res, "INVALID") == 0) $paypal_result = 'error'; } fclose ($fp); } Может кто сталкивался с такой проблемой и знает как её решить!
  4. Спасибо твоя подсказка мне очень помогла, решил задачу таким вот способом: <style> #style1 div { display:inline-block; white-space:nowrap; float:left; } #style1 div.style3 { width:32px; height:32px; visibility:hidden; } #style1 div.style2 { height:32px; display:block; position:static; } </style> <div id="style1"> <div class="style2"> <div class="style3"></div> <div class="style3"></div> <div style="width:64px;height:64px;"></div> <div class="style3""></div> <div class="style3"></div> </div> <div class="style2"> <div class="style3"></div> <div class="style3"></div> <div class="style3"></div> <div class="style3"></div> </div> </div>
  5. Не Могу разместить блоки чтобе они располагались вот так: <style> * { vertical-align: top; margin: 0; padding: 0; zoom: 1; } </style> <div style="width:192px;background:#000;"> <div style="display:inline-block;background:red;width:32px;height:32px"></div> <div style="display:inline-block;background:green;width:32px;height:32px"> </div> <div style="display:inline-block;background:blue;width:64px;height:64px"> </div> <div style="display:inline-block;background:orange;width:32px;height:32px"> </div> <div style="display:inline-block;background:orange;width:32px;height:32px"> </div> <div style="display:inline-block;background:orange;width:32px;height:32px"> </div> </div> А у меня получается только вот так: Буду очень благодарен за помощь!
×
×
  • Create New...

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. See more about our Guidelines and Privacy Policy