leisure Posted February 16, 2006 Report Share Posted February 16, 2006 gribu siikak izprast output bufferu funkcijau darbiibas principus piem man koda ir: ob_start(); include('dir/dir2/some_module.php'); $txt = ob_get_contents(); ob_end_clean(); ja pareizi sapratu, tad f-ja ob_get_contents() ielade visu some_module.php faila saturu operativaja atminja? ja tiktal ir pareiz, tad vai var kaut ka noteikt cik lielu datu apjoms ir ieladets atminja? Koda gabalinsh ir no modulju sistemas, vai ir kads labaks veids ka veidot modulju sistemu? Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 ob_get_length Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 ob_get_length no manuaalja sapratu, ka f-ja atgriezh simbolu skaitu, kas ir ieksh ob, bets operatiwaja atminja waitad dati neglabajas KB ? Tb man butu jarekjina tas cik KB ir atminja wai ir kads sawadaks weids? Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 Ja tev veikalā piedāvā 1120 gramus siera, tad tu teiksi - NĒ, man obligāti vajag 1,12 kilogramus siera un nevis 1120 gramus siera? Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 Ja tev veikalā piedāvā 1120 gramus siera, tad tu teiksi - NĒ, man obligāti vajag 1,12 kilogramus siera un nevis 1120 gramus siera? :) nju ta beidzot sapratu :) Link to comment Share on other sites More sharing options...
Klez Posted February 16, 2006 Report Share Posted February 16, 2006 atinjaa dati staav baitos Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 Atmiņā dati kā stāv vai kā nestāv ir po! Galvenais ir kā tu tos pats (tavis rakstītais kods) interpretēsi - baiti, wordi, dword, floati, u.t.t. Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 dword? kas tas? Link to comment Share on other sites More sharing options...
Klez Posted February 16, 2006 Report Share Posted February 16, 2006 datu tips ... bubu nu jaa ... tas gan ... bet parasti visas fcijas atgirezh baitus . Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 dword? kas tas? word = 2 baiti double word = dword = 4 baiti bet parasti visas fcijas atgirezh baitus . Kas ir "visas fcijas" un kas ir "parasti"? Link to comment Share on other sites More sharing options...
Klez Posted February 17, 2006 Report Share Posted February 17, 2006 iebuuveetaas php fcijas biju domaajis :) Link to comment Share on other sites More sharing options...
bubu Posted February 17, 2006 Report Share Posted February 17, 2006 Nav gan taisnība. Piemēram funkcija strlen(). Atgriež integeru - 4 baitus, tātad signed dwordu. Nav tur nekāda baita. Par unpack vispār nerunājot.. Link to comment Share on other sites More sharing options...
Klez Posted February 17, 2006 Report Share Posted February 17, 2006 fcijas kas atgriezh izmeeru.. failam/atminjas/diskam etc ... Link to comment Share on other sites More sharing options...
bubu Posted February 17, 2006 Report Share Posted February 17, 2006 Manuprāt mēs runājam par divām dažādām lietām.. Link to comment Share on other sites More sharing options...
Klez Posted February 17, 2006 Report Share Posted February 17, 2006 iespeejams :) .. lab ... mee liekas mieraa :) Link to comment Share on other sites More sharing options...
Recommended Posts