Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- parse error: syntax error, unexpected T VARIABLE


sonjay - 10:15 pm on Aug 6, 2010 (gmt 0)


In this line:
$filename = "pricealerts.csv\";

The backslash is escaping the quotation mark, so php doesn't think that quoted string is closed until it reaches the first quotation mark in this line:
$string_to_add = "$wpusername,$symbol,$type,$alert,$trigger,$price,\n";

At which point, it sees $wpusername as an unexplained variable.


Thread source:: http://www.webmasterworld.com/php/4183256.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com