Dal seguente codice PHP:

Codice PHP:
<?php

    $file 
file("file.txt");
    
$perpage 30;
    if (
$perpage == FALSE
    
$pos 0;
    if (
$pos == FALSE
    
$count count($file);

    for(
$i $pos$i < ($perpage+$pos); $i++)
        {
            if(
$i $count-1) break;
            
$result explode("|" trim($file[$count-$i-1]));
            echo 
"[*]$result[0] $result[1]";
        }

    echo 
"<div align='center'>[ ";
        for(
$p 0$p $count$p++)
        {
            if(!(
$p $perpage))
            {
                    
$pg = ($p/$perpage)+1;
                    if (
$p == $pos)
                    {
                        echo 
"[b]$pg[/b] ";
                    }
                    else
                    {
                        echo 
"[url='?pos=$p']$pg[/url] _cke_saved_href='?pos=$p'>$pg</a> ";
                    }
            }
        }
    echo 
" ]</div>";
?>
Vengono esposti i seguenti errori:

Notice: Undefined variable: pos in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 7

Notice: Undefined variable: pos in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 10

Notice: Undefined variable: pos in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 10

Notice: Undefined offset: -1 in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 13

Notice: Undefined offset: 1 in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 14

Notice: Undefined variable: pos in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\paginazione\numerazione.php on line 10