conn.php Files
test.php Files<?php
class abc{
private $text = null;
public function __construct(){
$this->$text = "";
}
public function setT($txt){
$this->$text = $txt;
}
public function getT(){return $this->$text;}
}
?>
พอผมกดรัน มัน HTTP Error 500.0 - Internal Server Error<?php
include("conn.php");
$a = new abc();
$a->setT("Hello World!!!");
echo $a->getT();
?>
ช่วยดูให้ทีนะครับ