install-utils.inc File Reference

This file contains functions used by the install script (config/index.php) and maintenance scripts. More...

Go to the source code of this file.

Functions

 install_version_checks ()
 copyfile ($sdir, $name, $ddir, $perms=0664)
 copyfileto ($sdir, $sname, $ddir, $dname, $perms=0664)
 copydirectory ($source, $dest)
 readconsole ($prompt= '')
 dbsource ($fname, $db=false)
 mw_get_session_save_path ()
 Get the value of session.save_path.
 mw_have_dl ()
 Is dl() available to us?


Detailed Description

This file contains functions used by the install script (config/index.php) and maintenance scripts.

It is not loaded in normal web requests.

Definition in file install-utils.inc.


Function Documentation

copydirectory ( source,
dest 
)

Definition at line 62 of file install-utils.inc.

References $dest, $source, and copyfile().

copyfile ( sdir,
name,
ddir,
perms = 0664 
)

Definition at line 43 of file install-utils.inc.

References $name, $perms, and copyfileto().

Referenced by copydirectory().

copyfileto ( sdir,
sname,
ddir,
dname,
perms = 0664 
)

Definition at line 47 of file install-utils.inc.

References $perms, and print.

Referenced by copyfile().

dbsource ( fname,
db = false 
)

install_version_checks (  ) 

Definition at line 10 of file install-utils.inc.

References $borked, and $wgCommandLineMode.

mw_get_session_save_path (  ) 

Get the value of session.save_path.

Per http://www.php.net/manual/en/ref.session.php#ini.session.save-path, this might have some additional preceding parts which need to be ditched

Returns:
string

Definition at line 128 of file install-utils.inc.

References $path.

mw_have_dl (  ) 

Is dl() available to us?

According to http://www.php.net/manual/en/function.dl.php, dl() is *not* available when `enable_dl` is off, or under `safe_mode`

Returns:
bool

Definition at line 142 of file install-utils.inc.

References wfIniGetBool().

readconsole ( prompt = ''  ) 

Definition at line 72 of file install-utils.inc.

References print.


Generated on Sat Sep 5 02:08:25 2009 for MediaWiki by  doxygen 1.5.9