vim can be built for most Unix environments and GVim is available for Windows
in command mode turns on highlighting, it maps on the basis of file extension
I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software.
Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Hello,
I have a simple question. How do make it so i can lauch a program from the shell. For instance I want to install firefox 2 and I wanna launch it with ff2 in the terminal, so i tried this to my .bashrc file:
alias ff2='/path/./firefox'
and its not working as I would hope. anywho,... (2 Replies)
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
I have installed a software called GMT, then writing a script that call the new programs
./example02.sh
but I am getting
./example02.sh: line 20: gmtset: command not found
I have done
./configure
make
make install (0 Replies)
I have several programs in several directories and want to use make to build the executables. What I have done is to put the main programs in their own directory together with a makefile to build the program. Then I am thinking of having another makefile residing in the directory above so I can run... (1 Reply)
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
1. The problem statement, all variables and given/known data:
Get each of these programs to run. Prove that you've done this(use script). Give a description of each program along with sample executions.
These are the exact programs we were given.
2. Relevant commands, code, scripts,... (11 Replies)
Discussion started by: FaTaL
11 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)