Two Problems: unzip and graphics in HTML files

Two Problems: unzip and graphics in HTML files

by Luisa Noa -
Number of replies: 3

First Problems:

When I go to unzip file,  the following message appears:

Abriendo /prueba/New.zip:


Warning: Failed opening '../pclzip/pclzip.lib.php' for inclusion (include_path='.;c:\php4\pear') in C:\moodle\mod\resource\coursefiles.php on line 443

Fatal error: Cannot instantiate non-existent class: pclzip in C:\moodle\mod\resource\coursefiles.php on line 445

Second Problems:

When I upload HTML files with graphics inside, I can see the graphics. I upload HTML file with its gif o jpg files.  The adress of graphics reported for the Browse is:

http://localhost/moodle/Scafold.jpg

and the adress of document is:

http://localhost/moodle/file.php?file=/2/prueba/Experimento2.htm

Thanks in advance,

Luisa Noa

Average of ratings: -
In reply to Luisa Noa

Re: Two Problems: unzip and graphics in HTML files

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
First problem: If you was trying to unzip from the "floating" window (the one used when selecting files in resources), there was a bug in it. It has been solved now. You can see the bug in http://moodle.org/bugs/bug.php?op=show&bugid=1138

Second problem: Are you using relative links between the html file and its images? Can you set (in Admin/Configure) your "slash arguments" variable to "file.php/pic.jpg" and try again. More info in http://moodle.org/mod/forum/discuss.php?d=5916&parent=27375

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Two Problems: unzip and graphics in HTML files

by Luisa Noa -

Thanks very much.

In the second problem, I can´t do it becouse my server php don´t work with the "/" arguments "file.php/pic.jpg" triste

In reply to Luisa Noa

Re: Two Problems: unzip and graphics in HTML files

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Luisa,

To be able to make the slasharguments="file.php/pic.jpg" to work, you need to set AcceptPathInfo on in httpd.conf (or in a .htaccess file). Ask your system admin about it (or make yourself if you are the admin smile). Otherwise your relative links will never work..sad

Hope this helps, ciao smile