Syntax error 2

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Remco S

Remco S

17/07/2007 16:03:00
Quote Anchor link
Me php file geeft deze error aan:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
Warning: file_get_contents(/home/snol/domains/snol.gratishosted.nl/public_htmlreclame3.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/snol/domains/snol.gratishosted.nl/public_html/include/config.php on line 53


hier onder volgen de config:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php

$pad
= '/home/snol/domains/snol.gratishosted.nl/public_html';
require_once('/home/snol/domains/snol.gratishosted.nl/public_html/include/tplparser.php');
$tpl = new Templatepower('/home/snol/domains/snol.gratishosted.nl/public_html/templates/design.tpl');
$tpl->assignInclude('inhoud', $content);
$tpl->prepare();

$site['url'] = 'http://snol.gratishosted.nl/';
$site['email'] = '[email protected]';
$site['email1'] = '[email protected]';
$site['titel'] = 'DrugsCartel';

if(IsSet($_COOKIE['dcid']) AND IsSet($_COOKIE['dcww'])) {
    $login_test = mysql_query('SELECT id,gb,heroine,boks,famforum,respect,fn,refferal,avatar,profiel,tijd,bank,kogels,attack,geld,gf,power,auto,wiel,tribal,motor,credits,status,granaat,gun,mes,armor,veilig,email,ww,missies,forum,fitness1,fitness2,health,land,overval FROM mat_user WHERE id="'.$_COOKIE['dcid'].'" AND ww="'.$_COOKIE['dcww'].'" AND activatie=1 LIMIT 0,1');

    if(mysql_num_rows($login_test) == 1) {
        $core = mysql_fetch_assoc($login_test);

        $ingelogd = 1;
        $tpl->newBlock('ingelogd') . $tpl->assign('smsjes', '<hr><img src="'.$site['url'].'g6.gif" alt=""> <a href="'.$site['url'].'sms">(<b>'.mysql_result(mysql_query('SELECT count(1) FROM mat_sms WHERE naam="'.$core['id'].'" AND gelezen=0'), 0).'</b>) nieuwe SMS berichten.</a>') . $tpl->newBlock('menuu');

        if($core['gf'] == 2)
            $tpl->newBlock('gfmenu');

        if(mysql_result(mysql_query('SELECT count(1) FROM mat_familie WHERE mid="'.$core['id'].'" AND status=1'), 0) == 1) {
            $hh = mysql_fetch_assoc(mysql_query('SELECT a.gfid, b.fn, b.power FROM mat_familie AS a, mat_user AS b WHERE a.mid="'.$core['id'].'" AND b.id=a.gfid LIMIT 0,1'));
            $familiepower = mysql_fetch_assoc(mysql_query('SELECT SUM(b.power) AS xxx FROM mat_familie AS a, mat_user AS b WHERE a.gfid="'.$hh['gfid'].'" AND a.status=1 AND b.id=a.mid AND b.health>0'));
            $tpl->newBlock('familie') . $tpl->assign(array('fmid' => $hh['gfid'], 'fmnaam' => $hh['fn'], 'fmlog' => mysql_result(mysql_query('SELECT count(1) FROM mat_famattacklog WHERE gb="'.$hh['gfid'].'"'), 0), 'fmleden' => (mysql_result(mysql_query('SELECT count(1) FROM mat_familie WHERE status=1 AND gfid="'.$hh['gfid'].'"'), 0)+1), 'fmpower' => number_format(($familiepower['xxx']+$hh['power']), 0, ',', '.')));
        }
elseif($core['gf'] == 2) {
            $familiepower = mysql_fetch_assoc(mysql_query('SELECT SUM(b.power) AS xxx FROM mat_familie AS a, mat_user AS b WHERE a.gfid="'.$core['id'].'" AND a.status=1 AND b.id=a.mid AND b.health>0'));
            $tpl->newBlock('familie') . $tpl->assign(array('fmid' => $core['id'], 'fmnaam' => $core['fn'], 'fmlog' => mysql_result(mysql_query('SELECT count(1) FROM mat_famattacklog WHERE gb="'.$core['id'].'"'), 0), 'fmleden' => (mysql_result(mysql_query('SELECT count(1) FROM mat_familie WHERE status=1 AND gfid="'.$core['id'].'"'), 0)+1), 'fmpower' => number_format(($familiepower['xxx']+$core['power']), 0, ',', '.')));
        }


        $tpl->query('UPDATE mat_user SET online="'.time().'", pagina="'.substr($_SERVER['REQUEST_URI'], 1).'" WHERE id="'.$core['id'].'"');
    }
else {
        $core['gb'] = 'Gast';
        $core['status'] = 'Gast';
        $core['gf'] = 0;
        $ingelogd = 0;
        $tpl->newBlock('reclame');
    }
}
else {
    $core['gb'] = 'Gast';
    $core['status'] = 'Gast';
    $core['gf'] = 0;
    $ingelogd = 0;
    $tpl->newBlock('reclame');
}


$rs = mysql_fetch_assoc(mysql_query('SELECT gb,respect FROM mat_user ORDER BY respect DESC LIMIT 0,1'));

$tpl->assignGlobal(array('reclame' => file_get_contents($pad.'reclame'.rand(1,3).'.php'), 'respect_naam' => $rs['gb'], 'respectlog' => mysql_result(mysql_query('SELECT count(1) FROM mat_respect_log WHERE gb="'.$core['id'].'"'), 0), 'attacks' => mysql_result(mysql_query('SELECT count(1) FROM mat_attack WHERE gb="'.$core['id'].'"'), 0), 'url' => $site['url'], 'titel' => $site['titel'], 'gebruikersnaam' => $core['gb'], 'border' => '#CEC8AE', 'phpself' => 'http://snol.gratishosted.nl'.htmlspecialchars($_SERVER['REQUEST_URI'])),'');

if($core['status'] == 'Verbannen') {
    echo '<center><br><br><br><br><img src="'.$site['url'].'img/ban.gif" alt=""></center>';
    exit;
}


if($ingelogd == 1)
    $tpl->newBlock('health') . $tpl->assign(array('health1' => round($core['health']/2), 'health2' => round(100-($core['health']/2)), 'umoney' => number_format($core['geld'], 0, ',', '.'))) . $tpl->newBlock('advertise');

?>
 
PHP hulp

PHP hulp

26/04/2024 12:20:19
 
Marco PHPJunky

Marco PHPJunky

17/07/2007 16:04:00
Quote Anchor link
Controleer is of de bestanden die je opvraagd wel op de juist locatie staan...
 
Remco S

Remco S

17/07/2007 16:06:00
Quote Anchor link
Die staan er ook aleen hij geeft die fout aan
 
Bo az

Bo az

17/07/2007 16:13:00
Quote Anchor link
Remco:
Die staan er ook aleen hij geeft die fout aan


Zoals de foutmelding al zegt, dat staan ze niet. Er mist een /
namelijk of wel in de variabele $pad of op regel 53

Edit:
Volgende keer gaar een betere toppic titel.
Ook is het een feit dat synax erros makkelijk zelf op te lossen zijn en jij er nu al 2 gepost hebt.
Gewijzigd op 01/01/1970 01:00:00 door Bo az
 
Koko

koko

17/07/2007 16:13:00
Quote Anchor link
Zijn de rechten ook juist? Anders kan je uiteraard niks lezen.
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.