|
I've got
Parse error: syntax error, unexpected T_STRING
and I think it might be somewhere in this line (it's postdata that i'm using with curl)
Is this line causing this error? How do i fix it?
Started by Andy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Yeah John Kugelman is right, I just tested it, PHP is fun: It sucks cause you can't like elaborate on a given answer or comment if you did not start the thread, so to... .
You're missing a semi-colon at the end, that's the only thing wrong with that line .
|
|
I've created the a class and tested, and getting the error
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /usr/local/apache/htdocs/MiniBlog/user/user_class.php on line 96
The line 96 is in the function of class User:
class User...
Started by Charlie Epps on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What about the spelling mistake?
functioin != function hahahah dat was soo funny :D i had d same problem "cfunction" woah not complicated is it :) .
|
|
It's probably something simple I am not seeing because I've stared at it too long.
Any ideas? It's throwing on line 119, I've indicated it below
Parse error: syntax error, unexpected T_STRING in /home6/cleanai4/public_html/act.php on line 119
I'm just...
Started by jon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And make....
Also note: unless you have a variable called $tmp outside of the code segment, you're setting $phone to an undeclared variable .
')' ...
Substr($phone, 0 , 3).
You're missing the concatenation after the first part of $phonetmp, should be '(' .
|
Ask your Facebook Friends
|
I'm trying to get Zend Amf working on my hosting services (Lunarpages, if that matters). I can get it working on my local machine, but after changing a few directories and posting the code, I keep getting this error:
Parse error: syntax error, unexpected...
Started by davearchie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Are running PHP4 on the server then ' implements Zend_Server_Interface ' will be unexpected because.
|
|
I'm trying to define a new shortcode in WordPress, and I get the following error when the function is loaded (just loaded, I haven't tried to call it anywhere yet):
Parse error: syntax error, unexpected T_STRING in /pathtomytheme/user_functions.php on...
Started by Becca on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This might sound weird, but the "-" sign in line 105 is ... .
Have you tried to var_dump( $cats ) ?
Sometimes count() can return false depending on some situations, but on this case I'm pretty sure it only returned the entire string as it didn't found it .
|
|
Hi folks,
I'm getting this syntax error and I know it's PHP 101, but I wouldn't know php if it hit me over the head with a curly bracket. Any help would be appreciated. Thanks
<?php echo ($this->getProduct()->getCategory() ? $this->getProduct...
Started by greencoconut on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What kind of apostrophe is that?
‘no category’
Should be
'no category'
; at the end of the statement? .
|
|
So I'm writing a script in codeigniter, and I get the following error message:
Parse error: syntax error, unexpected T_STRING in /home/globalar/public_html/givinghusband.com/system/application/controllers/sizes.php on line 1
the only problem: the only...
Started by Reactor5 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Or you....
If you are uncertain try opening your php file in another editor or use the Cpanel file manager to take a peak .
I just had this problem and the editor removed all line breaks .
There could be a problem with your editor when it updated the file .
|
|
I am getting the dreaded PHP error
Parse error: syntax error, unexpected T_STRING in /path/to/the/file in line 14
Here is the code:
function getSomeList($userid) { $query = "SELECT list_id, username_id FROM user_list WHERE username_id = 1"; $result = ...
Started by bkoch on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The unexpected T_STRING error happen when you have a string in a place it is not suppose.
|
|
Hi there,
I've just opened an account and immediately tried to upload a webpage, but I'm getting a syntax error. I have searched other threads for the same error and there are a few, but I can't find a good answer to this problem.
Here is the error:
Quote...
Started by Iceholic on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at 000webhost):
|
|
One line of code throws this error:
'syntax error, unexpected T_STRING'
it is...
Quote: : fputs($fp1, "L382 \$frmpost = ".var_dump($frmpost)."\n"); when commented out, //, the code runs.
The immediately preceding code is ...
Quote: : $frmpost = array(...
Started by u-sit on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at phpbuilder):
Var....
Also note that var_dump ()'s return type is void, so not only should you not be trying to use its nonexistent return value, but note that this:
PHP Code: fputs ( $fp1 , "L382 \$frmpost = " .
Missing semicolon from the $frmpost variable declaration.
|