tags:

views:

113

answers:

2

I've got

Parse error: syntax error, unexpected T_STRING

and I think it might be somewhere in this line (it's postdata that i'm using with curl)

Is this line causing this error? How do i fix it?

+3  A: 

You're missing a semi-colon at the end, that's the only thing wrong with that line.

John Kugelman
A: 

Yeah John Kugelman is right, I just tested it, PHP is fun: It sucks cause you can't like elaborate on a given answer or comment if you did not start the thread, so to John, I am not stealing your show, I just tested it out, since I am currenly also learning PHP and this site rocks when it comes to problems related to PHP and other languages in general, again credit to John Kugelman. I just tested it, that's all.

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>
ParseError
</title>
</head>
<body>
<h1>Parseerror</h1>
<?php 
$postdata2 = "_wpnonce=". $noncestr ."&_wp_http_referer=/wp-admin/wpmu-blogs

.php&blog[domain]=testdomain&blog[title]=testtitle&blog[email][email protected]";
echo $postdata2;

?>
</body>
</html>
Newb
You can comment when you haven't started the thread, you just need a little more reputation :)
Zoe