I am using Moodle 2.4 on WIndows Server and I need to open a course that is on an external (Windows) server, a mapped network drive. The course must be opened this way (for now).
I am using the \course\externservercourse.php to do this;
<?php
function extern_server_course($course) {
if ($course->id == 22) {
return "file:///r:\\foofolder\\fooname.htm";
}
}
If I replace the link with say http://www.google.com it works fine, so I know the logic is sound, it's the link. But I cannot seem to get this link to work and open the file (which does exist, but names replaced here).
Does anyone know what I am doing wrong or have a better solution?