SCORM: BIG problem found... PHP slash arguments?!

SCORM: BIG problem found... PHP slash arguments?!

by Vitor M. N. Fernandes -
Number of replies: 7

(you can view this by joining @ http://www.vmnf.net/moodle/ >> "Área de testes" >> "Testes SCORM" key "T_SCORM")
I've been trying to set up SCORM correctly and investigating why it won't work as expected...
PHP slash arguments are the problem for me...
SCORM module is incompatible with "file.php?file=/pic.jpg"... because local references are not treated well ... like finding a image for a html that has an URL like this "http://www.vmnf.net/moodle/file.php?file=/6/moddata/scorm/SCORMcE1yDFdi/mercury.html" that has a reference to "mercury.jpg" doesn't show the picture!!!???
But if I try "http://www.vmnf.net/moodle/file.php?file=/6/moddata/scorm/SCORMcE1yDFdi/mercury.jpg" now it works but the browser is getting "http://www.vmnf.net/moodle/mercury.jpg" that does not exist.
Since Admin can use both types of argument passing... can SCORM use also both,... is there a patch? ( I've no other choicesad )

TX to you all for reading and advising...

Vitor N. N. Fernandes (http://www.vmnf.net/moodle)

Average of ratings: -
In reply to Vitor M. N. Fernandes

Re: SCORM: BIG problem found... PHP slash arguments?!

by Vitor M. N. Fernandes -

OK... SCORM need slash arguments... can't this be patched other way??
I can't get slash arguments without going back to safe mode on!
Is there a patch (moodle patch) that works with safe mode ON ... using ftp_mkdir or other??... PZ advise...

In reply to Vitor M. N. Fernandes

Re: SCORM: BIG problem found... PHP slash arguments?!

by Lukasz Czyzewski -
Hello!

I've got the same problem!
I can't switch to "file.php/argument" mode, because I use Windows 2003 Server with IIS 6.0 (not my choice...) and IIS does not support this feature (am I right?).

So if anyone know howto:

1. Patch Scorm module to work with "file.php?argument" mode
                                     or
2. Enable IIS to work with / method,

please replay to this post.

Best regards,
Łukasz Czyżewski.


Average of ratings: Useful (1)
In reply to Lukasz Czyzewski

Re: SCORM: BIG problem found... PHP slash arguments?! Try ISAPI_Rewrite

by hamster stranger -

Hi,

If you are uisng IIS server to host Moodle and Scorm module and have to use slash arguments, you can use a freeware to rewrite your URL. I got that working on my Windows XP Pro, running IIS 5.

The website is: http://www.isapirewrite.com/.

You can get the "ISAPI_Rewrite Lite" which is free, if you don't need per-virtual-site configurations. Here's the rule I used for rewrite splash arguments:

RewriteRule (.*?\.php)(\/.+) $1\?file=$2 [N,I]

I haven't tried this on Windows 2003 Server with IIS 6.0, though. There's a special note for Win2k3 and IIS 6.0 in their documentation.

Good luck! smile

Nancy

Average of ratings: Useful (2)
In reply to hamster stranger

Re: SCORM: BIG problem found... PHP slash arguments?! Try ISAPI_Rewrite

by Lukasz Czyzewski -
Hi!

Thanks!! smile

Lukasz.
Average of ratings: Useful (1)
In reply to hamster stranger

Re: SCORM: BIG problem found... PHP slash arguments?! Try ISAPI_Rewrite

by Lukasz Czyzewski -
Hi again!

It works perfectly! Thank you!

Lukasz.
Average of ratings: Useful (1)
In reply to hamster stranger

Re: SCORM: BIG problem found... PHP slash arguments?! Try ISAPI_Rewrite

by Phil Purling -

Nancy

Works a treat on Windows 2000 Server - Objects now displaying correctly

Well done!!!

In reply to Phil Purling

Re: SCORM: BIG problem found... PHP slash arguments?! Try ISAPI_Rewrite

by Ylva Holm -

Hello!

I tried this too (have the same problem) but I can't get it to work. We are using https - do I have to change anything then?

Thanks

Ylva