[phpwebapp-users] Re: Questions after installing phpwebapp {Scanned}
Brought to you by:
dashohoxha
From: Dashamir H. <da...@ma...> - 2004-06-21 10:50:28
|
Hello Kees, Sorry for replying so late. 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. Regards, Dashamir --- Kees Bakker <ke...@al...> wrote: > Hello Dashamir, > > This week I found doc-book and wanted to give it a > try. But I need > phpwebapp first, so I installed that too. > > I'm running a Debian system, with apache2 > (-mpm-prefork) and php4. I > noticed that the following PHP code (in webapp.php) > did not work for me. > > $script_filename = $_SERVER["SCRIPT_FILENAME"]; > > On my system that gives "/usr/lib/cgi-bin/php4" > which is not what I > want. So I have changed it to > > $script_filename = $_SERVER["PATH_TRANSLATED"]; > > One problem solved. > > Next problem I have is that the browser (Firefox > 0.8) gives this error in > the javascript console: > > Error: Session is not defined > Source File: http://koli.tasking.nl/app1/ > Line: 78 > > And also, if I click on de page2 in app1, I get > > Error: GoTo is not defined > Source File: javascript:GoTo('page2.html') > Line: 1 > > It seems that some important javescript code is not > loaded in my > browser. What can I do? > > Kind regards, Kees Bakker > -- > ************************************** > 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 > ************************************** > Facts are stupid things - Ronald Reagan > |