Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
M

matrioscka

@matrioscka
Non seguire Segui
Informazioni
Post
4
Discussioni
2
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • Video Mixer Online
    M matrioscka
    Collaborazioni WEB e Lavoro: offro e cerco

    Sto cercando un'applicazione che mi permetta di editare file video online.
    Qualcosa come JumpCut o il Mixer Video di Youtube.

    Applicazione da poter implementare sul mio sito.

    Qualcuno di voi è in grado di realizzare questo tipo di applicazione o mi sa indicare qualcuno che lo sappia fare?

    Grazie


  • Aiuto per Random
    M matrioscka
    Coding

    fdalesio

    questo script l'avevo fatto 5-6 anni fa 😄
    è rimasto solo in qualche sito russo..
    cmq, funziona così, legge tutti i files da una cartella, se sono .gif o .GIF le mette in un array numerato, poi genera un numero rand e pesca l'immagine dall'array

    <?php 
    #This script has been developped by Francesco D'Alesio [[email protected]] 
    #Please feel free to contact me for any reason 
    #All you have to do is to change this two variables. Remember to use the absolute path for the first variable, starting with a slash 
    $absolute = "mes_images_a_afficher"; 
    $url = "http://www.monsite.com/mesphotos/mes_images_a_afficher"; 
    #You may now add in the img html tag the url of this script 
    #<IMG SRC="http://yourdomain.com/whatever/imgrandom.php3"> 
    # DO NOT CHANGE ANYTHING BELOW THIS LINE 
    $randir = dir("$absolute"); 
    $num = 0; 
    while($read = readdir($randir)) 
    { 
    if ($tmp[1] == "gif" || $tmp[1] == "GIF") 
    { 
    $imgsrc[] = $read; 
    $num++; 
    } 
    } 
    srand((double)microtime()*1000000); 
    $imgrandom = rand(0,($num-1)); 
    header("location: $url/$imgsrc[$imgrandom]"); 
    ?>
    

    poi invece che fare header...
    prendi l'immagine e la usi per i tuoi scopi

    se hai dubbi chiedi

    Ho creato una dyrectory "avatar" nella root. All'interno di questa directory ho inserito le immagini. Ho modificato la variabile absolute nel seguente modo: $absolute = "/avatar";

    Ma mi viene restituito il seguente errore:

    Warning: dir(/www.recensire.it/avatar/) [function.dir]: failed to open dir: No such file or directory in /mounted-storage/home15a/sub003/sc17766-MZEK/www.recensire.it/random.php on line 10

    Cosa può essere?

    Grazie


  • Aiuto per Random
    M matrioscka
    Coding

    Grazie Mille,
    appena riesco lo provo e ti so dire;)


  • Aiuto per Random
    M matrioscka
    Coding

    Ciao,
    ho questo tipo di problema:

    Nel mio sito, quando un utente effettua la registrazione, ha la possibilità di inserire una foto che carica direttamente dal suo pc.
    Se l'utente lascia il campo di upload della foto vuoto, il sistema gli assegna
    un'immagine di default (noavatar.gif).

    Vorrei modificare lo script in modo tale che se l'utente lascia vuoto il campo di upload, il sistema gli assegna un immagine random pescata in una cartella del server.

    Mi potete dare qualche suggerimento?

    Grazie

    Questo è il codice della pagina

     <?
        
    
        include "init.php";
        
        $title = "www.recensire.it - Pagina di Registrazione";
        $desc = "Pagina di registrazione del sito www.recensire.it";
        
        $sscript = "";
        $random_rss = get_random_rss();
        include "./header.php";
    
        
        if(!isset($_GET['action'])) {
            
    
                $extra = "";
                $link = "./authors.php?action=register_ok";
            
                $temp = template("./templates/register");
                eval("\$show_register_form = \"$temp\";");
        
        }
    
        else {
        
             
    
            if ($action=="register_ok") {
                check_magic_quotes();
            
                foreach($_POST as $key => $val)
                    $_POST[$key] = addslashes(trim($val));
                    
                if($_POST['a_pass1'] != $_POST['a_pass2'])     {
    
                    echo "<br><br><br><center>Password non corretta.<br><a href='javascript:history.go(-1);'>torna indietro e correggi l'errore.</a></center>";
                    mysql_close();
                    die();                
    
                }
                
                if(!valid_email($_POST['a_email']) ) {
    
                    echo "<br><br><br><center>Indirizzo email non valido<br><a href='javascript:history.go(-1);'>torna indietro e correggi l'errore.</a></center>";
                    mysql_close();
                    die();                
                }
                
    
    
    
    query("INSERT INTO {$prefix}subscribers 
                        (`fname`,`email`)
                        
                        VALUES('$a_username','$a_email')
            ")  or report("msg","Unknown data corruption");
    
    
    
    
    
    
                                    
                if (is_uploaded_file($_FILES['a_img_file']['tmp_name'])) {
                    $fext=explode(".",$_FILES['a_img_file']['name']);
                    $newname = time()."_avatar.$fext[1]";
                    move_uploaded_file($_FILES['a_img_file']['tmp_name'], "./images/author_pics/$newname");
                } else $newname = "noavatar.gif";
            
                $a_reg_date = time();
                $a_group = 3; 
                            
                $p = md5($_POST['a_pass1']);
                if(!@query("insert into `{$prefix}authors` (aut_username , aut_password, aut_email, aut_group, aut_bio, aut_location, aut_website, aut_image, aut_reg_date, aut_validating)
                    VALUES('$_POST[a_username]','$p','$_POST[a_email]',$a_group,'$_POST[a_bio]','$_POST[a_location]','$_POST[a_website]','$newname',$a_reg_date,0);")) { 
                    @unlink("./images/author_pics/$newname");
    
    
    
                    cdie("<br><br><br><br><center>Questo Username e' gia' presente nel nostro database. Inserisci un altro Username.<br><a href='javascript:history.go(-1);'>torna indietro e correggi l'errore.</a></center>");
                }
                
                $id = mysql_insert_id();
                
                if($newname == "noavatar.gif") {
    
    copy("./images/author_pics/noavatar.gif","./images/author_pics/noavatar_copy.gif");
                @rename("./images/author_pics/$newname",@"./images/author_pics/$id.$fext[1]");
                    $r = query("UPDATE `{$prefix}authors` SET aut_image='$newname' WHERE aut_id=$id") or report();
                } else
    @rename("./images/author_pics/$newname",@"./images/author_pics/$id.$fext[1]");
                    $r = query("UPDATE `{$prefix}authors` SET aut_image='$id.$fext[1]' WHERE aut_id=$id") or report();
    
    @rename("./images/author_pics/noavatar_copy.gif",@"./images/author_pics/noavatar.gif");
                
                $show_register_form = "<br><center><b>Registrazione Completata</b> Usa Username e Password per entrare.
    
    
    
    
    
                                    $to = $_POST["a_email"];
                    $from = www.recensire.it;
                                    
          $message = "
    Gentile $a_username
    Recensire ti da il benvenuto nella sua community!
    
    Questi sono i tuoi dati di accesso
    
    username : $a_username
    password : $a_pass1
        
    Grazie,
    Lo staff di
    www.recensire.it
    
    [email protected]";
                    mail($to, "Benvenuto su www.recensire.it", $message, "From: \"Admin\" <$from>");
    
    
                
            }
        }
            
    
            $temp = template("./templates/top");
        eval("\$top = \"$temp\";");
    
        $left_main_categories = get_cats();
    
            $temp = template("./templates/new_category");
        eval("\$new_category = \"$temp\";");
    
            $temp = template("./templates/ads");
        eval("\$ads = \"$temp\";");
    
        $temp = template("./templates/left_more_options");
        eval("\$left_more_options = \"$temp\";");
    
        $temp = template("./templates/left_newsletter");
        eval("\$left_newsletter = \"$temp\";");
    
        
            $temp = template("./templates/top2");
        eval("\$top2 = \"$temp\";");
    
        $right_random_article = get_random_art();
        $right_statistics = get_stats();
    
            $temp = template("./templates/sponsor");
        eval("\$sponsor = \"$temp\";");
        
        
    
        $temp = template("./templates/top_site_search");
        eval("\$top_site_search = \"$temp\";");    
    
        $left="$top$left_main_categories<br>$new_category<br>$ads<br>$left_newsletter<br>";
        $center = "$top_site_search $show_register_form";
        $right = "$top2$right_random_article<br>$right_statistics<br>$sponsor<br>";
        
        $temp = template("./templates/center_main");
        eval("\$center_main = \"$temp\";");
        
        echo $center_main;
    
        $temp = template("./templates/footer");
        eval("\$footer = \"$temp\";");
        echo $footer;
    
    
    
        @mysql_close();
        
    ?>
    
  • Accedi

  • Non hai un account? Registrati

  • Accedi o registrati per effettuare la ricerca.
  • Primo post
    Ultimo post
Home Accedi Registrati
Menu
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.