Jump to content

diasansley

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

diasansley's Achievements

Member

Member (2/5)

0

Reputation

  1. my req is to convert the pdf(first page) to an image file so far i have a few dll files and a pdftohtml.exe and the below mentioned code. I dnt knw if I am doing it the right way but any help would appreciated. $pdfname = "C:/xampp/htdocs/test/test.pdf"; $htmlfile = "C:/xampp/htdocs/test/testtest.html"; $path_to_lib = "C:/xampp/htdocs/test"; $rtn = exec('C:/xampp/htdocs/test -c -s "'.$pdfname.'" "'.$htmlfile.'"', $ouputted_html); foreach ($ouputted_html as $val){ echo $val . "\n"; } I get no output
  2. $csv_file = './uploads/file_import.csv'; $csvData = $this->csvreader->parse_file($csv_file); $count = 0; $i = 0; $jj = 0; foreach ($csvData as $row1) { if ($row1[1] != "") { if ($row1[2] != "") { foreach ($csvData as $row) { if ($row[3] != "") { echo $row[3]; } else { break; } } } } }
  3. having a problem importing a file having multiple hierarchy levels!! its a csv file the contents look something like this! just need a jump start! thanks the file looks likes this row 1 row2 row3 name1 subj1 abcd efgh subje2 test1 test2 the file has to first import name1 then subj1 then abcd,then efgh then move back to subj2 and so on! Thanks
  4. here is my code it is a js function popup!! for printing the data i get . Now as per the current code if i click on print in the preview it shows me the parent content in the background as well! IS there a way to this! function popUp(){ document.getElementById('light').style.display='block'; document.getElementById('fade').style.display='block'; //var formData = document.getElementById('profile_info').innerHTML; var formData = "<div class='tabconten_1'>"; formData = formData + "<a id='closemenupop' href='javascript:close();' ></a>"; formData = formData + "<div id='logo1'></div></div>"; formData = formData + "<div class='tabconten_1'></div>"; formData = formData + "<div class='tabconten_1'>"+document.getElementById('profile_info').innerHTML+"</div>"; formData = formData + "<div class='tabconten_1'></div>"; formData = formData + "<div class='tabconten_1'></div>"; formData = formData + "<a class='searchbtn1' href='javascript:window.focus();window.print();' >Drucken</a>"; document.getElementById('light').innerHTML = formData ; //popUp_second(); } <div id="light" class="white_content"> </div> <div id="fade" class="black_overlay"></div> Thanks
  5. i am using the csv reader library!! it works great i have a small issue left my csv has the first line as the name of the column !! the csv is read as array like if i have 3 columns it would be used a $row[0], $row[1],$row[2] any help wil be appreciated Thanks
  6. hey im using code igniter 2.0 im currently using the csv reader class to import a csv file to the db!! it works. I want to implement the following when the next import takes place compare the values and then insert. I am trying but the csv reader is returning $feilds[0] in a for loop. i have tried $this->load->library('csvreader'); $csv_file = './uploads/abc.csv'; $csvData = $this->csvreader->parse_file($csv_file); foreach($csvData as $id=>$fields) { $this->db->get('test'); $fields[0]; insert query with the $feilds[0] } thanks
×
×
  • 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.