lazda144 Posted January 21, 2008 Report Share Posted January 21, 2008 kaa sim skriptam uztaisiit lai vins neraada kas uz ko ticis kompreseets?? <? function zipcompressfile($source,$destination,$filename,$level=false) { $dest=$destination.$filename.'.zip'; $mode='wb'.$level; $error=false; echo $source.$filename.' -> '.$dest.'<br>'; if($fp_out=gzopen($dest,$mode)) { if($fp_in=fopen($source.$filename,'rb')) { while(!feof($fp_in)) { gzwrite($fp_out,fread($fp_in,1024*512)); } fclose($fp_in); } else { $error=true; } gzclose($fp_out); } else $error=true; if($error) return false; else return $dest; } $demo_dir = 'r:/AppServ/www/demos/'; // Folder with .dem files $dl_dir = 'r:/AppServ/www/demo/'; // Folder, where to put compressed files $handle = opendir($demo_dir); if ($handle) { while (false !== ($fails = readdir($handle))) { if ( preg_match("/(.*).dem/", $fails, $demo) ) { zipcompressfile($demo_dir, $dl_dir, $fails); } } closedir($handle); } ?> karoce lai neraadiitu r:/AppServ/www/demos/demo-0801210315-de_chateau.dem -> r:/AppServ/www/demo/demo-0801210315-de_chateau.dem.zip Link to comment Share on other sites More sharing options...
andrisp Posted January 21, 2008 Report Share Posted January 21, 2008 Aizkomentē/izdzēš šo: echo $source.$filename.' -> '.$dest.'<br>'; Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 (edited) paskatiijos uzmaniigaak un atradu!! :) echo ''; sorry varat vispaar dzeest so tpiku laukaa !! Edited January 21, 2008 by lazda144 Link to comment Share on other sites More sharing options...
Kavacky Posted January 21, 2008 Report Share Posted January 21, 2008 paskatiijos uzmaniigaakAr to ir jāsāk, johaidī! Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 (edited) es vnk steidzos on nepaspeeju iedzilinaaties pie reizes uzdosu veelvienu jautaajumu , lai naw jaataisa jauns topiks!! kaa iframe var uztaisiit lai vins ienem taa skripta formu kas vinaa ievietots!! piem man ni ipb forums ielikts ar i frame un kaa izdariit lai raamis ienem foruma formu? Edited January 21, 2008 by lazda144 Link to comment Share on other sites More sharing options...
Delfins Posted January 21, 2008 Report Share Posted January 21, 2008 (edited) ieņemt var cietoksni... par ifreima/formas ieņemšanu pirmoreiz dzirdu :) es vnk steidzos tas nav attaisnojums - pirkstus nost. Edited January 21, 2008 by Delfins Link to comment Share on other sites More sharing options...
andrisp Posted January 21, 2008 Report Share Posted January 21, 2008 attiecībā par to iframe resaizošanu, man te viens kodiņš no viena projekta. Esenci izlobi pats: function init_document_iframe() { if (document.getElementById('document_frame') != null) { document.getElementById('document_frame').onload = function() { var frameDoc = null; var frame = this; if (frame.contentDocument) { frameDoc = frame.contentDocument; } else { frameDoc = document.frames['document_frame'].document; } frame.style.height = (frameDoc.body.offsetHeight + 100) + 'px'; } } } Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 Parse error: parse error, unexpected '=' in R:\AppServ\www\f.php on line 5 ???? Link to comment Share on other sites More sharing options...
Lynx Posted January 21, 2008 Report Share Posted January 21, 2008 Pag, tu patiesi met to andrisp kodu iekšā php? Heh, varu pateikt priekšā: tas ir javascripts ;) Un javascripts izpildās client side, tavā gadijumā nav jēgas viņu laist caur php. To tekstu iemet vienkārši iekšā .js failā, includo headeros un pielāgo savām vajadzībām. Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 izveidoju f.js inkluudoju vinu <script type="text/javascript" language="javascript" src="/f.js"></script> tad meeginaju ievietot to forumu bet nekaa :( raada pavisam mazaa lodzinaa <iframe src ="/forums/index.php" border="0" frameborder='0' scrolling='no'> Link to comment Share on other sites More sharing options...
andrisp Posted January 21, 2008 Report Share Posted January 21, 2008 Izpēti to JS vispirms. Bet nu labi, pateikšu priekšā. Pieliec tam ifreimam Id "document_frame" Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 nesanaak man kautkas Link to comment Share on other sites More sharing options...
andrisp Posted January 21, 2008 Report Share Posted January 21, 2008 Tu funkciju vajag arī izsaukt, starpcitu. Un izsaukt viņu vajag pēc ifreima. Link to comment Share on other sites More sharing options...
lazda144 Posted January 21, 2008 Author Report Share Posted January 21, 2008 un kaada funkcija jaizsauc??? Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 21, 2008 Report Share Posted January 21, 2008 init_document_iframe Link to comment Share on other sites More sharing options...
Recommended Posts