JohnOP Posted November 20, 2011 Share Posted November 20, 2011 Im getting a realy weird error i my page. Parse error: syntax error, unexpected T_VARIABLE in /pathtoroot/subscribers.php on line 1 <?php session_start(); include 'header.php'; include("connect.php"); $username = $_SESSION['username']; $id = $_SESSION['uid']; How on earth is there an error there lol? Link to comment https://forums.phpfreaks.com/topic/251473-weird-error-line-1/ Share on other sites More sharing options...
floridaflatlander Posted November 20, 2011 Share Posted November 20, 2011 This error most often means you forgot something. ,, ;, (, ), {, }, etc., etc, include 'header.php'; => include ('header.php'); I think this is it Link to comment https://forums.phpfreaks.com/topic/251473-weird-error-line-1/#findComment-1289701 Share on other sites More sharing options...
Pikachu2000 Posted November 20, 2011 Share Posted November 20, 2011 Parentheses are not needed with include. Link to comment https://forums.phpfreaks.com/topic/251473-weird-error-line-1/#findComment-1289732 Share on other sites More sharing options...
JohnOP Posted November 20, 2011 Author Share Posted November 20, 2011 Turns out it was filezilla it put all the code on 1 line for some reason. Link to comment https://forums.phpfreaks.com/topic/251473-weird-error-line-1/#findComment-1289799 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.