Re: [mapserver-users] php error

2010-01-13 Thread Alan Boudreault
You can have both on your system, but if you want to use php mapscript 
with php 5.2.9, you need to specify the proper header path.


ie. on ubuntu:

--with-php=/usr/include/php5/

This way, the mapscript module will work with your php 5.2.9.

Hope this help.
Alan

bascom49 wrote:


Alan Boudreault wrote:
  
PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
rebuild the module with the proper php lib. You probably have a old php 
4.x on your system too.


Alan

bascom49 wrote:


I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04]
PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
  
  

--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





I had installing mapscript with php by following this link:
http://mapserver.org/installation/php.html 
and must have misunderstood that I could compile against
php5. I do have a php4 binary on my server. Is this as simple as 
compiling mapserver with the php4 binary to produce php_mapscript.so

and keeping php5 on my system or do I have to reinstall php4 as well ?



  



--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] php error

2010-01-13 Thread bascom49



Alan Boudreault wrote:
> 
> PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
> rebuild the module with the proper php lib. You probably have a old php 
> 4.x on your system too.
> 
> Alan
> 
> bascom49 wrote:
>> I am installing mapserver 5.4.2. My php version is 5.2.9.
>>
>> I am getting an error message with the following code :
>>
>> php
>> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
>> $dllversion = 'php_mapscript.dll';
>> } else {
>> $dllversion = 'php_mapscript.so';
>> }
>> if (!extension_loaded('MapScript')) {dl($dllversion);}
>> phpinfo();
>> ?>
>>
>> A link to the file producing this error is at :
>> http://174.120.238.19/info.php
>>
>> You can view my php configuration at this link:
>> http://174.120.238.19/info.php
>>
>>
>> Does anyone have experience with the following php issue ?
>>
>>
>> [13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
>> library
>> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
>> [13-Jan-2010 14:00:04]
>> PHP
>> Warning:  PHP Startup: UõSHìè: Unable to initialize module
>> Module compiled with module API=20020429, debug=0, thread-safety=0
>> PHPcompiled with module API=20060613, debug=0, thread-safety=0
>> These options need to match
>>
>>
>> Thanks,
>> Charles
>>   
> 
> 
> -- 
> Alan Boudreault
> Mapgears
> http://www.mapgears.com/ 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

I had installing mapscript with php by following this link:
http://mapserver.org/installation/php.html 
and must have misunderstood that I could compile against
php5. I do have a php4 binary on my server. Is this as simple as 
compiling mapserver with the php4 binary to produce php_mapscript.so
and keeping php5 on my system or do I have to reinstall php4 as well ?



-- 
View this message in context: 
http://n2.nabble.com/php-error-tp4380950p4385574.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


Re: [mapserver-users] php error

2010-01-13 Thread Alan Boudreault
PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
rebuild the module with the proper php lib. You probably have a old php 
4.x on your system too.


Alan

bascom49 wrote:

I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04] PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
  



--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] php error

2010-01-13 Thread bascom49

I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04] PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
-- 
View this message in context: 
http://n2.nabble.com/php-error-tp4380950p4380950.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