What Is Triggering This Php Error ? 10 Points?
Saturday, December 17th, 2011here’s the error that I get from the code below
Parse error: syntax error, unexpected T_VARIABLE online 11
Code:
$submit_button, ‘twitter_username’ => $twitter_username, ‘twitter_password’ => $twitter_password, ‘tweet’ => $tweet ),$cURL,$cURL_source);
/* Post Message */
if ($form_error == 0)
{ curl_setopt ($cURL, CURLOPT_POST, true);
curl_setopt ($cURL, CURLOPT_POSTFIELDS, $API_query);
list($cURL_status,$twitter_data) = apiRequest($cURL,$cURL_source['post_twee…
if ($cURL_status == 200)
{ $post_ok = 1;
$tweet = parseXML($twitter_data);
$new_status_id = $tweet[0]['status_id']; }
else { $form_error = 5; }
} /* Determine Feedback Response */
$default_response = ”;
if ($form_error < 0)
{ $show_message = ' style="display:none;"'; }
if ($post_ok)
{
$tweet = '';
$default_response =
'Your tweet has been posted. <a href="http://twitter.com/$twitter_userna… }
$form_response = getResponse($form_error,$default_respons…
/* Clean Up */
apiRequest($cURL,$cURL_source['end_ses…
curl_close($cURL);
/* Render Interface */
getHeader($app_title,'css/uar.css');
$tweet = htmlspecialchars($tweet, ENT_QUOTES, 'UTF-8');
$div_info = '
‘;
$html_info = array( ‘title’ => $app_title, ‘url’ => $this_dir, ‘hide_username’ => ”, ‘username’ => htmlspecialchars($twitter_username, ENT_QUOTES, ‘UTF-8′), ‘reset’ => ”, ‘info’ => $div_info, ‘label’ => $submit_button_label, ’show_message’ => $show_message, ‘message’ => $form_response, ’supplemental’ => ”, ‘columns’ => ” );
getInterface($html_info);
getFooter();
?>