Forums
This topic is locked
Parse Error
Posted 15 May 2002 18:08:45
1
has voted
15 May 2002 18:08:45 william dimotta posted:
So I finally set up my JDBC connection with my database.I'm using a Mac G4 with OS 9.1
Inorder for me to set up the connection i have to use php.
I created my resordset, then created my user login.
When i tried to view my login i get this error.
Parse error: parse error in /home/bigcreat/public_html/Connections/conndatabase.php on line 22
Warning: Cannot send session cookie - headers already sent by (output started at /home/bigcreat/public_html/Connections/conndatabase.php:22) in /home/bigcreat/public_html/php/TMP3vraefbt0c.php on line 10
Warning: Cannot send session cache limiter - headers already sent (output started at /home/bigcreat/public_html/Connections/conndatabase.php:22) in /home/bigcreat/public_html/php/TMP3vraefbt0c.php on line 10
Fatal error: Call to a member function on a non-object in /home/bigcreat/public_html/php/TMP3vraefbt0c.php on line 44
What do i do?
Replies
Replied 15 May 2002 21:59:50
15 May 2002 21:59:50 william dimotta replied:
I've read that it could something
to do with the php.ini .
But i'm unable to find one on my system.
I theres one on my server but, i'm unable to access it.
to do with the php.ini .
But i'm unable to find one on my system.
I theres one on my server but, i'm unable to access it.
Replied 15 May 2002 23:04:43
15 May 2002 23:04:43 Tim Green replied:
The problem isn't down to your configuration.
It would seem that there is a physical error on line 22 (or more typically line 21) of your connection file.
The "headers already sent" errors are occurring quite simply because output has been sent to the browser (namely the p a r s e error).
Please can you post the content of your connection file (conndatabase.php) to this thread (mask out any passwords etc) so that we can better see what is causing the problem.
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>
It would seem that there is a physical error on line 22 (or more typically line 21) of your connection file.
The "headers already sent" errors are occurring quite simply because output has been sent to the browser (namely the p a r s e error).
Please can you post the content of your connection file (conndatabase.php) to this thread (mask out any passwords etc) so that we can better see what is causing the problem.
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 May 2002 23:18:23
15 May 2002 23:18:23 william dimotta replied:
Hi tim,
Here's the content of the conndatabase.php
<?php
/* FileName="Connection_php_direct.htm" "driver=org.gjt.mm.mysql.Driver|url=jdbc:mysql://www.bigcreative.tv/bigcreat_users|uid=bigcreat_bgerman|pword=********"
Type="JDBC"
Catalog=""
Schema=""
HTTP="false"
*/
if(!isset($PHP_SELF)){
$PHP_SELF=getenv("SCRIPT_NAME"
}
if (!isset($QUERY_STRING)){
$QUERY_STRING="";
}
if (!isset($REQUEST_URI)){
$REQUEST_URI=$PHP_SELF;
}
$MM_conndatabase_HOSTNAME = "localhost";
$MM_conndatabase_DBTYPE = "mysql";
$MM_conndatabase_DATABASE = "bigcreat_users";
$MM_conndatabase_USERNAME = "bigcreat_bgerman";
$MM_conndatabase_PASSWORD = "********";
$QUB_Caching = @@QUBCaching@@;
ADOLoadCode($MM_conndatabase_DBTYPE);
$conndatabase=&ADONewConnection($MM_conndatabase_DBTYPE);
if($MM_conndatabase_DBTYPE == "access" || $MM_conndatabase_DBTYPE == "odbc"{
$conndatabase->PConnect($MM_conndatabase_DATABASE, $MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD);
} else if($MM_conndatabase_DBTYPE == "ibase" {
$conndatabase->PConnect($MM_conndatabase_HOSTNAME.":".$MM_conndatabase_DATABASE,$MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD);
} else {
$conndatabase->PConnect($MM_conndatabase_HOSTNAME,$MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD,$MM_conndatabase_********);
}
?>
Thanks
Here's the content of the conndatabase.php
<?php
/* FileName="Connection_php_direct.htm" "driver=org.gjt.mm.mysql.Driver|url=jdbc:mysql://www.bigcreative.tv/bigcreat_users|uid=bigcreat_bgerman|pword=********"
Type="JDBC"
Catalog=""
Schema=""
HTTP="false"
*/
if(!isset($PHP_SELF)){
$PHP_SELF=getenv("SCRIPT_NAME"
}
if (!isset($QUERY_STRING)){
$QUERY_STRING="";
}
if (!isset($REQUEST_URI)){
$REQUEST_URI=$PHP_SELF;
}
$MM_conndatabase_HOSTNAME = "localhost";
$MM_conndatabase_DBTYPE = "mysql";
$MM_conndatabase_DATABASE = "bigcreat_users";
$MM_conndatabase_USERNAME = "bigcreat_bgerman";
$MM_conndatabase_PASSWORD = "********";
$QUB_Caching = @@QUBCaching@@;
ADOLoadCode($MM_conndatabase_DBTYPE);
$conndatabase=&ADONewConnection($MM_conndatabase_DBTYPE);
if($MM_conndatabase_DBTYPE == "access" || $MM_conndatabase_DBTYPE == "odbc"{
$conndatabase->PConnect($MM_conndatabase_DATABASE, $MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD);
} else if($MM_conndatabase_DBTYPE == "ibase" {
$conndatabase->PConnect($MM_conndatabase_HOSTNAME.":".$MM_conndatabase_DATABASE,$MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD);
} else {
$conndatabase->PConnect($MM_conndatabase_HOSTNAME,$MM_conndatabase_USERNAME,$MM_conndatabase_PASSWORD,$MM_conndatabase_********);
}
?>
Thanks
Replied 16 May 2002 22:56:23
16 May 2002 22:56:23 Tim Green replied:
Will,
This line is the problem:-
$QUB_Caching = @@QUBCaching@@;
It is a non-standard line, created by QuB, and is actually created in error... The @@QUBCaching@@ should have been replaced for a value when the connection was created, and it wasn't. This is a QuB error, and should be reported to Interakt.
For the time being, to get you up and running, change this line to:-
// $QUB_Caching = @@QUBCaching@@;
The // comments out this line, and you shouldn't now get the error.
Hope it 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>
This line is the problem:-
$QUB_Caching = @@QUBCaching@@;
It is a non-standard line, created by QuB, and is actually created in error... The @@QUBCaching@@ should have been replaced for a value when the connection was created, and it wasn't. This is a QuB error, and should be reported to Interakt.
For the time being, to get you up and running, change this line to:-
// $QUB_Caching = @@QUBCaching@@;
The // comments out this line, and you shouldn't now get the error.
Hope it 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 17 May 2002 10:47:47
17 May 2002 10:47:47 Aurel Sorin Cirstoiu replied:
This is a bug and it will be fixed in the next version. Thank you for understanding.
-----------------------
Cirstoiu Aurel Sorin
InterAKT Support
www.interakt.ro
-----------------------
Cirstoiu Aurel Sorin
InterAKT Support
www.interakt.ro
Replied 17 May 2002 16:19:12
17 May 2002 16:19:12 william dimotta replied:
Hi tim,
Changing the line worked, thank you for your quick responce.[}
Changing the line worked, thank you for your quick responce.[}
Replied 17 May 2002 16:20:06
17 May 2002 16:20:06 william dimotta replied:
<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>