Home > syntax error > parse error syntax error unexpected t_string expecting t_as or t_paamayim_nekudotayim

Parse Error Syntax Error Unexpected T_string Expecting T_as Or T_paamayim_nekudotayim

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company parse error syntax error unexpected t_paamayim_nekudotayim wordpress Business Learn more about hiring developers or posting ads with us Stack Overflow Questions

Syntax Error, Unexpected 'protected' (t_protected)

Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million php parse error syntax error unexpected expecting programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What does this mean? “Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM” up vote 48 down vote favorite 8 T_PAAMAYIM_NEKUDOTAYIM sounds really exotic, syntax error, unexpected '::' (t_paamayim_nekudotayim) laravel but most certainly absolutely nonsense to me. I traced it all down to this lines of code: config; return $cnf::getConfig($key); } function __construct() { $this->config = new Config(); } } ?> In the constructor I create a Config object. Here's the class: final class Config { private static $instance = NULL; private static $config; public static function

Parse Error: Syntax Error, Unexpected '[' Php

getConfig($key) { return self::$config[$key]; } public static function getInstance() { if (!self::$instance) { self::$instance = new Config(); } return self::$instance; } private function __construct() { // include configuration file include __ROOT_INCLUDE_PATH . '/sys/config/config.php'; // defines a $config array $this->config = $config; } } No idea why this doesnt work / what the error means... php share|improve this question asked Dec 27 '09 at 14:02 openfrog 14.4k38169305 possible duplicate of PHP expects T_PAAMAYIM_NEKUDOTAYIM? –John Slegers Jul 4 '15 at 14:32 add a comment| 7 Answers 7 active oldest votes up vote 57 down vote accepted T_PAAMAYIM_NEKUDOTAYIM is the double colon scope resolution thingy PHP uses - :: Quick glance at your code, I think this line: return $cnf::getConfig($key); should be return $cnf->getConfig($key); The first is the way to call a method statically - this code would be valid if $cnf contained a string that was also a valid class. The -> syntax is for calling a method on an instance of a class/object. share|improve this answer edited Dec 29 '09 at 15:51 answered Dec 27 '09 at 14:05 benlumley 9,16822934 10 It's Hebrew -- because Zend Engine has initially been developped by Andi Gutmans and Zeev Suraski, who are from Israel (see en.wikipedia.org/wiki/Zend_Engine ) –Pascal MARTIN Dec 27 '09 at 14:14 14 From Wikipedia: "In

Open-Realty® 1.x - Forums - CLOSED HELP (CLOSED) Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file If this is your first visit, be sure scope resolution operator to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Effective: September 2011 These forums are no longer used! Unregistered, Transparent Techologies is happy to announce we have launced a NEW http://stackoverflow.com/questions/1966010/what-does-this-mean-parse-error-syntax-error-unexpected-t-paamayim-nekudotay community support portal to allow customers to communicate, ask questions, and share ideas about all of our products and services. Our new community portal uses the same login information as our Helpdesk and Billing system uses, which means you have a single login to both locations. You can access our NEW community support portal at http://community.transparent-tech.com We have left these OLD forums in http://support.open-realty.org/showthread.php?15806-Parse-error-syntax-error-unexpected-T_STRING-expecting-or-in-file a read-only state, so users can reference past threads and information going back 10 years all the way to Open-Realty v1.0. If you need assistance with OR v3+ please use the NEW support portal linked above. Results 1 to 2 of 2 Thread: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 09-29-200707:06 PM #1 seksikuuipo View Profile View Forum Posts Visit Homepage OR Youngling Join Date Jun 2004 Location Hawaii Age 32 Posts 31 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in file What does this mean? Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/htmwktir/public_html/listingview.php on line 10 This is the entire html from that page. $lang[perhaps_you_were_looking_something_else]" ; } elseif ($listingID != "") { // first, check to see whether the listing is currently active $show_listing = checkActive($listingID); if ($show_listing == "yes") { ?>

 

© Copyright 2019|winbytes.org.