i am using php script got from torrenteditor to create torrent files , but when i create new torrent files, using specified method, torrent files gets created but i get lots of notices ., like this
Only variable references should be returned by reference in myfile.php on line 319
on this line
return new BEncode_End();
which is specified as another class as
class BEncode_End
{
public function get_type()
{
return 'end';
}
}
so how can i fix this notices ?
i am pretty new to classes , so dont know where to start.
complete script/code uploaded here http://pastebin.com/L6ktvrne , line 319
i am using
ini_set('display_errors', 1);
error_reporting(E_ALL);