[Chameleon] gszAppWebPath
Paul Spencer
pspencer at dmsolutions.ca
Thu Mar 24 17:40:23 EST 2005
sorry for the delay. PHP's server variables depend on the web server
that is used. Apache does provide REQUEST_URI in the $_SERVER array.
Perhaps IIS does not. Not having convenient access to IIS on Win2003
with IIS, I can't tell.
You can look at the phpinfo page:
<?php
phpinfo();
?>
and at the bottom you will see a server section. If you send that to
me, I can probably figure out what it should be doing.
You can also set the following at the top of your index.phtml file:
$_GLOBALS['gszAppWebPath'] = 'http://path/to/my/index.phtml';
as that is what Chameleon is trying to do anyway.
Cheers
Paul
andy wrote:
> Dear all,
> I have installed chameleon in a Win2003 server with IIS pc. I'm starting
> with sample apps, in particular "Sample using simple images for buttons".
> All seems ok:
> -I see the map
> -I see the keymap
> -I do not see in example the pan arrows of the PanArrowsLayer
>
> I have also:
> PHP Notice: Undefined index: REQUEST_URI in
> PHP Notice: Undefined index: dirname in
> C:\Siti\mapserver\chameleon\htdocs\chameleon.php on line 1466
> PHP Notice: Undefined index: dirname in
> C:\Siti\mapserver\chameleon\htdocs\chameleon.php on line 1467
>
> Is it something related to gszAppWebPath bug?
>
> I have:
> -MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
> -php 4.3.1
>
> Thnk you,
>
> Andrea
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
More information about the Chameleon
mailing list