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 122447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:07:48+00:00 2026-05-11T04:07:48+00:00

I have a name in a database, lets say its DFectuoso and some legacy

  • 0

I have a name in a database, lets say its ‘DFectuoso’ and some legacy system stored DFectuoso_randomnameofafile.doc.

Now I want to find all the filed ‘DFectuoso’ owns and display links to them in a PHP page.

What would be the way to start on this?

  • 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. 2026-05-11T04:07:48+00:00Added an answer on May 11, 2026 at 4:07 am

    I’d try with glob() in combination with readfile().

    Off the top of my head:

    $findname = 'DFectuoso'; foreach (glob('/path/to/somewhere/'.$findname.'*') as $file) {   provide_a_link_to($file); } 

    and just pass the file with readfile().

    Remember, if you are using $_GET to pass the chosen file to the user, sanitize and validate the permissions first. Don’t do just readfile($_GET['chosenFile']); or you’ll get in trouble!

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

Sidebar

Related Questions

Let's say you have a database with a single table like... --------------------------------------------- | Name
We have a database where every table name starts with WW. I want to
Lets say that I have a database structure with three tables that look like
Hi I have a domain object lets say Student and its Roll no as
Lets say you are dealing with your normal contact database (you know... name, phone
I have a table in my database: Name | Element 1 2 1 3
I have an ActiveRecord model with a field called name (in the database) and
I have two arrays: name - facebook,google,yahoo url - facebook.com,google.com,yahoo.com In my database, I
In mysql database i have this column called: Name: Date Type: datetime I have
In my database I have table AnimalDetails containing animalNumber(primary key),name,breed dateofbirth and an image

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.