PHP Issue - for the sysadmins

Odhiambo Washington <[email protected]>
Newsgroups gmane.os.freebsd.questions,gmane.comp.php.general
Message-ID <CAAdA2WMj0KH=62q_LAwY9KJa1EpHUqw2GbVNUD9U4xZGJjj_TA@mail.gmail.com>
I am perplexed by a situation here:

When I run php -r "print_r(get_loaded_extensions());", I get the output
below, which has memcache/memcached modules loaded.
```
Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => openssl
    [4] => pcre
    [5] => hash
    [6] => json
    [7] => random
    [8] => Reflection
    [9] => SPL
    [10] => session
    [11] => standard
    [12] => mysqlnd
    [13] => apcu
    [14] => bcmath
    [15] => bz2
    [16] => calendar
    [17] => ctype
    [18] => curl
    [19] => dom
    [20] => mbstring
    [21] => FFI
    [22] => fileinfo
    [23] => filter
    [24] => ftp
    [25] => gd
    [26] => gettext
    [27] => gmp
    [28] => iconv
    [29] => imagick
    [30] => intl
    [31] => ldap
    [32] => exif
    [33] => mysqli
    [34] => PDO
    [35] => pgsql
    [36] => zlib
    [37] => posix
    [38] => pspell
    [39] => SimpleXML
    [40] => soap
    [41] => sockets
    [42] => sodium
    [43] => sqlite3
    [44] => sysvmsg
    [45] => sysvsem
    [46] => sysvshm
    [47] => tidy
    [48] => tokenizer
    [49] => xml
    [50] => xmlwriter
    [51] => zip
    [52] => Phar
    [53] => imap
    [54] => memcache
    [55] => memcached
    [56] => pdo_mysql
    [57] => pdo_pgsql
    [58] => pdo_sqlite
    [59] => redis
    [60] => xmlreader
    [61] => xsl
    [62] => Zend OPcache
)
```

However, when I put a file containing <?PHP phpinfo(); ?> in a publicly
accessible directory and access it from a browser, the two modules are NOT
listed as loaded.
What am I missing?



--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.