Hello Armin, I have read your answer carefully, but really don't understand. I have looked at my source and the only problem is _SESSION (this variable seems to be empty). I have installed the next files:
- digitizedlg.phtml - digitize.php in incphp-folder - x_digitize.php in xajax-folder This is the content of x_digitize.php: <?php session_start(); require_once("incphp/globals.php"); require_once("incphp/common.php"); $up = $_GET['up']; $pointList = explode("@@", $up); $px = $pointList[0]; $py = $pointList[1]; $txt = urldecode($pointList[2]); $_SESSION['url_points'][] = $pointList; header("Content-Type: text/plain; charset=" . $_SESSION['defCharset']); // return JS object literals "{}" for XMLHTTP request echo "{method:'digitizePoint', retvalue:'$txt'}"; ?> I can't find the problem. Do you have any further suggestion. Thanks, Chris. -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Armin Burger Verzonden: zondag 18 februari 2007 21:57 Aan: Chris Beaart CC: pmapper-users@lists.sourceforge.net Onderwerp: Re: [pmapper-users] Problem with session.use_cookies=0 in php-ini You are probably missing some parts of the description... e.g. where do you include this? In a pop-up window? Then you need to pass the session ID via the URL, like all the other JS functions that open pop-ups or use AJAX. armin Chris Beaart wrote: > Hello, > > > > I'm using pMapper 3.0 and I have 2 pMapper projects running on the same > server. That's why I want to set session.use_cookies = 0 in php.ini. However > I still have got a small problem. In pMapper I added a new digitize-tool > (see some lines below). Because I set cookies = 0 this PHP-code doesn't know > the variables imgxy and _SESSION any more. This results in $mapW and $mapH > to be empty. > > Does anybody know how to solve this problem. Do I have to run add a > require_once("some php-file")? > > > > Thanks, > > Chris. > > > > <?php > > require_once ("/usr/share/php/DB.php"); > > session_start(); > > require_once("common.php"); > > > > function DB_addPoint($imgxy, $soort, $waarneming, $datum, $aantal, $gedrag, > $opmerking) > > { > > $db_host = "localhost"; > > $db_type = "mysql"; > > $db_name = "dop"; > > $db_user = "test"; > > $db_pwd = "testje"; > > > > $dsn = "$db_type://$db_user:[EMAIL PROTECTED]/$db_name"; > > #error_log ($dsn); > > #mysql://root:[EMAIL PROTECTED]/dop > > > > // CONVERT PIXEL X/Y TO MAP UNITS > > $imgxy_arr = explode(" ", $imgxy); > > $x_pix = $imgxy_arr[0]; > > $y_pix = $imgxy_arr[1]; > > $GEOEXT = $_SESSION["GEOEXT"]; > > $geoDeltaX = $GEOEXT["maxx"] - $GEOEXT["minx"]; > > $geoDeltaY = $GEOEXT["maxy"] - $GEOEXT["miny"]; > > $mapW = $_SESSION["mapwidth"]; > > $mapH = $_SESSION["mapheight"]; > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users