Grey_Wolf Posted August 16, 2007 Report Share Posted August 16, 2007 Ir nepiecieshamiiba palaist json_decode() UN json_encode() Uz vecakas versijas par PHP 5.2.xx (preciizaak uz 5.1) Vai ir kaads saskaries ar shadu probleemu? Kaadi varetu buut risinaajumi? --- varbuut ir kaads alternatiivs skripts? (teoretiski Zend Framework , bet tur vinsh ir stipri samudzinaats....), P.S. tiem kas nesaprata par ko ir runa Seit Link to comment Share on other sites More sharing options...
andrisp Posted August 16, 2007 Report Share Posted August 16, 2007 (edited) Turpat skaties komentārus. Iekš pecl arī ir, kas der 4.3.0 versijai. Izskatās, ka vispār neesi pats papētījis. :) Edited August 16, 2007 by andrisp Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 16, 2007 Author Report Share Posted August 16, 2007 Iekš pecl arī ir, kas der 4.3.0 versijai. shito nesmu iepetijis.... A Zendu jau teicu --> deretu ja nebuutu paraak samudzjinaats , gandriiz no serijas Visu vai neko :( Velk liidz daudzs savas klases... Un ir paraak liels Cakaris tiiriit araa lieko (nu nav man vajadziigs teiksim log faila veidoshanas klase utt...) + nebuut ne taa ertaakaa metode (Protams ja vien vinju neizmanto kaa Pamat Frameworku....) A matei Goglei prasot atnaak Paraak daudz liekas drazas (parsvaraa par to ka ieksh PHP 5.2 shaada fiska ir.....) Link to comment Share on other sites More sharing options...
andrisp Posted August 16, 2007 Report Share Posted August 16, 2007 Bet visa tev vajadzīgā informācija ir atrodama jau tevis dotajā linkā. Gan linki uz speciālām klasēm, gan links uz PECL. Link to comment Share on other sites More sharing options...
v3rb0 Posted August 16, 2007 Report Share Posted August 16, 2007 "pure php json encoder" paprasi googlei, pirmais links, plikā php rakstīts brīnums kas encodē/decodē json. gan jau ka darbojs viņš daudz lēnak par pecl extensiju, bet šito vismaz uzlikt var jebkur. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 16, 2007 Author Report Share Posted August 16, 2007 v3rb0 --> Sito vakaraa papeetiishu ... Link to comment Share on other sites More sharing options...
Kristabs Posted August 16, 2007 Report Share Posted August 16, 2007 Tiko šito izmantoju $browser = new BrowserEmulator(); // Class taken from http://www.bitfolge.de/befopen-en.html $file = $browser->fopen($url); $response = $browser->getLastResponseHeaders(); $body = ""; while ($line = fread($file, 1024)) { $body .= $line; } $json = new Services_JSON(); // Class taken from http://mike.teczno.com/JSON/JSON.phps $result = $json->decode($body); //Objekts Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 16, 2007 Author Report Share Posted August 16, 2007 paldies protams, bet $json = new Services_JSON(); // Class taken from http://mike.teczno.com/JSON/JSON.phps$result = $json->decode($body); //Objekts un kuru klasi tavupraat ieteica v3rb0 ? tieshi to pashu (pat links taspats) Laikam pie shii arii naksies palikt :( ar parbaudi ja nav function_exists('json_encode()') tad izmantojam sho.... Link to comment Share on other sites More sharing options...
Recommended Posts