88 kez görüntülendi
<p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;"><a style="box-sizing: border-box; color: #007bff; text-decoration-line: none; background-color: transparent;" href="https://www.erbilen.net/php-excel/">Şu yazımda</a> php ile nasıl excel dosyası oluşturulacağını göstermiştim. Bu yazımda ise, daha elzem bir konuya değineceğiz. Geçenlerde bir excel dosyasının içinden verileri almam gerekti, araştırırken baktım ki çok kalabalık kodlar var, benim amacım alt tarafı satır satır okuyup verileri almak o kadar. Sonra bir repo’ya denk geldim, Sergey Shuchkin abimiz bir sınıf yazmış bu işlemler için. Basit, kullanışlı, amaca hitap ediyor.</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">Öncelikle dosyaları şuradan temin edin;<br style="box-sizing: border-box;" /><a style="box-sizing: border-box; color: #007bff; text-decoration-line: none; background-color: transparent;" href="https://github.com/shuchkin/simplexlsx">https://github.com/shuchkin/simplexlsx</a> (not: adama star atmayı unutmayın :D)</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">Kullanımı ise çok basit;</p> <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; margin-top: 0px; margin-bottom: 1rem; overflow: auto; color: #212529; background: #f5f5f5; padding: 10px; border-radius: 3px;">if ( $xlsx = SimpleXLSX::parse('test.xlsx') ) { print_r( $xlsx->rows() ); } else { echo SimpleXLSX::parse_error(); }</pre> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #212529; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px;">excel’deki satırları dizi halinde size verecek, seçip istediğinizi kullanabilirsiniz.</p>
Warning: require(/home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/static/comment.php): failed to open stream: No such file or directory in /home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/ilan-detail.php on line 192
Warning: require(/home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/static/comment.php): failed to open stream: No such file or directory in /home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/ilan-detail.php on line 192
Fatal error: require(): Failed opening required '/home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/static/comment.php' (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/mugiwejt/hesap.mugiweb.com/app/view/zhen-e-test-v1/ilan-detail.php on line 192