[PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal

Joshua E Minnie wrote:



   while(!feof($fp)) {
 $temp = fgetcsv($fp, 1024, :);
 $event_list[$i] = 
$event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$temp[6],$temp[7],$temp[8]);
 $i++;
   }


Without seeing more of the code, I can't say for certain, but I suspect 
that instead of $event_object-init you need to call $this-init  Does 
that do the trick?

Wait - I looked above  $event_object = new event()  What is the class 
definition for event?

Could you send more code?

Michael Kimsal
http://wwwphphelpdeskcom
734-480-9961


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie

Michael Kimsal wrote:
 Joshua E Minnie wrote:



while(!feof($fp)) {
  $temp = fgetcsv($fp, 1024, :);
  $event_list[$i] =
$event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$t
emp[6],$temp[7],$temp[8]);
  $i++;
}


 Without seeing more of the code, I can't say for certain, but I suspect
 that instead of $event_object-init you need to call $this-init.  Does
 that do the trick?

 Wait - I looked above.  $event_object = new event().  What is the class
 definition for event?

 Could you send more code?

 Michael Kimsal
 http://www.phphelpdesk.com
 734-480-9961

Attached you will find the class definition.  Thanks in advance..

Joshua E Minnie
CIO
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal

Joshua E Minnie wrote:

 Michael Kimsal wrote:
 

 Attached you will find the class definition.  Thanks in advance..
 
 Joshua E Minnie
 CIO
 [EMAIL PROTECTED]
 


What version of PHP are you using?  I took the file and it seemed to 
work OK in PHP 4.0.5.

Michael Kimsal
http://www.phphelpdesk.com
734-480-9961



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie

Michael Kimsal wrote:
 What version of PHP are you using?  I took the file and it seemed to
 work OK in PHP 4.0.5.

 Michael Kimsal
 http://www.phphelpdesk.com
 734-480-9961

I am currently using PHP 4.1.2.  Maybe it's in the file that I am using for
testing, I have attached the code.

Joshua E Minnie
CIO
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie

Michael Kimsal wrote:
 Still works - at least, I'm not getting the error you posted.  Is there 
 something else we may be missing?  What line(s) are causing a problem?
 

On line 21 of the corrected test file that I attached previously.

Joshua E Minnie
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php