PHP Unexpecting?

Status
Not open for further replies.

zMagenta

Posting Freak
Jul 15, 2011
1,414
682
Hey there, I've started to do the index page for ChinkCMS. But one error, but I get this error;

PHP:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\xampp\htdocs\12345tr\index.php on line 64

But I've searched my index, I can't find the problem? Here's line 50-70;

PHP:
    if (strlen($_POST['credentials_username']) < 1)
    {
        $errors[] = "Please enter your user name";
    }
   
    if (strlen($_POST['credentials_password']) < 1)
    {
        $errors[] = "Please enter your password';
    }
   
    if (count($errors) == 0)
    {
        if ($users->ValidateUser($credUser, $credPass))
        {
            if (isset($_POST['page']))
            {
                $reqPage = filter($_POST['page']);
                $pos = strrpos($reqPage, WWW);
           
                if ($pos === false || $pos != 0)
                {

Thanks,
Jamie.
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,926
3,921
I'm using Notepad, what one do you recommend? And thanks.
If you want a simple text editor that will highlight your code, use something like ConText or Notepad++.
Although, I'd personally recommend using an advanced IDE like NetBeans, as it makes everything so much easier:
 

Adil

DevBest CEO
May 28, 2011
1,276
714
Eclipse is also pretty good. If you can spend the money, I heard Zend is awesome ^^
Linux users could also use stuff like Vi and GEdit
 
Status
Not open for further replies.

Users who are viewing this thread

Top