Parse Error Syntax Error Unexpected $end Expecting T_function Codeigniter
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you syntax error, unexpected 'class' (t_class) in codeigniter might have Meta Discuss the workings and policies of this parse error syntax error unexpected in codeigniter site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers laravel syntax error unexpected end of file expecting function (t_function) or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community codeigniter rest controller of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error, unexpected end of file in C:\xampp\htdocs\febi\application\views\agenda_right.php on line 22 up vote -5 down vote favorite
Info Penerimaan Mahasiswa Baru 2012/2013
Syntax Error Unexpected End Of File Php
if ($ag_2->num_rows() == 0) { echo "Tidak ada agenda"; } else { $row = $ag_2->row(); $texts = $row->texts; $postname = $row->postname; echo word_limiter ($texts, 30); ?>
}?>php codeigniter syntax-error share|improve this question edited Aug 6 '12 at 16:14 Gaffi 3,13162859 asked Aug 6 '12 at 16:09 David Liem 611 What is line 22? –thatidiotguy Aug 6 '12 at 16:15 I think your img tag might be messed up –Don Aug 6 '12 at 16:17 1 "Unexpected end of file" is usually one or more missing braces. In this instance it's probably because the server has short_open_tag disabled and you need to write instead of just } ?> –DaveRandom Aug 6 '12 at 16:18 try –Don Aug 6 '12 at 16:18 s
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 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Codeigniter - Parse error: syntax error, unexpected '[' in … user_controler.php [closed] up vote http://stackoverflow.com/questions/11831979/syntax-error-unexpected-end-of-file-in-c-xampp-htdocs-febi-application-views-a 2 down vote favorite 1 I've been trying to run an existing Codeigniter project that's been finished by a friend. At his computer everything works just fine but when I try to run it on mine this message is shown in the browser: Parse error: syntax error, unexpected "[" in C:\wamp\www\P-project\application\controllers\user_controler.php on line 88 This is the code on line 88: $data = []; This is the code for the http://stackoverflow.com/questions/16752045/codeigniter-parse-error-syntax-error-unexpected-in-user-controler-ph function: function Shownews(){ $this->load->model('user'); $data = []; $data['news'] = $this->user->getNews(); $this->load->vars($data); } He's done it so the project URL is : http://localhost/P-project/index.php/user_controler/log We're both using Wampserver for the connection and Netbeans for the project. If anyone can help please do so as soon as you are able, it is urgent. Thank you. php codeigniter share|improve this question edited May 25 '13 at 17:26 Bibhas 7,757114478 asked May 25 '13 at 17:18 John Young 2612 closed as too localized by cryptic ツ, HamZa, Madara Uchiha♦, Jocelyn, andrewsi May 26 '13 at 3:28 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. 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. I don't know why this question is closed. I had the same problem. It's not Codeigniter specific, but other than that I don't see why this is too localized. –SPRBRN Nov 18 '14 at 15:47 add a comment| 1 Answer 1 active oldest votes up vot
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 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs http://stackoverflow.com/questions/11482527/parse-error-syntax-error-unexpected-end-of-file-in-my-php-code Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse error: Syntax error, unexpected end of file in my PHP code up vote 83 down vote favorite 18 I got an error: Parse error: syntax error, unexpected end of file in the line With this code:
Welcome Administrator
syntax error Upload FilesEdit Points Tally Some more HTML code What's the problem? php html parse-error share|improve this question edited Nov 12 '15 at 8:10 Alex 5,57551634 asked Jul 14 '12 at 9:20 pratnala 1,03711841 1 I would imagine you have an error with some of your PHP code... which you haven't posted. –Yacoby Jul 14 '12 at 9:22 2 It sounds like you have a missing '}', ';' or bracket but syntax error unexpected it would help if you posted you whole php code –ryanc1256 Jul 14 '12 at 9:23 Please post a complete example –phihag Jul 14 '12 at 9:23 1 I have added the code –pratnala Jul 14 '12 at 9:25 7 A year and a half hence, it is funny that this question was closed because it is too localized but it has got almost 50k views. –pratnala Nov 6 '13 at 11:19 | show 4 more comments 7 Answers 7 active oldest votes up vote 160 down vote accepted You should avoid this (at the end of your code): {?> and this: instead of . –Adam Libuša Nov 7 '13 at 13:06 41 I had similar ptoblem but my case was that i had short_open_tag = Off in my php.ini. When i turned it to On, my code worked. –bksi Feb 12 '14 at 19:31 3 Note while Apache accepts this Nginx does not (or rather fcgi does not) so if your stumped by why this is working on one web server and not another you know why –Sammaye Jul 18 '14 at 13:53 hahaha, and avoid copy pasting code w