To htaccess, no, but if you use the "Program" type of resource then Moodle will pass this info (and more) to the destination link. You could modify the cgi script to use/check the passed data.
Martin Dougiamas
مطالب مطرح شده توسط Martin Dougiamas
Doing these automatically is planned sometime in the future, but for now you have to manage this separately (and probably manually).
Try $CFG->dirroot = "/www/netuno61/public_html/weblearning/cursos";
in config.php, and don't visit lib/setup.php with your browser - after setting up config.php you go to /admin
in config.php, and don't visit lib/setup.php with your browser - after setting up config.php you go to /admin
Something similar was happening recently with moodle.org - in my case it was that PHP/Apache/MySQL was running out of database connections.
Moodle uses Persistent Connections for speed, which works 99% of the time, but see this page about it: http://www.php.net/manual/en/function.mysql-pconnect.php
The quick hack: edit lib/setup.php, look for the word PConnect and change it to Connect. Slight loss of performance but no connection problems.
The longer term solution is to change the max_user_connections setting in MySQL.
Moodle uses Persistent Connections for speed, which works 99% of the time, but see this page about it: http://www.php.net/manual/en/function.mysql-pconnect.php
The quick hack: edit lib/setup.php, look for the word PConnect and change it to Connect. Slight loss of performance but no connection problems.
The longer term solution is to change the max_user_connections setting in MySQL.
Well, the gd or gd2 extension needs to be enabled and installed. Also make sure Apache is restarted.
After that make sure to visit the Moodle "configure variables" page to check/update the GD version setting so that it corresponds to what you are using.
It shouldn't slow your machine down ... what do you mean by "going bing"?
After that make sure to visit the Moodle "configure variables" page to check/update the GD version setting so that it corresponds to what you are using.
It shouldn't slow your machine down ... what do you mean by "going bing"?