ID:               45738
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ajai73 at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Streams related
 Operating System: vista 32
 PHP Version:      4.4.8
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.


Previous Comments:
------------------------------------------------------------------------

[2008-08-07 01:21:57] ajai73 at hotmail dot com

Description:
------------
i have an error when loading csv widget on my site. 
-partial widget
-navbar not show

Error state.
Warning: fopen(/path_to/uploads/content.csv) [function.fopen]: failed
to open stream: No such file or directory in
/mnt/w0500/d41/s13/b02e8f66/www/lnaelite.org/widget/libs/Content.php on
line 6

Warning: fgetcsv(): supplied argument is not a valid stream resource in
/mnt/w0500/d41/s13/b02e8f66/www/lnaelite.org/widget/libs/Content.php on
line 7

Warning: fclose(): supplied argument is not a valid stream resource in
/mnt/w0500/d41/s13/b02e8f66/www/lnaelite.org/widget/libs/Content.php on
line 18








Reproduce code:
---------------
<?

        function getCsv($parse) {
        
                $i = 0;
                $handle = fopen ($parse,"r");
                while($data = fgetcsv ($handle, 1000, ",")) {
                        if ($i == 0) { 
                        $key_arr = $data; 
                        }
                        reset($key_arr);
                        while(list($index,$name) = each($key_arr)) { 
                                $temp_arr[$name] = $data[$index]; 
                        }
                        $result[$i] = $temp_arr;
                        $i++;
                }
                fclose ($handle);
        
                return $result;
        }


Expected result:
----------------
no database required for widget.
ftp widget files to writable dir/. 
(use excel docs. 
widget appears fully functional.



Actual result:
--------------
widget functional with basketball stats.
roster. images. 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45738&edit=1

Reply via email to