Friday, October 14, 2011

Some error with Moodle

PHP Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/content/90/2379690/html/moodle/question/engine/lib.php on line 338


Resolve:



#############EDIT THIS############


public static function get_behaviour_required_behaviours($behaviour) {


        $class = 'qbehaviour_' . $behaviour;


        return $class::get_required_behaviours();


    }


##############INTO THIS###########


public static function get_behaviour_required_behaviours($behaviour) {


        $class = 'qbehaviour_' . $behaviour;


        eval('$ret = ' . $class . '::get_required_behaviours();');


        return $ret;






#####################################################################
"Unsupported redirect detected script execution terminated" usually in upload Profile Picture.


Resolve:


Log in
Save Profile details
Edit Profile and upload Picture

Thursday, October 6, 2011

How to send email from the Linux command line

The Linux command line can be very powerful once you know how to use it. You can parse data, monitor processes, and do a lot of other useful and cool things using it. There often comes a need to generate a report and mail it out. It could be as simple a requirement as a notification that the day’s backup went through fine, or did not. I’ll help you get started with sending mails from the Linux command line and in shell scripts. We will also cover sending attachments from the command line. We will begin with the “mail” command.