[mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8

2011-07-08 Thread Léo D .
First of all sorry for my late answer and thanks to each of you for your
help.

I've finally got this thing working! It was actually an error in my paths as
you suggested, what a rookie mistake…

Thanks again!
Léo

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6562178.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8

2011-07-05 Thread Léo D .
Thanks to both of you for your answers.

I've allready edit my php.ini to add extension=php_mapscript.so and with a
phpinfo() I can see the section about MapScript.
Moreover when I run this script to test if the extension is loaded or not
and I have a positive result, so I think that PHP MapScript is working:

if (!extension_loaded('MapScript')) {
echoNot loaded;
}
else {
echoLoaded!;
}

But when I try to run the example script from the mapserver.org
documentation (without the dl() instruction), it doesn't work and I have no
error message, just an empty page. Here is my php code:

?php
$map = ms_newMapObj(~/macbook/Sites/mapeserver/introduction/test.map);
$image = $map-draw();
$image_url = $image-saveWebImage();

echo'html
   head
 titleExemple : Afficher un shapefile/title
   /head
   body
  '.$image_url.' 
   /body
/html';
?

And here is my mapfile:

MAP
NAME Europe en bleu
SIZE 400 400
STATUS ON
EXTENT -31.2467 27.6065 40.1199 80.762
UNITS DD
SHAPEPATH ~/macbook/Sites/mapserver/introduction/shape/

WEB
  IMAGEPATH '~/macbook/Sites/mapeserver/temp/'
  IMAGEURL  '/temp/'
END

LAYER
  NAME Europe
  TYPE POLYGON
  STATUS ON
  DATA europe
  CLASS
STYLE
  COLOR 20 10 110
  OUTLINECOLOR 200 200 200
END
  END
END

END

Maybe I've made a mistake in one of these files…
Thanks for your help !

Léo

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6550486.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8

2011-07-04 Thread Léo D .
Hi there,

I've installed MapServer 6.0.0-3 (thanks to the installer from
http://www.kyngchaos.com) on my local computer, which I'm guessing is
working since that when I'm going to http://localhost/cgi-bin/mapserv? with
my browser I can see this error : No query information to decode.
QUERY_STRING is set, but empty. which means MapServer is working, right ?

I'd like to use MapServer through the PHP MapScript. My installation seems
ok for my phpinfo() displays a MapScript section. But when I'm running php
-m command in my shell, there is no mention of MapScript in the list of
modules, I'm guessing something is going wrong here but I've failed to find
out what it could be.

The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6.

I've tried to make this 
http://mapserver.org/mapscript/php/by_example.html#php-example example  work
(I've of course changed the pathes in the MapFile so that they match to my
local files), but despite my efforts it doesn't. And the script is not
returning any error message, just an empty page.

Any idea to help me solve that ?
Thanks for your help !

Léo D.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6546297.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users