ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


what does getphp do


  • 2006-09-18 06:45:18

    what does getphp do

    hi, one of our users is experiencing a strange problem. her browser crashes everytime she tries to open any documents linked to from content pages. this time it is a .ppt-file linked to, and the link reads something like /atutor/get.php/filename.ppt

    this *only* happens when atutor uses get.php as part of the link. to debug we have tried putting the file elsewhere on the server (directly), and also putting the file in the file storage area. this creates no problems.

    I have no problems opening these files myself, so it's likely the problem is somewhere on her side. however, get.php has *something* to do with it.. also I've experienced some lag myself when getting at file though get.php compared to getting it directly..

    so, what does get.php [b]do[/b], and what can it be that makes a browser tick? I believe this file wasn't used at all before version 1.5.. is it necessary, or could there be a better way to do it?


    best, vjo

  • 2006-09-18 10:23:57

    Re: what does get.php do?

    You could try removing the line:
    $mime['ppt'] = array('application/vnd.ms-powerpoint', 'ppt');

    from include/lib/mime.inc.php

    and see if it has any affect.

    get.php has always been used.

    to disable it then place your content directory within the ATutor directory, which we do not recommend since it makes upgrading more difficult and the content less secure.

  • 2006-09-19 05:08:15

    Re: what does get.php do?

    removing that line causes IE to display the raw data of the file, not prompt you for download, so it's not an option.

    ..so, any idea why this problem occurs when using get.php, and not when not using get.php?

  • 2006-09-19 12:36:23

    Re: what does get.php do?

    Sounds like a client side browser issue. What browser and platform is she on? And is it patched and up to date?

  • 2006-09-20 06:05:55

    Re: what does get.php do?

    she uses Internet Explorer, but I do not know which windows version. it is a client side issue, but I don't know what causes it, so I still need to know exactly what get.php does which is different from just getting files directly from the server to debug it more! :)

  • 2006-09-20 08:31:40

    Re: what does get.php do?

    get.php retrieves files from a content directory that is located outside an ATutor installation.

    If you move the content directory inside your ATutor installation (though its less secure) get.php will not be used. If you do this, adjust the path to the content directory in include/config.inc.php

  • 2006-09-20 09:18:11

    Re: what does get.php do?

    I understand that, but as I say: it seems to me that using get.php (and the lib/mime.inc.php) has something to do with this problem we are experiencing. I might be wrong, but everything points in that direction.

    maybe it sends some headers that is different from the ones sent when files are retrieved directly via the server, which can cause a crash, or lag, on some browsers / browser settings? maybe something else. does anyone have *any* idea what this can be?

  • 2006-09-20 11:21:48

    Re: what does get.php do?

    get.php has to send the headers itself. so it's possible that it's sending the wrong header, which is why I suggested changing the entry in the mime.inc.php file.

    you will have to use a utility to view the headers your server is sending vs the headers get.php is sending. lynx -head will do that for you.

  • 2006-09-20 13:27:07

    Re: what does get.php do?

    Since you are only seeing this w/one particular user and the problem has not been seen by others it is quite likely that this may be resulting from a browser bug. So before I pulled out all my hair troubleshooting ATutor I would first ensure that she her IE is up to latest patch level, especially since MS has had mime issues with IE in the past.

    Another problem may be that there is a misbehaving proxy between her and your server that is not handling headers properly. This happens more frequently than you might imagine. Joel's recommendation will help diagnosing such problems, but you need to be on her computer to see what headers her browser is actually seeing. If you have physical access to her machine I would boot from one of the Linux Live CD's and use wget to examine the headers. You could also do this from your local machine and ascertain whether ATutor itself may have a header issue.

  • 2006-09-20 13:30:00

    Re: what does get.php do?

    P.S.; Additionally, if she has admin rights you may want to walk her through installing Firefox and see if the problem persists.

  • 2006-09-20 14:19:55

    Re: what does get.php do?

    Joel: removing that line just caused my browser to display the raw data. I could probably try it again while on the phone with the user, but not for long as this is our production server and people need to be able to download .ppt files..

    If this hasn't been reported before I'll just assume the problem is entirely on her side, and will try to get her to install Firefox as Gundee says. I do not have physical access to her machine so it's limited what I can do... Thanks all of you!