Hjælp med en fil...
Hej jeg har lige fundet en counter inde på hotscripts.com, men jeg kan ikke få den til at virke...Problemet er med en fil som jeg ikke rigtig ved hvad jeg skal gøre med...
<?
/* Site Stats: init.php (c) C U Online 2002
* Version: 1.0
* Author: Debbie Dyer
* Date: 05/04/02
*
* CONDITIONS OF USE:
* You may use/modify/distribute this code with the following condition -
* this notice must remain at the top of the source code.
* No guarantees are expressed or implied.
*/
// Name of site
$website = "Test Site"; // <- set
// Login name/pass for admin
$admin_id = "admin"; // <- set
$admin_pass = "blah"; // <- set
// MYSQL vars
$host = "localhost"; // <- set
$user = "blah"; // <- set
$pass = "blah"; // <- set
$db = "blah"; // <- set
class object {};
$APP = new object;
$APP->host = "http://www.blah.net/site_stats"; // <- set to host
$APP->dir = "/home/username/public_html/site_stats"; // <- set to directory
$APP->images = "$APP->host/pics";
$APP->lib = "$APP->dir/lib";
require("$APP->lib/database.php");
require("$APP->lib/stats.php");
?>
Jeg ved godt hvad jeg skrive ved mySQL men ikke ved det andet...
jeg får følgende fejl..
Warning: Failed opening 'init.php' for inclusion (include_path='.:/usr/local/lib/php') in /web/www.x-gate.dk/www/spar2_klub/inc/header.php3 on line 1
Fatal error: Call to undefined function: log_user() in /web/www.x-gate.dk/www/spar2_klub/inc/header.php3 on line 3
Kan i hjælpe..?
// Henrik Henneberg
