MapTools.org

[maplab-users] problem

woodbri@swoodbridge.com woodbri@swoodbridge.com
Fri, 26 Sep 2003 13:25:27 -0400
Actually this was a problem with PHP 4.3.0

On 26 Sep 2003 at 12:17, Stephen Woodbridge wrote:

> It is more likely that you are using PHP 4.3.1 (IIRC) that has a bug
> that mangles the $PHP_SELF in the CGI version. There is a simple fix
> if this is the problem: create an auto_prepend.php file and configure
> php to use it then put the following in it>
> 
> <?php
> ///// Quick fix until the PHP guys fix $_SERVER['PHP_SELF'] /////
> $_SERVER['SCRIPT_NAME'] = substr($_SERVER['PATH_TRANSLATED'],
> strlen($_SERVER['DOCUMENT_ROOT']));
> 
> if (substr($_SERVER['SCRIPT_NAME'], 0, 2) == '//') {
>    $_SERVER['SCRIPT_NAME'] = substr($_SERVER['SCRIPT_NAME'], 1);
> }
> 
> $PHP_SELF = $SCRIPT_NAME = $_SERVER['PHP_SELF'] =
> $_SERVER['SCRIPT_NAME'];
> ///////////////////////////////////////////////////////////////// ?>
> 
> -Steve
> 
> On 26 Sep 2003 at 12:03, Christopher R. Thorne wrote:
> 
> > This is a stab in the dark, but that "|" found in the path could be
> > a typo found in web configuration file, or in the maplab config
> > page.
> > 
> > if that does not help.... What maplab version are you using? on what
> > platform? with what web server? eg. Apache, IIS... Are you getting
> > any other errors messages?
> > 
> > Thanks
> > Chris
> > 
> > ronny wrote:
> > 
> > > 
> > > am trying to use maplab application to edit/open
> > > mapfiles but it's seems the application is not
> > > behaving well,,it's adding a | or something like that
> > > at the end of the hostname/IP's,,i mean when i look at
> > > the status bar of my browser i can see "resolving
> > > ns.myhostname|" then an alert comes up "ns.myhostname|
> > > could not be found.Please check the name and try
> > > again."..it will happen even if i disable
> > > ns.myhostname and use localhost..anything the matter
> > > here?am very desperate!!!
> > > 
> > > any help/suggestion will be highly appreciated.
> > > 
> > > thanks
> > > 
> > > =====
> > > 
> > > =====
> > > ronny
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Shopping - with improved product search
> > > http://shopping.yahoo.com
> > > _______________________________________________
> > > Maplab-users mailing list
> > > Maplab-users@dmsolutions.ca
> > > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> > > 
> > 
> > 
> > -- 
> > Christopher R. Thorne
> > GIS Specialist,
> > DM Solutions Group Inc.
> > 
> > http://www.dmsolutions.ca
> > email: thorne@dmsolutions.ca
> > Phone: (613) 565-5056 ext.22
> > Fax :  (613) 565-0925
> > ------------------------------
> > 
> > 
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users@dmsolutions.ca
> > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> > 
> 
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> 




This archive was generated by Pipermail.