I have a LAMP server (CentOS 5.5) which has a lot of php scripts and the php pages runs fine. My question is if I have to allow the OS udpates regularly on the server, will there be any problems in running the existing php scripts? Please advise if my apache/mysql/php functionality will break !?
I have a Unix based server running Sagitta and the server is giving me an error of 4b10004 and my research tells me this is an EPROM issue, which means the processor needs to be flashed or repaired. Once up and running where can I go to get updates for Unix? (1 Reply)
Hi there, I've got a debian 3.1r4 half working (no x yet :P)
I need some pointers for installing a Apache - MySQL - PHP configuration on my box, and set them up to work together. I know to use vim a bit :)
I would like something that is similar to tanguay.at, or even simpler, since I'm a real... (1 Reply)
Hi all,
My company run a CMS (typo3) on LAMP on RH linux.
Basically all users have same typo3 page as home page and thousands of users starts their browser every morning causing server very slow or even to hang (swap full because of too many apache processes)..
99% of the traffic is this... (13 Replies)
Hello everyone,
I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself.
I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help!
First: I am looking for good and recent... (3 Replies)
Hello All,
I need a good lamp(linux, apache, mysql, php) tutorial for web development. I searched in net but not finding suitable one. suggest me something. (3 Replies)
How do I install a LAMP server on a new installation of Debian 9 using the lalest versions of
AMP?
Here is what I have.
Corrections please.
MYSQL
apt-get install mysql-server mysql-client
You can verify the MySQL server status using command:
systemctl status mysql
-------
PHP7... (0 Replies)
Discussion started by: Meow613
0 Replies
LEARN ABOUT PHP
dl
DL(3) 1 DL(3)dl - Loads a PHP extension at runtimeSYNOPSIS
bool dl (string $library)
DESCRIPTION
Loads the PHP extension given by the parameter $library.
Use extension_loaded(3) to test whether a given extension is already available or not. This works on both built-in extensions and dynami-
cally loaded ones (either through php.ini or dl(3)).
Warning
This function has been removed from some SAPIs in PHP 5.3.
PARAMETERS
o $library
- This parameter is only the filename of the extension to load which also depends on your platform. For example, the sockets
extension (if compiled as a shared module, not the default!) would be called sockets.so on Unix platforms whereas it is called
php_sockets.dll on the Windows platform. The directory where the extension is loaded from depends on your platform: Windows - If
not explicitly set in the php.ini, the extension is loaded from C:php4extensions (PHP 4) or C:php5 (PHP 5) by default. Unix
- If not explicitly set in the php.ini, the default extension directory depends on
o whether PHP has been built with
--enable-debug or not
o whether PHP has been built with (experimental) ZTS (Zend Thread Safety) support or not
o the current internal
ZEND_MODULE_API_NO (Zend internal module API number, which is basically the date on which a major module API change hap-
pened, e.g. 20010901)
Taking into account the above, the directory then defaults to <install-dir>/lib/php/extensions/ <debug-or-not>-<zts-or-
not>-ZEND_MODULE_API_NO, e.g. /usr/local/php/lib/php/extensions/debug-non-zts-20010901 or /usr/local/php/lib/php/extensions/no-
debug-zts-20010901.
RETURN VALUES
Returns TRUE on success or FALSE on failure. If the functionality of loading modules is not available or has been disabled (either by set-
ting enable_dl off or by enabling safe mode in php.ini) an E_ERROR is emitted and execution is stopped. If dl(3) fails because the speci-
fied library couldn't be loaded, in addition to FALSE an E_WARNING message is emitted.
EXAMPLES
Example #1
dl(3) examples
<?php
// Example loading an extension based on OS
if (!extension_loaded('sqlite')) {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
dl('php_sqlite.dll');
} else {
dl('sqlite.so');
}
}
// Or, the PHP_SHLIB_SUFFIX constant is available as of PHP 4.3.0
if (!extension_loaded('sqlite')) {
$prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
dl($prefix . 'sqlite.' . PHP_SHLIB_SUFFIX);
}
?>
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | dl(3) is now disabled in some SAPIs due to sta- |
| | bility issues. The only SAPIs that allow dl(3) |
| | are CLI and Embed. Use the Extension Loading |
| | Directives instead. |
| | |
+--------+---------------------------------------------------+
NOTES
Note
dl(3) is not supported when PHP is built with ZTS support. Use the Extension Loading Directives instead.
Note
dl(3) is case sensitive on Unix platforms.
Note
This function is disabled when PHP is running in safe mode.
SEE ALSO
Extension Loading Directives, extension_loaded(3).
PHP Documentation Group DL(3)