PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've tried dl(), same thing as before. Works in command-line, but not in browser window.
I did, however, get this error in the browser window when using dl():
Warning: dl(): Unable to load dynamic library '/usr/lib64/php4/php_mapscript.so' - /usr/lib64/php4/php_mapscript.so: cannot open shared object file: Permission denied in /var/www/html/mapserver/phpinfo.php on line 22
I ran into this before, but I thought it was gone.
Again, this works perfectly in php command-line.
php_mapscript.so has read, write, and execute for everyone, so it should have the permissions.
Ya the reason the command-line and web server were using different ini's is because they're different versions of PHP (4.4.2 for command-line, 4.3.9 for apache).
I didn't install it, I dont know why they're different versions, but I've got someone working on upgrading the apache version.
BUT, I don't think it'll help. I used the 4.3.9 php executable to run my phpinfo.php, and both versions worked on the command-line.
So, even using the apache php version worked on the command-line but not in the browser.
I'm getting pretttty desperate. Does anyone have any ideas?