Jump to content

bharan_n

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by bharan_n

  1. I am trying to develop a phpbb forum auto poster. I am able to login but i can't post the content and submit into the phpbb forum. If anyone has any idea or done a phpbb posting.Please post your suggestions here. What are the post fields required while posting to phpbb new topic other than message,subject ,mode. If you know any info please post here. Below is the code which i tried to use. I am definetly making some mistake here. $post_fields1 = array( 'mode' => 'post', 'f' => $forum_id, 'message' => $message, 'subject' => $subject, 'disable_bbcode' => 0, 'disable_smilies' => 0, 'attach_sig' => 1, 'topic_type' => 0, 'topic_time_limit' => 0, 'creation_time' => 1241549667, 'lastclick' => 1241549667, 'form_token' => $form_taken, 'poll_title' => '', 'poll_max_options' => 1, 'poll_length' => 1, 'sid' => $sid2[0], 'post' => 'Submit' ); // $form_taken and sid i tried to get them from the site and tried to post them $ch1 = curl_init(); curl_setopt($ch1, CURLOPT_URL,$lurl); curl_setopt($ch1, CURLOPT_POST, 4); curl_setopt($ch1, CURLOPT_POSTFIELDS, $post_fields1); curl_setopt($ch1,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch1,CURLOPT_COOKIEFILE,"cookie6.txt"); $result1= curl_exec ($ch1); curl_close ($ch1);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.