เจอปัญหา Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
.... แก้ยังไง
เจอปัญหา Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
Moderators: mindphp, ผู้ดูแลกระดาน
- ob1
- PHP Hero Member
- Posts: 185
- Joined: 01/01/1970 7:00 am
- Contact:
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26693
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: เจอปัญหา Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
ปัญหา T_OBJECT_OPERATOR
คือ เรียกใช้งาน object ผิดรูปแบบ
เช่น
MAIN::model->fn() แบบนี้ไม่ได้
ต้องใช้
MAIN::model()->fn()
คือ เรียกใช้งาน object ผิดรูปแบบ
เช่น
MAIN::model->fn() แบบนี้ไม่ได้
ต้องใช้
MAIN::model()->fn()
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
Re: เจอปัญหา Parse error: syntax error, unexpected T_OBJECT_OPERATOR in
<?
class randomclass {
var $key;
var $pass_rand;
function ran($key, $pass_rand){
$this->Keys = $key;
$this->Pass = $pass_rand;
Keys = "123456789100987654321";
srand((double)microtime()*1000000);
for($i=0; $i<1; $i++) {
Pass = Keys[rand()%strlen(Keys)];
}
echo Pass;
}
?>
ทำไงอ่าครับ เพิ่งเคยทำ เจอ แบบนี้อ่าครับ
Parse error: syntax error, unexpected '=' in C:\AppServ\www\0000.php3 on line 8
class randomclass {
var $key;
var $pass_rand;
function ran($key, $pass_rand){
$this->Keys = $key;
$this->Pass = $pass_rand;
Keys = "123456789100987654321";
srand((double)microtime()*1000000);
for($i=0; $i<1; $i++) {
Pass = Keys[rand()%strlen(Keys)];
}
echo Pass;
}
?>
ทำไงอ่าครับ เพิ่งเคยทำ เจอ แบบนี้อ่าครับ
Parse error: syntax error, unexpected '=' in C:\AppServ\www\0000.php3 on line 8
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ช่วยด้วย parse error syntax error unexpected t_string ขึ้นใส่ ; ก็แล้วยังไงไม่ได
by somjang » 10/05/2013 3:12 pm » in Programming - PHP - 3 Replies
- 1335 Views
-
Last post by ekcivic
12/05/2013 10:40 pm
-
-
- 1 Replies
- 2254 Views
-
Last post by konseo
20/12/2012 1:30 pm
-
-
virtuemart มีปัญหา Parse error: syntax error, unexpected $end in
by แมลงโม้ » 17/04/2013 5:07 pm » in ปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM - 7 Replies
- 2121 Views
-
Last post by mindphp
18/04/2013 3:01 pm
-
-
-
Parse error: syntax error, unexpected 'm_topic_portal'
by pnut » 09/12/2016 3:39 pm » in ปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM - 1 Replies
- 378 Views
-
Last post by thatsawan
09/12/2016 4:22 pm
-
-
-
insert ข้อมูล ไม่ผ่านครับ ติดปัญหา Parse error: syntax error,
by Dwight » 12/12/2011 10:13 pm » in Programming - PHP - 2 Replies
- 2488 Views
-
Last post by Dwight
21/12/2011 8:41 am
-
-
-
ช่วยดู code php ตรงนี้หน่อยครับ มันเกิด errror Parse error: syntax error, unexpe
by ShizzK » 08/03/2012 11:38 am » in Programming - PHP - 1 Replies
- 1452 Views
-
Last post by mindphp
09/03/2012 1:12 am
-
Who is online
Users browsing this forum: No registered users and 5 guests