Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3723278
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:12:44+00:00 2026-05-19T06:12:44+00:00

For the home page of my Magento store, I am using a basic gallery

  • 0

For the home page of my Magento store, I am using a basic gallery script which scans a predefined directory using scandir() and outputs each filename to be displayed in the gallery.

Everything works ok on my local machine, but the script seems to ignore the scandir() and just proceeds as normal without any errors or warnings. If I replace the scandir() and input the filenames directly, the gallery script works fine.

What is going wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T06:12:45+00:00Added an answer on May 19, 2026 at 6:12 am

    Hard to tell without seeing your code in context, but my guess if scandir is returning an empty array, probably because you’re not passing it what you think you’re passing it. Add some debugging to your calls to scandir

    $path;
    var_dump($path);
    
    $results = scandir($path);
    var_dump($results);
    

    and you should have a better idea of whats going on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I my wordpress blog in home page which shows some details of products.I want
I have a cms page in magento which I would like to display all
I want to hide some of the categories from magento home page. I have
My clients home page is https://www.quakereadykit.com/store/home.php This was given to me by a previous
If i visit the home page on my site (which uses code igniter) my
How can I redirect 404 pages to Home Page in Magento? What files need
In my magento project left side of the Home page is empty, i want
The home page of my application has a panel where the user can login
I have an ASP.NET home page where user provides his login ID. Depending on
I really like the promote to home page feature of drupal. But what if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.