Forums

PHP

This topic is locked

Problem With adodb.inc.php File

Posted 30 Aug 2001 03:55:19
1
has voted
30 Aug 2001 03:55:19 Kevin Allison posted:
I am getting an error when trying to view my site on this file, adodb.inc.php, line 21 and 30
"Warning: GLOBAL variable declaration meaningless in main() scope in ./adodb/adodb.inc.php on line 21"
and
"Parse error: parse error in ./adodb/adodb.inc.php on line 30
"
I am running Postgres and on a linix server.

The lines read as follows
21)GLOBAL $ADODB_vers, $ADODB_Database, $ADODB_COUNTRECS,$ADODB_CACHE_DIR;
AND
30)else if (strpos($ADODB_CACHE_DIR,':/') !== false) die("Illegal \$ADODB_CACHE_DIR";

If there is anyone that can help me on this one, please do!!!




Replies

Replied 31 Aug 2001 22:07:58
31 Aug 2001 22:07:58 Tim Green replied:
This problem is caused because your PHP.ini is not correctly set up.

To resolve this problem, open your PHP.ini in any text editor, and change the line :-

register_globals = off

to

register_globals = on

Save the file, and then restart your Webserver. This should solve the problem for you.

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>

Reply to this topic