Home > Parse Error > Parse Error Parse Error Unexpected T_string Expecting T_function

Parse Error Parse Error Unexpected T_string Expecting T_function

Contents

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{} Why didn't Dave Lister go home? There are dozens of these kind of tutorials, I know - I wanted to makā€¦ PHP Giving Your Client Control of a Chalk Board on her Web Site Article by: Ray 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; ?>

have a peek here

Ironically, you might want to "review the wp_register_script function" - especially its third parameter. –Johannes Pille Jul 21 '14 at 16:28 Took the words out of my mouth. –Pieter You can review the wp_register_script function. Here are the related functions in my login model: public function verify_user($email, $password) { $q = $this ->db ->where('email_address', $email) ->where('password', $password) ->limit(1) ->get('users'); if ($q->num_rows > 0) return $q->row(); } up vote 4 down vote $file_name is local variable inside the function can not be used outside it it's not allowed to write plain code outside the method in the class http://stackoverflow.com/questions/10872097/php-parse-error-syntax-error-unexpected-t-string-expecting-t-function-on-cons

Syntax Error Unexpected T_string Expecting Function T_function

Would combining all German articles to just one article have a real negative effect on the language? Interviewee offered code samples from current employer -- should I accept? 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 ... Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/site/public_html/pfp/magazine/db.php on line 6 here is the code.

How to get last tuesday of particular month Can anyone identify the city in this photo? Why don't browser DNS caches mitigate DDOS attacks on DNS providers? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Parse Error: Syntax Error, Unexpected 'echo' (t_echo) cant believe i wasted so much time on this :'( –Ahmed-Anas Jun 3 '12 at 16:48 add a comment| Did you find this question interesting?

What kind of bugs do "goto" statements lead to? Parse Error: Syntax Error, Unexpected ';', Expecting Function (t_function) Join & Ask a Question Need Help in Real-Time? Is it a Good UX to keep both star and smiley rating system as filters? Check your brackets inside wp_register_script() - it's a typo. –kaiser♦ Jul 22 '14 at 9:07 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote It's probably

I have a new guy joining the group. Php Define What do you call this kind of door lock? One more thing is that since I posted my question I worked through the remaining exercises up through 10/10, and I got the same parsing error on the constructor in all The line numbers in the error message are not always where the actual issue is.

Parse Error: Syntax Error, Unexpected ';', Expecting Function (t_function)

Join them; it only takes a minute: Sign up PHP Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION up vote 1 down vote favorite I get this error in my PHP his comment is here Here is all of the code involved: Index.php // Display errors in production mode ini_set('display_errors',1); require 'application/core.php'; ?> core.php controller.php

I see there is a few threads on this subject but i have this problem the code looks ok to me but i'm not really up to scratch with functions or navigate here Subscribed! Likewise, the constructor declaration __construct() is a PHP 5 feature. Covered by US Patent. Php Parse Error: Syntax Error, Unexpected 'define' (t_string)

However in PHP you can not use 'void', especially with a function as you did with - void SitAtBar(){ this is totally incorrect PHP syntax. 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 class_exists( ‘Limit_Login_Attempts' ) ) { class Limit_Login_Attempts { var $failed_login_limit = 3; //Giris Denemesi var $lockout_duration = 1800; //Sureyi sn cinsinden giriniz. 30 dakika: 60*30 = 1800 var $transient_name = ‘attempted_login'; Check This Out Top All times are GMT -4.

Course Forum Section 1 5/10 Parse error: syntax error, unexpected T_ST... Join the community of 500,000 technology professionals and ask your questions. 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

any insight would much appreciated!

up vote 1 down vote Change the line to: public function __construct($u, $p) { share|improve this answer answered Jun 3 '12 at 16:44 Oscar Broman 1,015614 add a comment| Your Answer What do your base stats do for your character other than set your modifiers? When an incorrect password is entered, that error is encountered. 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

Browse other questions tagged php or ask your own question. How do I enable outgoing connections? (ELI5) Derivatives: simplifying "d" of a number without being over "dx" first order condition of Lagrangian What do you call this kind of door lock? Othersie, I think here the issue is your link. this contact form Sorry: i was sure xampp was the evolution of wampp... :-( then @rgb192 : can you post a phpinfo(), please? 0 Message Active today Author Comment by:rgb1922013-12-09 line 38: public

How can I fix it?