Forums
 This topic is locked 
             ADODB
 Posted 15 Jan 2002  07:00:59 
  1 
     has   voted 
  15 Jan 2002  07:00:59 darko antic posted: 
 any help would be appreciated.the connection from UD (Mac) works fine (i can see all the tables in MySQL, however when i upload the files i am getting this error:
Warning: GLOBAL variable decleration meaningless in main() scope in ./adodb/adodb.inc.php on line 31
same for the 32, 33, 34 and 35 line and then Parse error: parse error in ./adodb/adodb.inc.php on line 45
those lines are
$ADODB_vers,
$ADODB_Database,
$ADODB_COUNTRECS,
$ADODB_CACHE_DIR,
$ADODB_FETCH_MODE;
and
else if (strpos($ADODB_CACHE_DIR,':/') !== false) die("Illegal \$ADODB_CACHE_DIR"
 ;
; any ideas what is missconfigured?
thanks
Replies
 Replied 15 Jan 2002  12:10:35 
   15 Jan 2002  12:10:35 Tim Green replied: 
  The problem is a misconfiguration of PHP.
In your PHP.ini (if you have access to it) you must change the register_globals parameter to 'on'.
If you do not have access to your PHP.ini, either contact your web host and insist they make the change, or alternatively insert the following at the very top of EVERY page you create with database elements:-
<?php
ini_set("register_globals","on" ;
;
?>
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
  In your PHP.ini (if you have access to it) you must change the register_globals parameter to 'on'.
If you do not have access to your PHP.ini, either contact your web host and insist they make the change, or alternatively insert the following at the very top of EVERY page you create with database elements:-
<?php
ini_set("register_globals","on"
 ;
;?>
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
 Replied 15 Jan 2002  19:02:17 
   15 Jan 2002  19:02:17 darko antic replied: 
  it seams like that helped.
thanks a lot
darko
  
  thanks a lot
darko
