![]() |
||||
|
|
||||
[ms4w-users] msLoad ( ) error with Mapscript!!!Dharani Babu dharanibabus@hotmail.comWed, 18 Feb 2004 09:10:00 +0530
|
||||
Hi spencer thanks for thats reply . Now a question to all
I am running a php file which contains code like
<?php
dl('php_mapscript_36.dll');
$map_path="C:\\ms4w\\apache\\htdocs\\demof\\mapfiles\\";
$map_file="mstest.map";
$map = ms_newMapObj($map_path.$map_file);
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>Example 1: Displaying a map</TITLE>
</HEAD>
<BODY>
<IMG SRC=<?php echo $image_url; ?> >
</BODY>
</HTML>
I have a map file mstest.map in the same directory . Thats in the
/htdocs/demof/ folder . But when I try to execute the test.php by
http://localhost/demof/test.php I get this error .
Warning: [MapServer Error]: msLoadMap(): in
C:\ms4w\Apache\htdocs\demof\test.php on line 8
Warning: Failed to open map file
C:\ms4w\apache\htdocs\demof\mapfiles\mstest.map in
C:\ms4w\Apache\htdocs\demof\test.php on line 8
Fatal error: Call to a member function on a non-object in
C:\ms4w\Apache\htdocs\demof\test.php on line 9
I changed dl( php_mapscript_36.dll) into dl( php_mapscript_40.dll) also but
similar error remains .
is it syntax error right ?
Could any one of u shed light on this ?
With regards and thanks in advance ;)
Dharani
_________________________________________________________________
Easiest Money Transfer to India . Send Money To 6000 Indian Towns.
http://go.msnserver.com/IN/42198.asp Easiest Way To Send Money Home!
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |