Documentation

Database_Connection
in package

A connection to database stored as an object.

Tags
category

Database

author

HugoFara hugo.farajallah@protonmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/database-wizard.html

Table of Contents

Properties

$dbname  : string
$passwd  : string
$server  : string
$socket  : string
$userid  : string

Methods

__construct()  : mixed
Build a new connection object.
getAsText()  : string
Connection a PHP formatted string.
loadFile()  : void
Load data from a PHP file.

Properties

Methods

__construct()

Build a new connection object.

public __construct([string $server = "" ][, string $userid = "" ][, string $passwd = "" ][, string $dbname = "" ][, string $socket = "" ]) : mixed
Parameters
$server : string = ""

Server name

$userid : string = ""

User ID

$passwd : string = ""

Password for this user

$dbname : string = ""

Database name

$socket : string = ""

Socket to use

getAsText()

Connection a PHP formatted string.

public getAsText() : string
Return values
string

PHP string representing connection details

loadFile()

Load data from a PHP file.

public loadFile(string $file_name) : void

The file is usually connect.inc.php or equivalent.

Parameters
$file_name : string

PHP file to load data from.


        
On this page

Search results