Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    1

    Unhappy Unanswered: File or Folder its not array by date

    <?

    $nImageNr = 0;
    $nImageShowed = 0;

    $savedir = getcwd();
    chdir($GLOBALS["rootdp"].$GLOBALS["image_home"].$subdir);

    if ($handle = @opendir('.'))
    {
    while ($file = readdir($handle))
    {
    $filename = $file;
    if (is_file($filename))
    {
    $fileparts = pathinfo($filename);
    $file_ext = $fileparts["extension"];
    if (in_array($file_ext,$ImageFileTypes))
    {
    if ($nImageNr >= $lStartRec && $nImageShowed < $GLOBALS["RECORDS_PER_PAGE"])
    {
    ?>
    /// Please help me to fix it Really thanks ( php v.4.4 )
    Best regards

  2. #2
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    You should really use the [ code ] tags that are available and indent your code.
    What error are you getting?
    Why are you using globals (it's deprecated now I believe)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •