zora Posted February 5, 2007 Report Share Posted February 5, 2007 Sveiki. Veelos luugts padomu - dabuuju skriptinju, kas excel XML dokumantus paarvers html tabulaa, izmantojot php. tad nu luuk noteesteteeju, likaas, ka viss straadss, te peeksni, man pazinjo, linux serverii vairs vietas nav.. (remote serveri, iireeju ieks serveris.lv). Neko citu neesmu uploadeejis, secinu, ka sitasi skripts man visu aizsitis. Lai to paarbaudiitu, izmetu dazus ateelus atbriivoju, notesteeju veelreiz un atkal tas pats. taa kaa pats neesmu nekaads guru (lai neteiktu, ka galiigs iesaaceejs), luugsu padomu, kur vareetu buut probleema, pie viena, iemetiisu koda gabalu, tikai ceru, ka iisto..Jau ieprieks paldies par atbildi, paldies arii par izvairiisanos "ja nezini, tad nenemies" utt.. :) Kods: <? include_once('class/CExcelXMLTableRead.class'); include_once('class/CExcelXMLTableShowHTML.class'); $ExcelTableRead = new CExcelXMLTableRead('file/test.xml'); // 'file/test.xml' - path to ExcelXML document $ExcelTableRead->loadTable(); // read Excel lists with tables from ExcelXML document $ExcelTableRead->loadStyles(); // read style sheet from ExcelXML document $ExcelTableHTML = new CExcelXMLTableShowHTML(); $ExcelTableHTML->setStyles($ExcelTableRead->getStyles()); // transfers tables array to CExcelXMLTableShowHTML class // ExcelTableRead->getStyles() - return Excel style sheet array $ExcelTableHTML->setTables($ExcelTableRead->getTables()); // transfers style sheet array to CExcelXMLTableShowHTML class // ExcelTableRead->getTables() - return Excel lists with tables array ?> <? // use EXCEL styles $ExcelTableHTML->setActiveStyles( array( 'font_size' => 'off', 'font_family' => 'off', 'font_color' => 'on', 'font_bold' => 'on', 'font_italic' => 'on', 'font_underline' => 'on', 'column_width' => 'off', 'row_height' => 'off', 'text_align' => 'off', 'text_valign' => 'on', 'bg_color' => 'off', 'number_format' => 'on' ) ); // default styles for display table to HTML $ExcelTableHTML->setDefaultStyles( array( 'table_border' => 2, 'table_bordercolor' => '#333333', 'table_cellspacing' => 0, 'table_cellpadding' => 0, 'table_style' => 'border-collapse:collapse;', 'font_size' => '8', 'font_family' => 'Tahoma', 'font_color' => '', 'font_bold' => '', 'font_italic' => '', 'font_underline' => '', 'text_align' => 'center', 'text_valign' => '', 'bg_color' => '#FFFFFF', 'column_width' => '50', 'row_height' => '8', ) ); $ExcelTableHTML->showHTMLExcelTable(); ?> Link to comment Share on other sites More sharing options...
andrisp Posted February 5, 2007 Report Share Posted February 5, 2007 1) Paste.php.lv 2) Paskaties vai skripts gadienā neģenerē failu uz diska. Ja jā, tad pārbaudi vai tie faili tiek izdzēsti, kad skripts beidz darbību. Ja nē, tad skaties dokumentācijā kā to izdarīt. Link to comment Share on other sites More sharing options...
zora Posted February 5, 2007 Author Report Share Posted February 5, 2007 Kur var kodaa redzeet, ka skripts vareetu genereet failus uz diska? varbuu jaapadod .class saturs? include_once('class/CExcelXMLTableRead.class'); include_once('class/CExcelXMLTableShowHTML.class'); Link to comment Share on other sites More sharing options...
andrisp Posted February 5, 2007 Report Share Posted February 5, 2007 Vienkārši paskaties vai kaut kādi lieki faili nemētājās iekš direktorijas pēc skripta izpildes. Paskaties arī temp mapē, piemēram, /tmp. Ja nav pieejas, tad palūdz, lai admins apskatās vai temp mapē nemētājās kādi faili, kuriem īpašnieks esi tu un lai pasaka, cik daudz tie aizņem. Bet kā īsti ir ? Vieta izbeidzas tad, kad palaid skriptu ja ? Pirms tam ir vietas ? Link to comment Share on other sites More sharing options...
zora Posted February 5, 2007 Author Report Share Posted February 5, 2007 Tiesi nocekoju, atbriivoju vietu 1 mb, uploadeeju jaunu test.xml failu ar izmainjaam tabulinjaa(repleisoju veco), palaidu php lapu, kas satureeja manis augsmineeto skriptu, paraadiijaas smuka tabulinja. Peec tam pastos uz servera - viss pilns atkal..... Link to comment Share on other sites More sharing options...
zora Posted February 5, 2007 Author Report Share Posted February 5, 2007 iecekoju /temp mapee arii nekaa nav... Link to comment Share on other sites More sharing options...
Roze Posted February 5, 2007 Report Share Posted February 5, 2007 atbriivoju vietu 1 mb.. palaidu php lapu, kas satureeja manis augsmineeto skriptu, paraadiijaas smuka tabulinja. Peec tam pastos uz servera - viss pilns atkal.....Tas ir kā? Serverim 1Mb brīva vieta tikai? Link to comment Share on other sites More sharing options...
andrisp Posted February 5, 2007 Report Share Posted February 5, 2007 Kvota maziņa droši vien. Link to comment Share on other sites More sharing options...
zora Posted February 5, 2007 Author Report Share Posted February 5, 2007 Koroce skaidrs, kaa refreshoju lapu, taa automaatiski aizpildaas vieta par daziem 10 KB, jo biezaak refresho, jo aatraak aiziet ciet vieta. Kaut ko vins generee, bet ko un kur? Servera admini iztiiriija man serveri, taapeec, bija iespeeja pameeginaat atkal..... Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 6, 2007 Report Share Posted February 6, 2007 Tak pameklē tajā klasē, kur tev tiek kkas rakstīts failos. Link to comment Share on other sites More sharing options...
Recommended Posts