LevelTen Apps Support Forum Forum Index LevelTen Apps Support Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Initialisation Script

 
Post new topic   Reply to topic    LevelTen Apps Support Forum Forum Index -> Technical Issues (L10HC)
Author Message
Lummers



Joined: 13 May 2005
Posts: 5

PostPosted: Sat May 14, 2005 4:58 am    Post subject: Initialisation Script Reply with quote

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

PostPosted: Mon May 16, 2005 12:48 am    Post subject: Initialisatio Script Global and POST variable errors Reply with quote

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

PostPosted: Wed May 18, 2005 2:18 am    Post subject: Reply with quote

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 Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    LevelTen Apps Support Forum Forum Index -> Technical Issues (L10HC) All times are GMT - 6 Hours
Page 1 of 1

 

LevelTen Dallas Web Design & Flash
Web Development | Web Hosting | e-Commerce | Search Engine Optimization
Local SEMS | Sites Directory


Powered by phpBB © 2001, 2005 phpBB Group