Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Mar 2009
    Messaggi
    95

    Xkè tt a me? Come mai qst errore??

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <?php
    include("function.php");
    $pagine_consentite = array("home", "pagina1", "pagina2");
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Ultima Oline KR Italia - Unofficial Shared</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
    </head>
    <body>

    <div id="content">

    <div id="header">
    [img]images/header.jpg[/img]
    <map name="Map" id="Map"><area shape="rect" coords="198,186,566,207" href="#" target="_self" alt="Home" />
    </map>
    </div>
    <div id="navigation">
    <ul>[*]Home[*]News[*] Programs[*]Skill[*]Staff[/list]
    </div>

    <div class="right">
    <?php function contenuto();?>
    </div>

    <div class="left">
    <h2>~ News : </h2>


    <h2>~ Programs :</h2>
    <ul>[*]'Facet Reader,[*]'KRkeyFinder,[*]'Mul2Uop,[*]'Pandora,[*]'RunKR,[*]'SpyUO KR,[*]'Uop Packer,[*]'Uop Unpacker,[/list]
    <h2>~ Skill : </h2>
    <ul>[*]'Alchemy,[/list]
    <h2>~ Staff : </h2>


    </div>

    <div style="clear: both;"> </div>

    <div id="footer">
    © Copyright by sOoN | Designed by sOoN & Black Devil | Thanks to Black Devil and eKo
    </div>

    </div>

    </body>
    </html>


    mi da qst errore:
    Parse error: syntax error, unexpected ';', expecting '{' in /home/admin/domains/kingdomreborn.it/public_html/sitowebprova/index.php on line 32

  2. #2
    Se capitano tutte a te i motivi possono essere due:
    1) Non sai quello che stai scrivendo e quindi commetti errori.
    2) Sai quello che stai scrivendo ma sei particolarmente distratto.

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <?php
    	include("function.php");
    	$pagine_consentite = array("home", "pagina1", "pagina2");
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Ultima Oline KR Italia - Unofficial Shared</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
    </head>
    <body>
    
    	<div id="content">
    
    		<div id="header">
    			[img]images/header.jpg[/img]
    			<map name="Map" id="Map"><area shape="rect" coords="198,186,566,207" href="#" target="_self" alt="Home" />
    			</map>
    		</div>
    		<div id="navigation">
    		<ul>
    			[*]Home
    			[*]News
    			[*] Programs
    			[*]Skill
    			[*]Staff
    			[/list]
    		</div>
    
    		<div class="right">
    			<?php function contenuto();?>
    		</div>
    
    		<div class="left">
    			<h2>~ News : </h2>
    			
    
    			<h2>~ Programs :</h2>
    			<ul>
    				[*]'Facet Reader,
    				[*]'KRkeyFinder,
    				[*]'Mul2Uop,
    				[*]'Pandora,
    				[*]'RunKR,
    				[*]'SpyUO KR,
    				[*]'Uop Packer,
    				[*]'Uop Unpacker,
    			[/list]
    			<h2>~ Skill : </h2>
    			<ul>
    				[*]'Alchemy,
    			[/list]
    			<h2>~ Staff : </h2>
    			
    
    		</div>
    
    		<div style="clear: both;"> </div>
    
    		<div id="footer">
    			© Copyright by sOoN | Designed by sOoN & Black Devil | Thanks to Black Devil and eKo
    		</div>
    
    	</div>
    
    </body>
    </html>
    la riga incriminata è quella che recita:
    codice:
    <?php function contenuto();?>
    che ovviamente non significa niente poichè una funzione si dichiara così:
    Codice PHP:
    <?PHP

       
    function contenuto() {
          
    // fai qualcosa
       
    }

    ?>
    che è esattamente l'errore che ti viene ritornato, ovvero dopo "function contenuto()" non si aspetta il ; ma bensi le parentesi graffe per cominciare il corpo della funzione...
    Administrator of NAMDesign.Net

  3. #3
    Il titolo della discussione non rispetta il regolamento

    http://forum.html.it/forum/showthrea...hreadid=412253
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.