Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Errore in un singolo pc, con qualsiasi browser

    Una pagina creata in php rende poi un html che in un singolo pc viene mal interpretato, con qualsiasi browser (provato con IE, FireFox e Opera).
    Al posto della pagina viene resa un misto tra html, messaggi di connessione socket riuscita, toglie il tag <html> iniziale e altre parti...
    Da cosa potrebbe dipendere?


    screenshot--> www.lenar.it/ajax/screen.jpg
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    posta tutto il codice... che dò un' occhiata

  3. #3
    se su altri pc il problema non si pone con nessun browser credo sia un problema locale anche se è molto strano :master:

  4. #4
    Codice PHP:
    <? session_start(); ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <script language="javascript">
    <!-- 
    var s_width =''; 
    var s_height =''; 
    s_width=screen.width 
    s_height=screen.height 

    if (s_width == "600"){ 
    <? $r=1?>

    if (s_width == "640"){ 
    <? $r=1?>


    if (s_width == "800"){ 
    <? $r=1?>


    if (s_width == "1024"){ 
    <? $r=2?>
    }

    if (s_width == "1152"){ 
    <? $r=2?>


    if (s_width == "1280"){ 
    <? $r=2?>

    //--> 
    </script>
    <?
    include("wcheck.php");
    $conn connetti();
    $query mysql_query("UPDATE utentiz SET luogo=NULL WHERE ip='".$REMOTE_ADDR."'",$conn);
    $biblioteca mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '11' ",$conn);
    $karsio mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '13' ",$conn);
    $laboratorio mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '1' ",$conn);
    $piazza mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '8' ",$conn);
    $ponte mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '10' ",$conn);
    $pub mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '6' ",$conn);
    $raffineria mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '7' ",$conn);
    $tempio mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '5' ",$conn);
    $stelgard mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '15' ",$conn);
    $bibliomysql_fetch_row($biblioteca);
    $biblio1="Utenti Online: "$biblio[0];
    $karmysql_fetch_row($karsio);
    $kar1="Utenti Online: "$kar[0];
    $labmysql_fetch_row($laboratorio);
    $lab1="Utenti Online: "$lab[0];
    $piamysql_fetch_row($piazza);
    $pia1="Utenti Online: "$pia[0];
    $ponmysql_fetch_row($ponte);
    $pon1="Utenti Online: "$pon[0];
    $pubzmysql_fetch_row($pub);
    $pubz1="Utenti Online: "$pubz[0];
    $rafmysql_fetch_row($raffineria);
    $raf1="Utenti Online: "$raf[0];
    $temmysql_fetch_row($tempio);
    $tem1="Utenti Online: "$tem[0];
    $stemysql_fetch_row($stelgard);
    $ste1="Utenti Online: "$ste[0];

    $cbiblioteca mysql_query("SELECT COUNT(*) FROM biblioteca",$conn)or die (mysql_error());
    $claboratorio mysql_query("SELECT COUNT(*) FROM lab",$conn)or die (mysql_error());
    $cpiazza mysql_query("SELECT COUNT(*) FROM piazza",$conn)or die (mysql_error());
    $cponte mysql_query("SELECT COUNT(*) FROM ponte",$conn)or die (mysql_error());
    $cpub mysql_query("SELECT COUNT(*) FROM pub",$conn)or die (mysql_error());
    $craffineria mysql_query("SELECT COUNT(*) FROM raffineria",$conn)or die (mysql_error());
    $ctempio mysql_query("SELECT COUNT(*) FROM tempio",$conn)or die (mysql_error());

    //
    $cbiblioz='';
    $clabz='';
    $cpiaz='';
    $cpubz='';
    $cpontz='';
    $crafz='';
    $ctempz='';
    //
    $cbibliomysql_fetch_row($cbiblioteca);
    if(
    $cbiblio[0]!='0'){
    $cbiblioz="Luogo Attivo";
    }
    $clabmysql_fetch_row($claboratorio);
    if(
    $clab[0]!='0'){
    $clabz="Luogo Attivo";
    }
    $cpiamysql_fetch_row($cpiazza);
    if(
    $cpia[0]!='0'){
    $cpiaz="Luogo Attivo";
    }
    $cpubbmysql_fetch_row($cpub);
    if(
    $cpubb[0]!='0'){
    $cpubz="Luogo Attivo";
    }
    $cponteemysql_fetch_row($cponte);
    if(
    $cpontee[0]!='0'){
    $cpontz="Luogo Attivo";
    }
    $crafmysql_fetch_row($craffineria);
    if(
    $craf[0]!='0'){
    $crafz="Luogo Attivo";
    }
    $ctemmysql_fetch_row($ctempio);
    if(
    $ctem[0]!='0'){
    $ctempz="Luogo Attivo";
             
    disconnetti($conn);
    }

    ?>



    <title>Untitled Document</title>
    <script type="text/javascript" src="script1.js"></script>
    <script type="text/javascript" src="script2.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script>parent.rightFrame.location.replace("framedx.php?luogo=99");</script>

    </head>
    <body text="#FFFFFF">
    <div align="center">  
    <table width="651px" height="436px" cellpadding="2" cellspacing="1" border="0" class="forumline"><tr>
    <td class="row3" align="center" width="649px" height="436px">
    [img]mappalenar.jpg[/img]
    <? echo"
    <map name=\"mappa\">
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Casin&ograve;[/b]
    ', 'direction', 'southwest', 'trail','true', true))\" href=\"luoghi/gioco/casino_out.php\" coords=\"286,432,313,434,315,476,337,481,331,502,274,502,274,463,282,462\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Raffineria[/b]
    "
    .$raf1."
    "
    .$crafz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/raffineria/raffineria_out.php\" coords=\"24,144,90,140,156,141,158,310,154,292,82,290,47,301,23,302\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Biblioteca[/b]
    "
    .$biblio1."
    "
    .$cbiblioz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/biblioteca/biblioteca_out.php\" coords=\"222,352,186,349,182,334,174,339,156,333,174,326,203,329,206,312,218,315,221,330,272,333,272,346,253,353,256,362,262,363,262,368,271,368,272,403,264,407,265,414,272,412,274,445,267,448,267,459,274,456,272,489,273,503,186,504,185,349\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Mercato[/b]', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/mercato/mercato_out.php\" coords=\"397,221,396,347,411,358,460,351,452,230,426,228,422,216\">
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Laboratorio[/b]
    "
    .$lab1."
    "
    .$clabz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/lab/lab_out.php\" coords=\"393,300,380,295,366,295,355,300,357,303,354,306,356,326,353,326,351,395,367,394,374,383,377,383,369,360,381,348,394,347,397,313,394,306\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Tempio[/b]
    "
    .$tem1."
    "
    .$ctempz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/tempio/tempio_out.php\" coords=\"470,74,472,85,464,86,465,499,508,454,487,443,493,430,518,430,514,357,562,300,586,302,580,75,552,70,544,34,496,28,475,35,476,70\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Accademia[/b]', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/accademia/accademia_out.php\" coords=\"178,340,41,331,23,341,23,363,22,502,183,505,184,336\" >
      <area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Pub[/b]
    "
    .$pubz1."
    "
    .$cpubz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/pub/pub_out.php\" coords=\"167,138,171,139,171,108,188,100,187,91,206,92,205,78,210,83,211,90,219,90,214,75,220,77,221,80,221,84,221,88,227,90,231,91,235,92,233,98,238,114,247,117,248,134,251,140,253,328,224,329,220,307,200,311,205,327,170,323\" >
    </map>"
    ;?>
    </td></tr></table>
    <?
    $conn 
    connect();
    $query=mysql_query("SELECT messaggio FROM mex",$conn);
    $fetch=mysql_fetch_row($query);
    echo
    "<marquee>".$fetch[0]."</marquee>";
    disconnetti($conn);
    ?>
     </div>
    <table width="100%">
    <tr>
    <td width="100%"><div align="center">
    <table width="95%" cellpadding="2" cellspacing="1" border="0" class="forumline" align="center">
    <tr>
    <td class="row3" align="center" width="20%">
    [url="luoghi/pub/pub_out.php"]Dark Lion Pub[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/piazza/piazza_out.php"]Piazza Principale[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/lab/lab_out.php"]Laboratorio Clonazioni[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/tempio/tempio_out.php"]Tempio dei Cultisti[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/raffineria/raffineria_out.php"]Raffineria della Droga[/url]
    </td>
    </tr>
    <tr>
    <td class="row3" align="center" width="20%">
    [url="luoghi/biblioteca/biblioteca_out.php"]Biblioteca[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/gioco/casino_out.php"]Casin&ograve;[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="bande/gestione_out.php"]Sala del Consiglio[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/ponte/ponte_out.php"]Ponte[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/accademia/accademia_out.php"]Accademia[/url]
    </td>
    </tr>
    <tr>
    <td class="row3" align="center" width="20%">
    [url="luoghi/mercato/mercato_out.php"]Mercato[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/psiloc/psiloc_out.php"]Quartier Generale[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/hotel/hotel_out.php"]Hotel[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/fogne/fogne_out.php"]Fogne[/url]
    </td>
    <td class="row3" align="center" width="20%">
    [url="luoghi/sotterranei/sott_out.php"]Sotterranei[/url]
    </td>
    </tr>
    </div>
    </body>
    </html>

    Questo è il frame centrale, quello che nell'img è più sulla destra.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  5. #5
    up
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  6. #6
    Utente di HTML.it L'avatar di luca200
    Registrato dal
    Apr 2002
    Messaggi
    4,120
    Richiama la stessa pagina su pc diversi e confronta il codice html che viene ricevuto nei vari casi.
    Se il codice è lo stesso, il problema è sul client. Se il codice varia, il problema è sul server.

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.