#8 re offset 0 ligne 130

closed
nobody
None
9
2002-08-05
2002-07-02
courou
No

hey,

i use the same template
Version : v 1.11 2002/04/25 12:49:17 richardarcher

it's about a function wich is called twice in the script
cause of the usage of DHTML. This is the function:
If I called one and again, the error appear.
Could you translate it me please

// liste les fichiers d'un repertoire
// @param $direction = chemin d'installation
// @param $pid = utilisateur
function Simplify_function_for_offset($directory,$pid) {
Global $TEMPLATE;
$File = array();
$Dir = opendir("$directory/$pid");
while($tmp = readdir($Dir)) $File[] = "$tmp";
closedir($Dir);
rsort($File); next($File); next($File); reset($File);

$TEMPLATE->set_block
("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK
_32");
while($tmp = each($File))
if(eregi(".sql", $tmp[1])) {
$TEMPLATE->set_var(array
("CHOIX_OPEN_SWITCH" => '<option value="$directory/
$pid/$tmp[1]">$tmp[1]</option>'));
$TEMPLATE->parse
("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true);
}
$TEMPLATE->parse("EXECUTE_32","FILE_32");
echo $TEMPLATE->get("EXECUTE_32");
}

seen you soon
Courou

Discussion

  • Richard Archer

    Richard Archer - 2002-07-05

    Logged In: YES
    user_id=279311

    This was in the wrong forum for support requests. Being moved...

     
  • Richard Archer

    Richard Archer - 2002-07-05
    • labels: 414802 -->
    • milestone: 197668 -->
     
  • courou

    courou - 2002-07-26
    • priority: 5 --> 9
     
  • Ignatius Teo

    Ignatius Teo - 2002-08-04

    Logged In: YES
    user_id=29397

    Richard,

    If this is resolved, can you please close it. We can reopen it
    later if not. Sounds like an illegal offset 0 at line 130 error?
    Not sure which script though. More info would be good....

    Thanks,

    ignatius

     
  • Ignatius Teo

    Ignatius Teo - 2002-08-04
    • assigned_to: nobody --> richardarcher
     
  • Richard Archer

    Richard Archer - 2002-08-04

    Logged In: YES
    user_id=279311

    I don't know whether it's resolved. There's certainly
    insufficient information there to track down the problem.
    We'd need to see the template file and a sample directory
    listing for starters. And some comments in the code
    describing what it's trying to do would be nice. And I'm
    afraid I know no French.

    I'm unassigning this from myself, as I am unable to resolve
    it. Perhaps we should put a time limit on these support
    requests... surely the request would be redundant for one
    reason or another after a week or two?

    Personally I'd like to see the Support tracker on SF shut
    down. People should be directed to the mailing list for
    support. Lots more helpers willing and able to assist with
    problems there. And email is much easier to use.

    ...R.

     
  • Richard Archer

    Richard Archer - 2002-08-04
    • assigned_to: richardarcher --> nobody
     
  • Richard Archer

    Richard Archer - 2002-08-05

    Logged In: YES
    user_id=279311

    I'm closing this one because it's over a month old. If this
    problem is not yet resolved, please request support via the
    phplib-users@lists.sourceforge.net mailing list.

    ...R.

     
  • Richard Archer

    Richard Archer - 2002-08-05
    • status: open --> closed
     

Log in to post a comment.