note 95558 added to function.fgetcsv
| From: | radiofranky at gmail dot com | Date: | Fri, 08 Jan 2010 22:20:47 +0000 |
| Subject: | note 95558 added to function.fgetcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164800@lists.php.net to get a copy of this message | ||
I would like to read a cvs file which includes the following fields and store them into an array.
I'm a noob in php and your help is appricated.
this is what I would like to have. Thanks
$data = array(
// General Posting Settings
'forum_id' => 2, // The forum ID in which the post will be placed.
(int)
'topic_id' => 0, // Post a new topic or in an existing one? Set to 0
to create a new one, if not, specify your topic ID here instead.
'icon_id' => false, // The Icon ID in which the post will be
displayed with on the viewforum, set to false for icon_id. (int)
// Defining Post Options
'enable_bbcode' => true, // Enable BBcode in this post. (bool)
'enable_smilies' => true, // Enabe smilies in this post. (bool)
'enable_urls' => true, // Enable self-parsing URL links in this post.
(bool)
'enable_sig' => true, // Enable the signature of the poster to be
displayed in the post. (bool)
// Message Body
'message' => $message, // Your text you wish to have submitted.
It should pass through generate_text_for_storage() before this. (string)
'message_md5' => md5($message),// The md5 hash of your message
// Values from generate_text_for_storage()
'bbcode_bitfield' => $bitfield, // Value created from the
generate_text_for_storage() function.
'bbcode_uid' => $uid, // Value created from the
generate_text_for_storage() function.
// Other Options
'post_edit_locked' => 0, // Disallow post editing? 1 = Yes, 0 = No
'topic_title' => $subject, // Subject/Title of the topic. (string)
// Email Notification Settings
'notify_set' => false, // (bool)
'notify' => false, // (bool)
'post_time' => 0, // Set a specific time, use 0 to let submit_post()
take care of getting the proper time (int)
'forum_name' => '', // For identifying the name of the
forum in a notification email. (string)
// Indexing
'enable_indexing' => true,
----
Server IP: 69.147.83.197
Probable Submitter: 65.219.4.8
----
Manual Page -- http://www.php.net/manual/en/function.fgetcsv.php
Edit -- https://master.php.net/note/edit/95558
Del: integrated -- https://master.php.net/note/delete/95558/integrated
Del: useless -- https://master.php.net/note/delete/95558/useless
Del: bad code -- https://master.php.net/note/delete/95558/bad+code
Del: spam -- https://master.php.net/note/delete/95558/spam
Del: non-english -- https://master.php.net/note/delete/95558/non-english
Del: in docs -- https://master.php.net/note/delete/95558/in+docs
Del: other reasons-- https://master.php.net/note/delete/95558
Reject -- https://master.php.net/note/reject/95558
Search -- https://master.php.net/manage/user-notes.php