zero-perfoliate
zero-perfoliate

Author Topic: can't access file list on local folder  (Read 305 times)

Offline StavBN

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
can't access file list on local folder
« on: May 02, 2010, 08:47:42 AM »
My script is:
<?php

    require_once("class.get.files.php");

   $ext = array("html");
       $folder = "../";
   $files = new getfiles($folder,$ext);
   $list = $files->getlist();

    header("Content-Type: text/plain");

    print "<?xml version=\"1.0\" ?>\n";
    print "<images>\n";

    for ($i = 0; $i< count($list); $i++) {


       print "\t<image filename=\"$list[$i]\" />\n";

    }

    print "</images>";


?>



It's a PHP that creats XML file.
Somehow its not finding the local directory he is in it.
You can go inside and see:
http://the-memorables.com/getimages.php
Please help me, I am new to php.
Thanks.
« Last Edit: May 02, 2010, 08:49:39 AM by StavBN »

Offline Sergey Popov

  • PHP Helpers
  • ***
  • Posts: 31
  • Karma: +0/-0
    • Freelance PHP Developer
Re: can't access file list on local folder
« Reply #1 on: May 12, 2010, 01:06:57 AM »
Have you tried Debugging?
Refer to php documentation or PHP Help forum for more info and for answers to your questions

 

zero-perfoliate