Update of /cvsroot/phpwebapp/app1
In directory sc8-pr-cvs1:/tmp/cvs-serv5827
Modified Files:
webapp.php
Log Message:
Index: webapp.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/webapp.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** webapp.php 7 Aug 2003 15:58:49 -0000 1.2
--- webapp.php 15 Aug 2003 09:03:22 -0000 1.3
***************
*** 4,9 ****
$app_path = dirname($script_filename)."/";
define("APP_PATH", $app_path);
! $document_root = $_SERVER["DOCUMENT_ROOT"];
! $app_url = str_replace($document_root, '', $app_path);
define("APP_URL", $app_url);
--- 4,9 ----
$app_path = dirname($script_filename)."/";
define("APP_PATH", $app_path);
! $script_name = $_SERVER["SCRIPT_NAME"];
! $app_url = dirname($script_name)."/";
define("APP_URL", $app_url);
|