note 95558 rejected from function.fgetcsv by danbrown

From: Date: Fri, 08 Jan 2010 22:22:03 +0000
Subject: note 95558 rejected from function.fgetcsv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164801@lists.php.net to get a copy of this message
Note Submitter: radiofranky at gmail dot com ---- 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,

« previous php.notes (#164801) next »