Random php error?

3 posts Page 1 of 1
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Random php error?
zachman61
Here is the error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in DirectoryRemoved/file.php on line 2
Here is the line it happens on (2):
Code: Select all
<?php
$include "includes/z61.php";
$connect = mysql_connect($hostname,$dbuser,$dbpass);
if($connect)
BTW * There is more code than I posted, not posting my entire script.

Any ideas?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Random php error?
mandai
You might be trying to use the include function on the second line.
If you are then it should look like this:
Code: Select all
include("includes/z61.php");
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Random php error?
zachman61
mandai wrote:
You might be trying to use the include function on the second line.
If you are then it should look like this:
Code: Select all
include("includes/z61.php");
Yea i accidentally had include as a variable :oops:.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
3 posts Page 1 of 1
Return to “Help & Support”