[phpwebapp-users] Re: Questions after installing phpwebapp {Scanned}
Brought to you by:
dashohoxha
From: <ke...@al...> - 2004-06-21 13:49:41
|
>>>>> Dashamir Hoxha writes: > > Hello Kees, > Sorry for replying so late. That's fine. > > I use RedHat/Fedora, and there > $_SERVER["SCRIPT_FILENAME"] and > $_SERVER["PATH_TRANSLATED"] > have the same value. I don't know their > definition (exact meaning), but I see their > values as displayed by the function phpinfo(). > It may be that PATH_TRANSLATED is more > suitable than SCRIPT_FILENAME, I am not sure. > > About the problem with javascripts, I use Mozilla > and there it works fine, so I would suggest to use > it. > > Other than this (in case that it is not the problem > of the browser), you can also view the source code > of the page and check that the attribute 'src' has > a correct value, like this: > <script language='JavaScript' > src='/phpwebapp/web_app/session/func.GoTo.js'></script> > > If the value is not correct, then you should check > that the constants UP_URL and APP_URL have > correct values. They are derived from > $_SERVER["SCRIPT_NAME"] in 'webapp.php'. > Maybe again I have not chosen the best server > variable. OK. Your answer made me realize that my Apache+PHP configuration may be the problem. And indeed it was. Using Apache2 with PHP4 is not at all straight forward it seems. I was missing the Debian package libapache2-mod-php4. Now, the SCRIPT_FILENAME variable is alright. According to a comment in php.ini it should be preferred to PATH_TRANSLATED. Thanks. -- ************************************** Kees Bakker Senior Software Designer Altium - Think it, Design it, Build it Phone : +31 33 455 8584 Fax : +31 33 455 5503 E-Mail : Kee...@al... URL : http://www.altium.com ************************************** Beauty without virtue is a flower without perfume. |