PHP crashes...
| From: | DiZEM PGC | Date: | Thu, 22 Jan 2004 08:57:43 +0000 |
| Subject: | PHP crashes... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32581@lists.php.net to get a copy of this message | ||
Here is the source until something is returned by the first function call
(first from top to bottom):
<?
session_start();
// Template-class
require('template.inc.php');
// Some DB-Data
$dbconn=@require getenv("DOCUMENT_ROOT")."/conn.con";
if ($dbconn!=1)
{
sprintf("%s",$dbconn);
exit();
}
// DB-class & -Functions
require('db_func.php');
$tpl = new Template();
$tpl->set_file("fi_login","./Tpl/login.tpl.html");
$tpl->set_var(array(
"seitentitel" => "PAGETITLE",
"farbe" => "blue",
"meldungen" => ""
));
ob_start();
if ($_POST['cmd_fislogin']) // $cmd_fislogin is the only button in
loginscript
{
if (($_POST['fis_benutzername']!="") and
($_POST['fis_passwort']!="")) //
Textfields: user & password
{
// Create DB-Connection
$dbc = new db_con;
// $con_ret is TRUE if DB-Connection could be established.
$con_ret=$dbc->db_login($db_typ,$db_pfad,$db_name,$db_user,$db_passwort);
// if the DB-Connection couldn't be established: echo an error.
if ($con_ret!=1) { echo '<br>No DB-Con'.$dbc->db_errormessage; }
.
.
.
....
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail