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? Quote 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 Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/251473-weird-error-line-1/#findComment-1289799 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.