We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,752 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Need Help php parse error

**Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/u377251981/public_html/foll.php on line 69
how to fix this error?
please help me...
**

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css" media="all">
@import "style.css";
</style>
<script type="text/javascript">
function countFakes() {document.getElementById("count").innerHTML = document.getElementById("perfis").value.split("n").length;}
</script>
<title> Mass Follow Twitter | @nikoerror</title>
</head>
<body>
<center>
<script src="http://andreykusanagi.googlecode.com/files/pop-up.js" type="text/javascript"></script>
<div id="fbslidebox" style="position: fixed; width: 310px; overflow: hidden; bottom: 5px; right: 5px; background: url(&quot;http://www.scri8e.com/white.gif&quot;) repeat scroll 0% 0% transparent;-moz-border-radius: 15px 15px 15px 15px; border: 3px solid rgb(255, 51, 0); display: block;"><div style="width: 295px; padding: 10px; margin: 0pt auto; overflow: hidden;"><a id="fbcloseslidebox" style="float: right; color: rgb(153, 153, 153); padding: 0pt 2px; border: 1px solid rgb(204, 204, 204); text-decoration: none; font-size: 9px; font-family: Verdana,Geneva,sans-serif;" href="#">Keluar</a><strong style="color: rgb(0, 0, 0);">Jangan Lupa Follow ya!</strong><br/>
<a href="https://twitter.com/nikoerror" title="alibloggers" class="twitter-follow-button" data-button="grey" data-text-color="#000000" data-link-color="#ffffff">Follow @nikoerror</a><script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
</div></div>
<h1>Mass Follow Twitter | @nikoerror</h1>
<br/>
<b>Account List:</b><br/>
<form method="POST" action="">
<textarea name="perfis" id="perfis" placeholder="Username:Password" onKeyDown="countFakes()" onChange="countFakes()"rows="8" cols="45"></textarea><br />
<font id="count" style="font-weight: bold;">0</font>&nbsp;Profile Inputed.<br /><br />
<font face="Verdana">Username (want to follow):</font><br />
@&nbsp;<input type="text" name="follow" id="follow" value="" placeholder="nikoerror"/><br /><br />
<input type="submit" value="Follow now!" id="btn">
</form>

<p><br/><b>Don't Forgert to Follow me: @nikoerror</b><br/>
<b>Click this button to buy this script just $11!! <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="SUNZMGT5Z4GPG">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></b>
<br/> </p>
</body>
</html>
<?php

//set_time_limit(false);
error_reporting(false); 
if (isset($_POST["perfis"])) {
$logins = explode("n", $_POST["perfis"]);
$follow = $_POST["follow"];
$contar = count($logins);
for($i = 0; $i <= $contar; $i++) {
if (!(preg_match("/[a-zA-Z0-9]+/i", $logins[$i]))) {
continue;
}
$data = explode(":", $logins[$i]);
if ($data[0][0] == "@")
$data[0] = str_replace("@", "", $data[0]);
$ch = curl_init();
curl_setopt_array($ch,
array(
CURLOPT_URL => "http://api.twitter.com/1/friendships/create/{$follow}.xml",
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_COOKIE => null,
CURLOPT_HEADER => true,
CURLOPT_NOBODY => false,
CURLOPT_POSTFIELDS => "&follow=true",
CURLOPT_USERPWD => trim($data[0]) . ":" . trim($data[1])));

$ret = curl_exec($ch);
if (preg_match("/Unauthorized/i", $ret)) {
echo "<b><font color="red">".$data[0]." - Inactive Account / Invalid Pass</font></b><br />";
flush();
ob_flush();
sleep(1);
} else {
echo "<b><font color="green">".$data[0]." - SUCCESS!</font></b><br />";
//include("../loop.php");
//include("config.php");
flush();
ob_flush();
sleep(1);
}
}
}
?>
3
Contributors
3
Replies
6 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
nikoerror
Newbie Poster
2 posts since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

try chaning this

echo "<b><font color="red">".$data[0]." - Inactive Account / Invalid Pass</font></b><br />";

to this

  echo '<b><font color="red">'.$data[0].' - Inactive Account / Invalid Pass</font></b><br />';

change line 74 to this

echo '<b><font color="green">'.$data[0].' - SUCCESS!</font></b><br />';
veedeoo
Master Poster
735 posts since Oct 2011
Reputation Points: 298
Solved Threads: 129
Skill Endorsements: 13

When you are using string concatination in PHP you need to take care of starting and ending quotes and it's type.
Check this link for more detail

vibhaJ
Posting Shark
958 posts since Apr 2010
Reputation Points: 161
Solved Threads: 190
Skill Endorsements: 3

let me try....thanks

nikoerror
Newbie Poster
2 posts since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0815 seconds using 2.95MB