Re: [PHP] PHPExcel

2011-11-29 Thread Adam Balogh
Hi, *Heres the documentation:* http://phpexcel.codeplex.com/releases/view/45412#DownloadId=212183 In user doc: *4.2 Reading Only Named WorkSheets from a File* * * and you can get all the sheet names: http://www.auditbureau.org.au/a/Documentation/API/PHPExcel/PHPExcel.html#methodgetSheetNames

Re: [PHP] PHPExcel

2011-11-29 Thread Ege Sertçetin
Wish I had heard PHPExcel before. I'm using a class to read excel files. Ege. Alinti Floyd Resler Does anyone have much experience with PHPExcel? I'm having difficulties in getting multiple sheet workbooks to work properly. I haven't been able to find any practical examples. Thanks!

[PHP] PHPExcel

2011-11-28 Thread Floyd Resler
Does anyone have much experience with PHPExcel? I'm having difficulties in getting multiple sheet workbooks to work properly. I haven't been able to find any practical examples. Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
Thanks Jessen/Marc, though the user provided format can be in xls, xlsx, or csv. So i need a solution to support all formats. Thanks for the ideas shiplu I'll get with the team and see if there's anything there we aren't trying. Chris. On Mon, Oct 4, 2010 at 3:01 PM, shiplu wrote: > On Tue,

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread shiplu
On Tue, Oct 5, 2010 at 12:39 AM, chris h wrote: > I'm currently working on a project that requires the parsing of excel files. >  Basically the user uploads an excel file, and then a script needs to save a > row in a Postgres database for each row in the excel file.  The issue we are > having is t

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread Marc Guay
I use this: http://code.google.com/p/php-csv-parser/ No idea if it's any better than your current solution. I presume you've tried extending PHP's memory limit? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread Per Jessen
chris h wrote: > I'm currently working on a project that requires the parsing of excel > files. Basically the user uploads an excel file, and then a script > needs to save a row in a Postgres database for each row in the excel > file. The issue we are having is that when we task PHPExcel with >

[PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
I'm currently working on a project that requires the parsing of excel files. Basically the user uploads an excel file, and then a script needs to save a row in a Postgres database for each row in the excel file. The issue we are having is that when we task PHPExcel with parsing an excel file with

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
Shawn McKenzie wrote: On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote: GOT IT!!! I changed my code to the following: $sql = "SELECT * FROM brev_pending_summary_detail WHERE name = '$name_code'"; if (!empty($case_age)) { $sql.=" AND case_age_group = '$case_age'"; } if (!empty($case_cat))

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
Dan Shirah wrote: GOT IT!!! I changed my code to the following: $sql = "SELECT * FROM brev_pending_summary_detail WHERE name = '$name_code'"; if (!empty($case_age)) { $sql.=" AND case_age_group = '$case_age'"; } if (!empty($case_cat)) { $sql.=" AND case_category = '$case_cat'"; } if (

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote: GOT IT!!! I changed my code to the following: $sql = "SELECT * FROM brev_pending_summary_detail WHERE name = '$name_code'"; if (!empty($case_age)) { $sql.=" AND case_age_group = '$case_age'"; } if (!empty($case_cat)) { $sql.=" AND case_ca

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
Dan Shirah wrote: UGH! I am now constantly getting an error of "PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689" Is there a way to continuously write to the file and avoid getting this error? On 7/3/08, Dan Shirah <[EMAIL PROTECTED]>

Re: [PHP] PHPExcel

2008-07-03 Thread Dan Shirah
I changed the max memory limit to 512MB and the max timeput to 60... I'm trying to export a report that only has 3,600 rows and it still exceeds my memory size/timeout. any suggestions that I could make to my code to make it more efficient and not use up so much memory? On 7/3/08, Mario Guenter

Re: [PHP] PHPExcel

2008-07-03 Thread Mario Guenterberg
On Thu, Jul 03, 2008 at 02:36:18PM -0400, Dan Shirah wrote: > UGH! > > I am now constantly getting an error of "PHP Fatal error: Allowed memory > size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689" > > Is there a way to continuously write to the file and avoid getting this

Re: [PHP] PHPExcel

2008-07-03 Thread Richard Heyes
Richard Heyes wrote: *doh* I took for granted someone else had the date right... I rarely know what day it is :) It's not often I know what day it is... :-) Oops, sorry, I read your message wrong. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www

Re: [PHP] PHPExcel

2008-07-03 Thread Richard Heyes
*doh* I took for granted someone else had the date right... I rarely know what day it is :) It's not often I know what day it is... :-) -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPExcel

2008-07-03 Thread Richard Heyes
But this isn't a day of celebration for you guys, Richard, to be sure. Depends how you look at it. My passing out parade (Navy not booze) was on the 4th July. Do you all just ignore the day, or do you hold some kind of anti-celebration? Well for me personally it's just another day. Can't s

Re: [PHP] PHPExcel

2008-07-03 Thread Dan Shirah
UGH! I am now constantly getting an error of "PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689" Is there a way to continuously write to the file and avoid getting this error? On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > GOT IT!!

Re: [PHP] PHPExcel

2008-07-03 Thread Dan Shirah
GOT IT!!! I changed my code to the following: $sql = "SELECT * FROM brev_pending_summary_detail WHERE name = '$name_code'"; if (!empty($case_age)) { $sql.=" AND case_age_group = '$case_age'"; } if (!empty($case_cat)) { $sql.=" AND case_category = '$case_cat'"; } if (!empty($case_status)

Re: [PHP] PHPExcel

2008-07-03 Thread Robert Cummings
On Thu, 2008-07-03 at 16:36 +0100, Richard Heyes wrote: > >> Happy 4th of July! > > > > How did you know it was my sisters birthday today? Been an exciting > > week, first Canada's birthday was on Monday, now my sister's birthday > > today. What a thrill ride. > > Isn't it the 3rd? *doh* I took

Re: [PHP] PHPExcel

2008-07-03 Thread Dan Shirah
So how would I go about getting each result from my query into the columns/rows? Should I do my query, and then assign the first column to an array, the second to another array, etc? And then try to loop it using $i to count each row? And just FYI, I put Happy 4th (even though today is the 3rd)

RE: [PHP] PHPExcel

2008-07-03 Thread Boyd, Todd M.
> -Original Message- > From: David Giragosian [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2008 11:19 AM > To: php-general@lists.php.net > Subject: Re: [PHP] PHPExcel > > On 7/3/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > > Richard Heye

Re: [PHP] PHPExcel

2008-07-03 Thread David Giragosian
On 7/3/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Richard Heyes wrote: > >> Happy 4th of July! >>> >>> How did you know it was my sisters birthday today? Been an exciting >>> week, first Canada's birthday was on Monday, now my sister's birthday >>> today. What a thrill ride. >>> >> >> I

Re: [PHP] PHPExcel

2008-07-03 Thread Shawn McKenzie
Richard Heyes wrote: Happy 4th of July! How did you know it was my sisters birthday today? Been an exciting week, first Canada's birthday was on Monday, now my sister's birthday today. What a thrill ride. Isn't it the 3rd? It is in the great Republic of Texas. -Shawn -- PHP General Mailin

Re: [PHP] PHPExcel

2008-07-03 Thread Richard Heyes
Happy 4th of July! How did you know it was my sisters birthday today? Been an exciting week, first Canada's birthday was on Monday, now my sister's birthday today. What a thrill ride. Isn't it the 3rd? -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http:/

Re: [PHP] PHPExcel

2008-07-03 Thread Robert Cummings
On Thu, 2008-07-03 at 08:59 -0400, Dan Shirah wrote: > Happy 4th of July! How did you know it was my sisters birthday today? Been an exciting week, first Canada's birthday was on Monday, now my sister's birthday today. What a thrill ride. >:) Cheers, Rob. > I am having a little bit of a proble

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
Dan Shirah wrote: Jim, I placed it above like you said, but i get the same result. I think I need to do something like the below: if(!empty($query)) { while ($row = ifx_fetch_row($query)) { for ($i = 3; $i <= 50; $i++) { $stat_year = $row['stat_year']; $stat_month = $row['stat_month']; $name

Re: [PHP] PHPExcel

2008-07-03 Thread Dan Shirah
Jim, I placed it above like you said, but i get the same result. I think I need to do something like the below: if(!empty($query)) { while ($row = ifx_fetch_row($query)) { for ($i = 3; $i <= 50; $i++) { $stat_year = $row['stat_year']; $stat_month = $row['stat_month']; $name = $row['_name']; $

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
Dan Shirah wrote: Happy 4th of July! I am having a little bit of a problem using PHPExcel. I think I'm doing everything right but apparently not! I am basically trying to output results of a query to Excel using PHPExcel. My query works fine, my variables are being passed correctly, my database

[PHP] PHPExcel

2008-07-03 Thread Dan Shirah
Happy 4th of July! I am having a little bit of a problem using PHPExcel. I think I'm doing everything right but apparently not! I am basically trying to output results of a query to Excel using PHPExcel. My query works fine, my variables are being passed correctly, my database connection is fine.