extension loading works for command line but not browser
Posted: Wed Jan 17, 2007 10:58 am
Hi, here's my phpinfo.php test file:
//The php_mapscript.so is auto-loaded from php.ini
Here's from the command line:
Here's from the browser: (http://niceguy.wustl.edu/mapserver/phpinfo.php)
Totally different extensions loaded, and not the one I want!
Anyone have any ideas?
Thanks in advance!
-Ed
//The php_mapscript.so is auto-loaded from php.ini
Code: Select all
if (extension_loaded("MapScript"))
echo "works!";
else
echo "doesn't work!";
print_r(get_loaded_extensions());Code: Select all
[edfialk@niceguy mapserver]$ php phpinfo.php
<HTML>
works!<br>Array
(
[0] => xml
[1] => tokenizer
[2] => standard
[3] => session
[4] => posix
[5] => overload
[6] => mysql
[7] => ctype
[8] => pcre
[9] => MapScript
)
</HTML>Code: Select all
doesn't work!
Array ( [0] => yp [1] => xml [2] => wddx [3] => tokenizer [4] => sysvshm [5] => sysvsem [6] => standard [7] => sockets [8] => shmop [9] => session [10] => pspell [11] => posix [12] => pcre [13] => overload [14] => mime_magic [15] => iconv [16] => gmp [17] => gettext [18] => ftp [19] => exif [20] => dio [21] => dbx [22] => dba [23] => curl [24] => ctype [25] => calendar [26] => bz2 [27] => bcmath [28] => zlib [29] => openssl [30] => apache2handler [31] => gd [32] => ldap )Anyone have any ideas?
Thanks in advance!
-Ed