Home > Parse Error > Php Parse Error Syntax Error Unexpected T_string Expecting T_function In

Php Parse Error Syntax Error Unexpected T_string Expecting T_function In

Contents

This could be a bug in the parsing code. 508 points Submitted by bobfleming almost 3 years ago 0 votes permalink Hi Bob, you need to get a space in there Message Insert Code Snippet Alt+I Code Inline Code Link H1 H2 Preview Submit your Reply Alt+S Ask a Different Web Development Question Related Articles Parse error: syntax error, unexpected T_STRING, expecting icemanblabla00 @icemanblabla00 6 months ago I use wordpress theme and I added some codes in functions.php . I have a new guy joining the group. navigate here

Why don't browser DNS caches mitigate DDOS attacks on DNS providers? How can I wrap text into two columns? Advanced Search Forum PHP Help Coding [RESOLVED] Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTIO If this is your first visit, be sure to check out the FAQ by Pretty much for ever. http://stackoverflow.com/questions/10872097/php-parse-error-syntax-error-unexpected-t-string-expecting-t-function-on-cons

Php Expecting Function (t_function)

How to add non-latin entries in hosts file Movie about a board-game that asks the players touchy questions How to make Twisted geometry Can an irreducible representation have a zero character? For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 1 What is the possible impact of dirtyc0w a.k.a. "dirty cow" bug?

Solved Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in C:\wamp\www\oop-beg\ch4-7.php on line 38 Posted on 2013-12-09 PHP 3 Verified Solutions 8 Comments 1,336 Views Last Modified: 2013-12-09 class Person{} Use Bazaar for your version control system Read the PHP Spellbook Learn How To Ask Questions The Smart Way Reply With Quote 06-08-2009,04:16 AM #5 aarchaic View Profile View Forum Posts Likewise, the constructor declaration __construct() is a PHP 5 feature. Php Define How do I "install" CentOS?

HTH, Dan 0 LVL 10 Overall: Level 10 PHP 3 Message Active 2 days ago Expert Comment by:ienaxxx2013-12-09 Uh, wow. Php Parse Error: Syntax Error, Unexpected 'define' (t_string) You can review the wp_register_script function. Why do units (from physics) behave like numbers? http://stackoverflow.com/questions/10704705/unexpected-t-string-expecting-t-function nice to meet you! :-)"; } } $teacher = new Person ("boring", "12345"' 12345); $student = new Person ("Bob", "Fleming", 77); echo greet($teacher); echo greet($student); echo $student->age; ?>

Do I need to do this? Join them; it only takes a minute: Sign up php Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION on construct up vote 1 down vote favorite hey guys was hoping you To start viewing messages, select the forum that you want to visit from the selection below. It is posible that your tutorial was showing you a "Code" example in another language to help you, but you can not use 'void' in PHP.

Php Parse Error: Syntax Error, Unexpected 'define' (t_string)

Apex variable map values passed to auto-launched flow not recognized by flow Story about crystal flowers that stop time? https://wordpress.org/support/topic/how-can-i-fix-that-syntax-error-unexpected-t_string-expecting-t_function/ I constantly keep getting errors like … PHP Parse error: syntax error, unexpected T_STRING in /var/www/index.php on line 33 6 replies I'm still kinda new to php and have been getting Php Expecting Function (t_function) How much interest did Sauron have in Erebor? Parse Error: Syntax Error, Unexpected ';', Expecting Function (t_function) The users who voted to close gave this specific reason:"Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in

adebayo24 7 posts since Dec 2012 Community Member Online PHP Debugger Last Post 2 Days Ago An online tool embeded vim editor into web to debug your php code. http://iipseconline.com/parse-error/php-parse-error-syntax-error-unexpected-t-ns-separator-expecting-t-string.html PHP Web Languages/Standards-Other Web Development Scripting Languages Advertise Here 737 members asked questions and received personalized solutions in the past 7 days. How can I wrap text into two columns? TeX capacity exceeded with beamer Find the super palindromes! Parse Error: Syntax Error, Unexpected 'echo' (t_echo)

I tried locally, and in two other external hosts, but it keeps returning the same message. Why is AT&T's stock price declining, during the days that they announced the acquisition of Time Warner inc.? Fill in the Minesweeper clues more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts http://iipseconline.com/parse-error/php-parse-error-syntax-error-unexpected-t-string-expecting-t-constant-encapsed-string.html How can I copy and paste text lines across different files in a bash script?

I am using the code from 1/10 as a guide, along with instructions and hints, and everything in my code looks right! $frustration = "unresolved errors!"; My complete code follows: public keywords for access control are features from PHP 5. How to do \widthof with a symbol How do I replace and (&&) in a for loop?

How to make Twisted geometry Carrying Metal gifts to USA (elephant, eagle & peacock) for my friends are the integers modulo 4 a field?

Why not to cut into the meat when scoring duck breasts? It seems as though the echo tries to evaluate mathematics (minus) on the words. Returns '0' Returns 'Testing' share|improve this answer Server is running on php 5.3.8, MySQL 5.1 When I try to execute my php file, it gives me an error : Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in How to do \widthof with a symbol Previous company name is ISIS, how to list on CV?

How to improve this plot? How can I copy and paste text lines across different files in a bash script? All rights reserved. http://iipseconline.com/parse-error/php-parse-error-syntax-error-unexpected-t-goto-expecting-t-string.html How to heal religious units?

Was Sigmund Freud "deathly afraid" of the number 62? Can include more code? Related 1502How do you parse and process HTML/XML in PHP?4PHP Version 5.2.14 / Parse error: syntax error, unexpected T_FUNCTION, expecting ')'0Activated a new WP theme, getting this error: Parse error: syntax Here there: https://gist.github.com/tomhemsley/4d19646f57a0a1f20709 Then, I saw that: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/elmacocu/public_html/wp-content/themes/hueman/functions.php on line 58 FULL CODE HERE:

this is the error... It didn't even work, when I used the exact same code from the tutorial. Results 1 to 5 of 5 Thread: [RESOLVED] Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTIO Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Join our community for more solutions or to ask questions.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Words that are anagrams of themselves Upper bounds for regulators of real quadratic fields Was Sigmund Freud "deathly afraid" of the number 62? What game is this picture showing a character wearing a red bird costume from? What is a Likewise Thing?

See how do I ask a good question?" – Pieter Goosen, Johannes Pille, kaiserIf this question can be reworded to fit the rules in the help center, please edit the question. Carrying Metal gifts to USA (elephant, eagle & peacock) for my friends Why do units (from physics) behave like numbers? Browse other questions tagged php wordpress or ask your own question. public function SitAtBar(){ .... 0 LVL 10 Overall: Level 10 PHP 3 Message Active 2 days ago Expert Comment by:ienaxxx2013-12-09 To create a new instance, after the ending brackets of

It may be the case that your host offers PHP 5 as an option; if so, switch to PHP 5. Teaching a blind student MATLAB programming Why can't I set NODE_ENV to undefined? Is this alternate history plausible? (Hard Sci-Fi, Realistic History) How do I replace and (&&) in a for loop? I looked at your code example here, and it will not teach you much of anything about Class and Objects in PHP, why, because your parent Classes of- class Person{} class

just to let u know in advance, im a relatively new php coder, doing a practice project, and came across this problem and ive spent like an hour of rechecking and Please check my code below $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tenNo=$_POST['tenNo']; $tdetail=$_POST['tdetail']; $name = ($_FILES['uploaded_file']['name']); $mime = ($_FILES['uploaded_file']['type']); $data ...