Visualizzazione risultati 1 fino 3 di 3

Discussione: Fatal error

  1. #1
    Guest

    Predefinito Fatal error

    Ragazzi avrei bisogno di un aiuto. Sto installando un plugin php solo che continua a darmi lo stesso errore. Ho provato ad installarlo in locale e funziona benissimo. Quando apro la pagina dove dovrebbe partire il plugin mi da il seguente errore:

    Fatal error: require_once() [function.require]: Failed opening required '../../../../var/www/html/smooth_poll/includes/pollfns.php' (include_path='.:') in /membri/metodo/smooth_poll/example.php on line 19


    example.php
    Codice PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Smooth Ajax Poll</title>
    <?php

    ###################################################### COPY THIS BLOCK ####################################################################################

    $poll_path = "http://metodo.altervista.org/smooth_poll/"; /* Tell the script where is your poll folder */
    /* Example ( Windows) : C:/htdocs/smooth_poll/ ( put just /smooth_poll/ ) , we ignore the root (C:/htdocs/) */
    /* Example ( Linux ) : ..public_html/folder1/smooth_poll ( put just /folder1/smooth_poll/ ) , ignore the root */


    function getRelativePath($f, $t){$f = is_dir($f) ? rtrim($f, '\/') . '/' : $f; $t = is_dir($t) ? rtrim($t, '\/') . '/' : $t; $f = str_replace('\\', '/', $f); $t = str_replace('\\', '/', $t); $f = explode('/', $f); $t = explode('/', $t); $rp = $t; foreach($f as $dp => $dr) {if($dr === $t[$dp]) {array_shift($rp); } else {$rm = count($f) - $dp; if($rm > 1) {$pl = (count($rp) + $rm - 1) * -1; $rp = array_pad($rp, $pl, '..'); break; } else {$rp[0] = './' . $rp[0]; } } } return implode('/', $rp); }

    $root = $_SERVER['DOCUMENT_ROOT'];
    $relative_path = getRelativePath(__DIR__,$root.$poll_path);
    require_once(
    $relative_path.'includes/pollfns.php'); /* require the basic functions */
    includeScripts($relative_path); /* include the scripts */

    pollfns.php
    Codice PHP:
    /*------------ this is the Basic poll fonctionalities script ---------------*/
    @session_start();
    $complete_path ="";

    require_once(
    'dbfns.php');
    global
    $hostName ;
    global
    $userName ;
    global
    $password ;
    global
    $database ;
    $connect=connect($hostName,$userName,$password,$database);
    if(!
    $connect){echo'Connection failed ! , please try again later ';exit;}

    Se qualcuno può darmi una mano mi fa un grande favore...
    Grazieee

  2. #2
    L'avatar di alemoppo
    alemoppo non è connesso Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,132

    Predefinito

    Invece di:
    Codice PHP:
    $poll_path = "http://metodo.altervista.org/smooth_poll/";
    Prova con:
    Codice PHP:
    $poll_path = "/membri/metodo/smooth_poll/";
    O anche con:
    Codice PHP:
    $poll_path = "./";
    Ciao!

  3. #3
    Guest

    Predefinito

    Grazie mille per l'aiuto!! Purtroppo ancora mi da errore. Se ti lascio la mia password non è che potresti dargli un occhiata? la mia email è: rimossa

    in caso contrario ignora il messaggio e grazie cmq
    Ultima modifica di karl94 : 21-01-2016 alle ore 16.14.39 Motivo: Rimosso indirizzo email

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •