Fout op website met php versie

PHP, HTML, Joomla, WordPress, etc..
Plaats reactie
John Winter

Fout op website met php versie

Ongelezen bericht door John Winter »

Hallo, weet iemand wat de volgende fout betekend :

Code: Selecteer alles

Fatal error: Call to undefined function: connectdb() in /home/www/demuziekman.freehostia.com/samPHPweb/config.php on line 54

Zie voor voorbeeld de volgende website....

http://demuziekman.freehostia.com/samPHPweb/

Groetjes

Johnny
Gebruikersavatar
Kees
Beheerder
Berichten: 3149
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: Fout op website met php versie

Ongelezen bericht door Kees »

Zet je config.php eens online.
Uiteraard zonder wachtwoorden.
John Winter

Re: Fout op website met php versie

Ongelezen bericht door John Winter »

Hallo kees, hierbij de config.php

Code: Selecteer alles

<?
 
/* ## ======================================== ## */  
  $commonpath = "./common";
  
  //Station general details
  $station  = "My station name";
  $email    = "email@mailbox.com";
  $logo     = "images/logo.gif";
  
  //Your CHAT details
  $chat["room"] = "#audiorealm";
  $chat["host"] = "hogan.freenode.net";
  $chat["port"] = "6667";
  
  //Your MySQL database login details
  $dblogin["host"]     = "localhost";
  $dblogin["username"] = "";
  $dblogin["password"] = "";
  $dblogin["database"] = "SAMDB";
  
  $stationID = 0; //The ID of your station on AudioRealm.com
  $sam["host"] = "85.149.212.32"; //The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x)
  $sam["port"] = "1221"; //The port SAM handles HTTP requests on. Usually 1221.
  
  //General options
  $showpic         = true; //Must we show pictures in now playing section? 
  $privaterequests = true;  //If False, AudioRealm will handle the requests
  $top10requests   = true;  //Must we show the top 10 requests on the now playing page?
  
  $picture_dir = "pictures/"; //Directory where all your album pictures are stored
  $picture_na  = $picture_dir."na.gif"; //Use this picture if the song has no picture
  
  //Row colors used
  $darkrow  = "#dadada";
  $lightrow = "#F6F6F6";  
 
/* ## ======================================== ## */
  
 require_once("common/form.php");
 require_once("common/db.php");
 require_once("common/functions.php");

 // Load EGPCS vars into globals (emulates register_globals = On in php.ini)
if (!empty($HTTP_ENV_VARS)) while(list($name, $value) = each($HTTP_ENV_VARS)) $$name = $value;
if (!empty($HTTP_GET_VARS)) while(list($name, $value) = each($HTTP_GET_VARS)) $$name = $value;
if (!empty($HTTP_POST_VARS)) while(list($name, $value) = each($HTTP_POST_VARS)) $$name = $value;
if (!empty($HTTP_COOKIE_VARS)) while(list($name, $value) = each($HTTP_COOKIE_VARS)) $$name = $value;
if (!empty($HTTP_SERVER_VARS)) while(list($name, $value) = each($HTTP_SERVER_VARS)) $$name = $value;
   

 $db = new DBTable();
 $db->connectdb($dblogin,$dblogin["database"]);
  
?>
Groetjes Johnny
Gebruikersavatar
Kees
Beheerder
Berichten: 3149
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: Fout op website met php versie

Ongelezen bericht door Kees »

http://www.broadcasterforum.nl/uitleg
Hier staat exact beschreven hoe het moet.
John Winter

Re: Fout op website met php versie

Ongelezen bericht door John Winter »

Dat heb ik ook gevolgt
???


Groeten
Johnny
Gebruikersavatar
Kees
Beheerder
Berichten: 3149
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: Fout op website met php versie

Ongelezen bericht door Kees »

//Your MySQL database login details
$dblogin["host"] = "localhost";
$dblogin["username"] = "";
$dblogin["password"] = "";
$dblogin["database"] = "SAMDB";

Je bent vergeten dit gedeelte in te vullen.
John Winter

Re: Fout op website met php versie

Ongelezen bericht door John Winter »

Hallo, kees, is dat je me vroeg uiteraard zonder wachtwoorden....


Daarom heb ik dat leeg gelaten....

Je wilde code hebben zonder wachtworde.

Groetjes
Johnny -> Fijne 2 paasdag nog....
Gebruikersavatar
Kees
Beheerder
Berichten: 3149
Lid geworden op: 28 nov 2005, 22:07
SAM-versie: 4.2.2.*
Database: MySQL
Windows: 11
Locatie: Bergen op Zoom
Contacteer:

Re: Fout op website met php versie

Ongelezen bericht door Kees »

Localhost veranderen in je ip nummer.
John Winter

Re: Fout op website met php versie

Ongelezen bericht door John Winter »

Werkte ook niet, maar heb mijn .nl domein naam weer terug zal proberen of het nuw el werkt :D



Mischienw as het op die gratis ftp...


Groet Johnny
Plaats reactie
  • Vergelijkbare Onderwerpen
    Reacties
    Weergaves
    Laatste bericht