|
|
| Author |
Message |
Lummers
Joined: 13 May 2005 Posts: 5
|
Posted: Sat May 14, 2005 4:58 am Post subject: Initialisation Script |
|
|
I have looked and see I am not the only one having problems with initialisation script
Mine just sits there and reopens the page
No tables in the mySql DB and no parameters.txt file
??????????????????? |
|
| Back to top |
|
 |
Lummers
Joined: 13 May 2005 Posts: 5
|
Posted: Mon May 16, 2005 12:48 am Post subject: Initialisatio Script Global and POST variable errors |
|
|
I have found a piece of code that Helps...
| Code: | if (!isset($_SERVER))
{
$_GET = &$HTTP_GET_VARS;
$_POST = &$HTTP_POST_VARS;
$_ENV = &$HTTP_ENV_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
$_COOKIE = &$HTTP_COOKIE_VARS;
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
}
$PHP_SELF = $_SERVER['PHP_SELF']; |
This seems to enable the form to get further through processing producing a Params.php file but the connection error is generated in the Database Library and the form is now populated with
Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/........./L10Apps/L10_LIB_DB.php on line 20Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/.........../L10Apps/L10_LIB_DB.php on line 20
Install Form
Unable to connect to database engine. Please verify that the dbHost, dbUserName, and dbPassword are correct.
...I am now trying to work out how the varaibles are passed between forms using the POST and GET variables |
|
| Back to top |
|
 |
Lummers
Joined: 13 May 2005 Posts: 5
|
Posted: Wed May 18, 2005 2:18 am Post subject: |
|
|
I sussed it - you need to declare them as global
so add
| Code: | global $_POST;
global $_GET; |
to each function that uses these variables and all will be hunky dory
Oh I did have another small problem in that my counter.php was looking for a parameter.txt file so the logo didnt show on screen and couldnt count properly but this is fixed now  |
|
| Back to top |
|
 |
|