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

  • Home
  • SEARCH
  • 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 8848757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:29:15+00:00 2026-06-14T12:29:15+00:00

When someone comes to my website via url: http://domain.com/FILE_ID , PHP would connect to

  • 0

When someone comes to my website via url: http://domain.com/FILE_ID, PHP would connect to the ftp server and get FILE_ID and then stream it to client without saving it on the local server. I don’t want to provide my clients with a link to my file on ftp server instead I thought of this.

Does anyone have an idea how I can accomplish this?

I was thinking I could use “ftp_get()” method to get the file from ftp but that requires me to write in on a local server(or am I wrong?). After that use PHP headers to force the download.

Basically any and every piece of information would be useful. Just so I can start walking in the right direction.

  • 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-06-14T12:29:16+00:00Added an answer on June 14, 2026 at 12:29 pm

    What you are after is the Curl library – as it can handle FTP. See this, it has an FTP example.

    Alternatively, if you’ve got a server that has URL bindings for file_get_contents, you can use

    file_get_contents("ftp://username:password@server/path/to/file.ext");
    

    to get the contents of a remote file on an FTP server.

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

Sidebar

Related Questions

Hi I would like to activate fancybox on my website every time someone comes
My server time is in GMT, and I do the following whenever someone comes
I want to check particular url is available in someone's website from my website?
I need to track the referring website when someone comes in, including pick up
I'm developing a PHP website that uses url routing. I'd like the site to
I'm using CodeIgniter's built in sessions, not PHP sessions (read more: http://codeigniter.com/user_guide/libraries/sessions.html ). I
As someone who comes from the world of Object Orientation, I find it rather
I am building a portal which will have different cities content.. When someone comes
I just purchased a website template from DreamTemplate.com, and have tried to send a
Could anyone help me to optimize my website in search engines if someone search

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.