Web Analytics Made Easy -
StatCounter MY codes not working - CodingForum

Announcement

Collapse
No announcement yet.

MY codes not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MY codes not working

    I try to do with this codes,but I can't find my mistake.
    Please tell me my mistake
    opendir(???)what should I write(???)
    I don't know what to put.

    Where should I change ?

    Please tell me


    <?php
    if ($handle = opendir('c:\itohideo\ito2.php')) {
    while (false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") {
    echo "$file\n";
    }
    }
    closedir($handle);
    }
    ?>

  • #2
    PHP Code:
    <?php 
    $dirname 
    'c:/itohideo/';
    if(
    is_dir($dirname)) {
    $handle opendir($dirname); 
    while (
    false !== ($file readdir($handle))) { 
    if (
    $file != "." && $file != "..") { 
    echo 
    "$file\n"


    closedir($handle); 

    ?>
    You were trying to open ito2.php as a directory.
    ضkii - formerly pootergeist
    teckis - take your time and it'll save you time.

    Comment

    Working...
    X