<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Explorer: Impossibile aprire il sito Internet]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,<br />
ragazzi ho un problema che proprio non riesco a risolvere.. e per lo meno in qualche anno di esperienza.. non  mi si era mai presentato...Sto costruendo una pagina e all'interno sto mettendo una galleria open source.<br />
Molto carina e semplice, che mi crea in automatico le thumbd e mi apre la foto utilizzando ajax.<br />
Qui un'esempio...</p>
<p dir="auto"><a href="http://essenzaweb.com/site/works/esempio" rel="nofollow ugc">essenzaweb.com/site/works/esempio</a></p>
<p dir="auto">Il problema...??<br />
Con tutti i browser si apre dico tutti...<br />
tranne che con internet explorer...<br />
con cui da un errore:</p>
<p dir="auto">"Impossibile aprire il sito Internet Operazione terminata"</p>
<p dir="auto">Vi giuro che sto impazzendo, mi son commentato tutto il codice e scommentato pian piano...</p>
<p dir="auto">L'errore  me lo da appena  inserisco questo dopo il body:</p>
<pre><code>[COLOR=#007700]&lt;[/COLOR][COLOR=#0000bb]table width[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"946" [/COLOR][COLOR=#0000bb]height[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"595" [/COLOR][COLOR=#0000bb]border[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]cellpadding[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]cellspacing[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"0" [/COLOR][COLOR=#0000bb]background[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"http://www.giorgiotave.it/forum/images/sfondo.jpg" [/COLOR][COLOR=#0000bb]style[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"width:900px; height:550px;border:1px solid #1b1a18;"[/COLOR][COLOR=#007700]&gt;
[/COLOR]
</code></pre>
<p dir="auto">Vi giuro che da impazzire...<br />
Spero in un vostro aiuto...</p>
<p dir="auto">Buona serata.<br />
Giuseppe</p>
]]></description><link>https://dev.connect.gt/topic/94677/explorer-impossibile-aprire-il-sito-internet</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 05:46:44 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/94677.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Feb 2009 08:37:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Explorer: Impossibile aprire il sito Internet on Wed, 11 Feb 2009 16:27:36 GMT]]></title><description><![CDATA[<p dir="auto">se può interessare questa galleria lho scaricata da quì...</p>
<p dir="auto"><a href="http://fennecfoxen.org/pyxy/gallery" rel="nofollow ugc">fennecfoxen.org/pyxy/gallery</a></p>
<p dir="auto">.,... ma mai a nessuno èp successo questo.,..??<br />
mi confermate che è un porblema veramente strano!!!!!</p>
<p dir="auto">ciao ciao</p>
]]></description><link>https://dev.connect.gt/post/808146</link><guid isPermaLink="true">https://dev.connect.gt/post/808146</guid><dc:creator><![CDATA[fantasma]]></dc:creator><pubDate>Wed, 11 Feb 2009 16:27:36 GMT</pubDate></item><item><title><![CDATA[Reply to Explorer: Impossibile aprire il sito Internet on Wed, 11 Feb 2009 10:12:51 GMT]]></title><description><![CDATA[<p dir="auto">Ciao Digital,<br />
anche io in effetti non vedo nessun errore...<br />
e per questo che la cosa mi fa impazzire...</p>
<p dir="auto">questo è il suo codice:</p>
<pre><code class="language-html">&lt;?php pyxyGo(); /* &lt;-- action dispatcher */ 
/*
    You should not edit this file. If you make changes to this file,
    and upgrade to a new version later, you will lose your changes.
    Instead, save a copy of the generated page to the file 'index.html'
    and edit that, instead. Pyxy will serve the contents of index.html
    automatically, if it is    available, instead of the default page.
    
 
 */

IfModSince(0); # If-Modified-Since
?&gt;

&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="moo.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="pyxy.js"&gt;&lt;/script&gt;
&lt;style type="text/css"&gt;
/* You should probably put this CSS in a separate file if you're editing this page. */
    body {
    
    /* background color */
    background: #000;
    color: #FFF; 
    }
    
    #pyxy table, 
    #pyxy table caption,
    #pyxy table tbody tr th,
    #pyxy table tbody tr td { 
    
    /* table settings */
    background: #1b1a18; 
    text-align: center;
    font-family: sans-serif;
    
    } 

 #pyxy table { width: 674px;} 
 #pyxy td {  
    width: 25%;   /* change this if you use more/less than 4 rows */
    vertical-align: top;
    border: #565 1px solid;
    } 
    
 #pyxy * a:hover, #pyxy * a:active {
      
      color: #cfc;
      
      /* eek ozone */
      
      
      }
 #pyxy * a, 
 #pyxy * a:visited,
 #pyxylightCaption a,
 #pyxylightCaption a:visited {
    /* navigation links */
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    margin-left: 2pt;
    margin-right: 2pt;

    } 
 #pyxy * b { /* navigation 'current' */
    color: white;
    margin-left: 2pt;
    margin-right: 2pt;
    } 
 
 #pyxy * a img { border: 1px #121 solid; margin: 0px;}
     
 #pyxy * div { margin: 0px; padding: 0px; } /* caption container */
 #pyxy * p,
 #pyxylightCaption p { /* captions */
    color:#FFF;
    font-size:12px;
    margin: 0px;
    padding: 0px;
    text-align: center;
    }
 #pyxylightCaption { text-align: center; }
    
 #pyxy table caption, #pyxy table { /* center these */
     margin-left: auto; margin-right: auto;
     }
 #pyxy th {
     font-weight: normal;
     border: 1px solid black;
     }
 

 #pyxy * th .nav-prev { float: left; }
 #pyxy * th .nav-next { float: right; }

 /* the rest of the page */
 #top,#bottom { text-align: center; width: 600px; margin-left: auto; margin-right: auto;}
 a { color: #ccf; }
 
 
 #pyxylight {
    background-color:#898;
    }
 #overlay {
    background-color: #010;
    }
 
&lt;/style&gt;
&lt;title&gt;&lt;?php echo($title);?&gt;&lt;/title&gt;
&lt;/head&gt;


&lt;body&gt;
&lt;BR&gt;
&lt;BR&gt;

&lt;div align="center"&gt;
&lt;table width="946" height="595" border="0" cellpadding="0" cellspacing="0" background="images/sfondo.jpg" style="width:900px; height:550px;border:1px solid #1b1a18;"&gt;



 &lt;tr&gt;
    &lt;td  colspan="2" height="84" align="right" valign="top" style="height:117px;"&gt;&lt;img src="images/head.png" alt="head" width="720" height="77" style="top:10px;margin:3px" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td width="224" valign="top" align="left"&gt;
      &lt;img src="images/left_home.png" width="35" height="70" /&gt;&lt;a href="home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','images/home_on.png',1)"&gt;&lt;img src="images/home.png" name="Image11" width="120" height="70" border="0" id="Image11" /&gt;&lt;/a&gt;&lt;br /&gt;
    &lt;img src="images/left_works.png" width="15" height="95" /&gt;&lt;img src="images/works_on.png" width="160" height="95" /&gt;&lt;br /&gt;
        &lt;img src="images/left_about.png" width="25" height="87" /&gt;&lt;a href="about.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/about_on.png',1)"&gt;&lt;img src="images/about.png" alt="about" name="Image5" width="130" height="87" border="0" id="Image5" /&gt;&lt;/a&gt;&lt;a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/works_on.png',1)"&gt;&lt;/a&gt;&lt;br /&gt;
        &lt;img src="images/left_bio.png" width="44" height="99" /&gt;&lt;a href="bio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/bio_on.png',1)"&gt;&lt;img src="images/bio.png" alt="bio" name="Image7" width="82" height="99" border="0" id="Image7" /&gt;&lt;/a&gt;&lt;br /&gt;
        &lt;img src="images/left_contacts.png" width="19" height="90" /&gt;&lt;a href="contacts.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/contacts_on.png',1)"&gt;&lt;img src="images/contacts.png" alt="contacts" name="Image9" width="203" height="90" border="0" id="Image9" /&gt;&lt;/a&gt;&lt;br /&gt;
        &lt;br /&gt;
     &lt;/td&gt;
      &lt;td width="674" align="left" valign="top"&gt; 

  &lt;div id="top"&gt;
    &lt;h1&gt;&lt;?php echo($title);?&gt;&lt;/h1&gt;
    &lt;!--&lt;p&gt;BETA BETA BETA BETA&lt;/p&gt;  --&gt;
  &lt;/div&gt;
  &lt;div id="pyxy"&gt;
        &lt;noscript&gt;
            &lt;p&gt; We're sorry. This gallery requires JavaScript.&lt;br/&gt;
                Please accept our humble apologies. (At least it's not
                Flash!)&lt;/p&gt;
        &lt;/noscript&gt;
  &lt;/div&gt;
  &lt;script&gt;new pyxyGallery("pyxy");&lt;/script&gt;
  
    &lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;?php
exit;

function pyxyGo(){
    if(!isset($_REQUEST['act'])){ # default action
        if(is_readable("index.html")){
            IfModSince(filemtime("index.html"));
            echo(readfile("index.html"));
            exit;
        }
        global $title;
        $title = getTitle();
        return;
    } elseif(($act=$_REQUEST['act']) == "json") {
        pyxyJson();
    } elseif($act == "resize"){
        pyxyResize();
    }
    exit;
}

function pyxyJson(){
    $dir = loadDir();
    IfModSince($dir['lastmod']);
    header("Content-type: text/plain; chaset=UTF-8");

    echo(getJSON($dir));
}


function loadDir($dir = '.'){
    $lastmod = 0;
    $dirs = Array();
    $imgs = Array();
    
    $dh = opendir($dir);
    while (($file = readdir($dh)) !== false) {
        if(is_dir($file)){ $dirs[] = $file; }
        elseif(is_readable($file)){
            $ext = getValidExtension($file);
            if($ext){
                $when = filemtime($file);
                $imgs[$file] = $when;
                if($when &gt; $lastmod){ $lastmod = $when; }
            } # end if ft
        }# end elseif
    } #end while
    closedir($dh);
    
    return array("name" =&gt; $dir,
                
                "lastmod" =&gt; $lastmod,
                "images" =&gt; $imgs,
                "dirs" =&gt; $dirs);

} #end load_dir

function getValidExtension($file){
    foreach(array("jpg","png","gif") as $pft){
        $ext = strtolower(substr($file, - strlen($pft)));
        if($ext == $pft){
            return $ext;
        }
    }
    return 0;
}


    
function getJSON($dir){
    $is = Array();
    $imgs = $dir['images'];
    foreach($imgs as $i =&gt; $m){
        $comma = ', '; # readability
        $isize = GetImageSize($i,$info);
        $ipi = "{}";
        if (isset($info["APP13"])) {
               $iptc = iptcparse($info["APP13"]);
               $ipi = array();
               foreach($iptc as $skey =&gt; $sval){
                  $sipi = array();
                  foreach($sval as $k =&gt; $v){
                      $v = htmlentities($v);
                      $v = addslashes($v);
                      $v = str_replace("\n",'\n',$v);
                      $v = str_replace("\r",'\r',$v);
                      $sipi[] = "\"$k\": \"$v\"";
                   }
                   $ipi[] = "\"$skey\": { " . implode($comma,$sipi) . " }";
               }
               $ipi = '{' . implode($comma,$ipi) . '}';
        }
        
        
        $exifi = "{}";
        if(function_exists("exif_read_data") &amp;&amp;
            getValidExtension($i) == "jpg"){
            $exifdata = exif_read_data($i,'ANY_TAG',1);
            if($exifdata){
                $exifi = array();
                foreach($exifdata as $section =&gt; $secdata){
                    $sres = array();
                    foreach($secdata as $k =&gt; $v)
                        $v = htmlentities($v);
                          $v = addslashes($v);
                          $v = str_replace("\n",'\n',$v);
                          $v = str_replace("\r",'\r',$v);
                        $sres[]= "\"$k\": \"$v\"";
                    $exifi[] = "\"$section\": { " . implode($comma,$sres) ." }";
                }
                $exifi = "{" . implode($comma,$exifi) . "}";
            }            
        }
        
        $is[] = '{ "url": "' . $i .'", ' .
                '"date": ' . $m . $comma .
                '"width": ' . $isize[0] . $comma . 
                '"height": ' . $isize[1] . $comma .
                '"filesize": ' . filesize($i) . $comma .  
                '"iptc": ' . $ipi . $comma . 
                '"exif": ' . $exifi . 
                '}';
        }
    $json = '({'
           . "\"name\" : \"" . $dir['name'] . "\", \n" 
            . "\"images\" : [\n" . implode(",\n",$is) . "\n]"
            . '})';
    return $json;
    }
    
    
function pyxyResize(){
    $filename = basename($_REQUEST['file']);
    $width = isset($_REQUEST['width']) ? $_REQUEST['width'] : 160;
    $height = isset($_REQUEST['height']) ? $_REQUEST['height'] : 160;
    $dim = Array($width,$height);
    
    doResize($filename,$dim);
}

function doResize($filename,$dimensions,$method="ImageCopyResized"){
    IfModSince(filemtime($filename));
    $olddimensions = GetImageSize($filename);
    $wide = $olddimensions[0];
    $high = $olddimensions[1];
    
    $dimensions = scaledim($olddimensions,$dimensions);
    $newW = $dimensions[0];
    $newH = $dimensions[1];
    
    if($wide &lt; $newW &amp;&amp; $high &lt; $newH){
        header("Location: $filename");
        exit; # redirect to file if it's small enough already
    }
    if(function_exists("string_exif_thumbnail") &amp;&amp; getValidExtension($file) == "jpg"){
        $thumb =  exif_thumbnail($filename, $xWidth,$xHeight,$xImageType);
        if($xWidth &lt; $newW &amp;&amp; $xHeight &lt; $newH){
            header("Cache-control: public, max-age=86400");
            header("Content-type: " . image_type_to_mime_type($xImageType));
            echo($thumb);
        }
    }
    $img = loadImage($filename);
    $newimg = imageCreateTrueColor( $newW, $newH );
    
    $rrf = 4; # resize-resample factor
    if($wide &gt; $newW * $rrf || $high &gt; $newH * $rrf){
        $tempimg = imageCreateTrueColor( $newW * $rrf, $newH * $rrf );
        ImageCopyResized(  $tempimg, $img,    0, 0, 0, 0, $newW * $rrf, $newH * $rrf, $wide, $high);
        ImageCopyResampled($newimg, $tempimg, 0, 0, 0, 0, $newW, $newH, $newW * $rrf, $newH * $rrf);
        ImageDestroy($tempimg);
    } else {
        ImageCopyResampled($newimg, $img, 0, 0, 0, 0, $newW, $newH ,$wide, $high);
    }
    
    //$method($newimg, $img, 0, 0, 0, 0, $newW, $newH ,$wide, $high);
    ImageDestroy ($img);
    
    ob_start();
    ImageJpeg($newimg,'',60);
    $ImageData = ob_get_contents();
    $ImageDataLength = ob_get_length();
     ob_end_clean();
     ImageDestroy($newimg);
     
     header("Cache-control: public, max-age=86400");
    header('Content-Type: image/jpeg');
    header("Content-Length: " . $ImageDataLength);
    echo $ImageData;
    
}
function loadImage($filename){
    $ext = getValidExtension($filename);
    if($ext == "gif"){
        return ImageCreateFromGIF($filename);
    } elseif($ext == "jpg" || $ext == "jpeg"){
        return ImageCreateFromJPEG($filename);
    } elseif($ext == "png") {
        return ImageCreateFromPNG($filename);
    }
}


function scaledim($from,$to){
    $newW = $wide = $from[0];
    $newH = $high = $from[1];
    $maxW = $to[0];
    $maxH = $to[1];

    if($newH &lt; $maxH &amp;&amp; $newW &lt; $maxW){
        return $from;
    }

    $wrat = $maxW / $wide;
    $hrat = $maxH / $high;


    if($newH &gt; $maxH){
       $newH = $high * $hrat;
       $newW = $wide * $hrat;
    }
    if($newW &gt; $maxW) { #check both dimensions
       $newH = $high * $wrat;
       $newW = $wide * $wrat;
        }
    $newH = floor($newH);
    $newW = floor($newW);
    
    $dim[0] = $newW;
    $dim[1] = $newH;
    return $dim;
}



function IfModSince($lastmod){
    if ($lastmod){ 
        $mself = filemtime($_SERVER['SCRIPT_FILENAME']) ;
        if($mself &gt; $lastmod) $lastmod = $mself; 
    
    /*if(file_exists('pyxy.pref.inc')){
            $mpref = filemtime('pyxy.pref.inc');
            if($mpref &gt; $lastmod) $lastmod = $mpref;
    } */
        $cond = isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : 0;
        if ($cond and $_SERVER['REQUEST_METHOD'] == 'GET' and strtotime($cond) &gt;= $lastmod) {
            header('HTTP/1.0 304 Not Modified');
            exit;
        } #end if cond
        header('Last-Modified: ' . date('r',$lastmod));
    } #end if lastmod
} # end IfModSince




function getTitle(){    
    $x = explode("/",$_SERVER['SCRIPT_FILENAME']);
    $x = str_replace('_', ' ', $x);
    $x = $x[sizeof($x) - 2];
    $x[0] = strtoupper($x[0]);
    return $x;
}

?&gt;
</code></pre>
<p dir="auto">e oltre a questo la galleria è composta da due file javascript che come puoi vedere sono inclusi nel codice...<br />
ahh naturalemente.. questo errore mi viene dato solo da quando ho provato ad inserire la mia tabella di layout. se metto lo script originale  tutto funge...</p>
<p dir="auto">grazie giuseppe</p>
]]></description><link>https://dev.connect.gt/post/808145</link><guid isPermaLink="true">https://dev.connect.gt/post/808145</guid><dc:creator><![CDATA[fantasma]]></dc:creator><pubDate>Wed, 11 Feb 2009 10:12:51 GMT</pubDate></item><item><title><![CDATA[Reply to Explorer: Impossibile aprire il sito Internet on Wed, 11 Feb 2009 09:23:41 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Ciao <a href="http://fantasma.giorgiotave.it/" rel="nofollow ugc">fantasma</a> e benvenuto nel forumGT!</strong></p>
<p dir="auto">Nel pezzo di codice da te postato, non è presente nessun'errore.</p>
<p dir="auto">L'errore è probabilmente nella parte antecedente a questo, prova a postare qualcosa di più, e vediamo com'è!</p>
<p dir="auto">Io anche con quel pezzo di codice commentato...con IE7 non riesco a vederlo!</p>
<p dir="auto">Poi ho notato anche che la pagina viene completamente caricata da IE, e successivamente da errore, quindi il problema deve essere nella richiesta asincrona delle immagini!</p>
]]></description><link>https://dev.connect.gt/post/808137</link><guid isPermaLink="true">https://dev.connect.gt/post/808137</guid><dc:creator><![CDATA[digital.daigor]]></dc:creator><pubDate>Wed, 11 Feb 2009 09:23:41 GMT</pubDate></item></channel></rss>