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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:02:30+00:00 2026-06-03T13:02:30+00:00

The file that I have is: $file_path=’CSVs/data’.time().’TaskID_’.$this->task_id.’.csv’; Then I attach it to this function.

  • 0

The file that I have is:

$file_path='CSVs/data'.time().'TaskID_'.$this->task_id.'.csv';

Then I attach it to this function.

$save_to="Y:\SEO\Avi\BackLinks";
$this->download_remote_file(
    "http://212.13.98.158/backlinks/".$file_path, $save_to);

function download_remote_file($file_url, $save_to)
{
    $content = file_get_contents($file_url);
    file_put_contents($save_to, $content);
}

That file should retrieve the files contents and copy it to the directory.

The errors that I get are to do with 404 and that the folder doesnt exist. But I do know for a fact, that the folder exists..and I am quite sure that the links is the right link that points to the resource

UPDATE:
mADE THE CHANGES..this simple example..throws me 403 forbidden. saying that the file or directory doesnt exist.

    $save_to="Y:\SEO\Avi\BackLinks\data1335692353TaskID_122.csv";
      $this->download_remote_file("http://212.199.198.158/backlinks/CSVs/data1335692353TaskID_122.csv", $save_to);
  • 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-03T13:02:33+00:00Added an answer on June 3, 2026 at 1:02 pm

    Look at your file_path: 212.13.98.15/backlinks/data1335692201TaskID_122.csv.
    It is not the path in the post: $file_path='CSVs/data'.time().'TaskID_'.$this->task_id.'.csv';
    Remove the CSVs/

    And what about the filename and its extention? You need them to tell under which name to write a file.

    Your $save_to has to be a kind of $save_to="Y:\SEO\Avi\BackLinks\abc.cvs";

    UPDATE – Try each operation separately. First, echo the get_file_contents, or a few lines of it. Then try to put a simple “hello.txt” or whatever on your savepath.

    If then you’ll recieve same error – check the permissions.

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

Sidebar

Related Questions

I have for example .pdf file (path to that file). How to open this
I have a file that describes input data, which is split into several other
I have a function that lets me write the file-path of files to a
I have an application that imports data from a pickled file. It works just
I have a file that I can reach by pidl via IShellFolder . This
I have a file that looks like this: ... %ldirs (list of line-separated directories)
I have a file that essentially a list of XPaths like so: /Options/File[1]/Settings[1]/Type[1] /Options/File[1]/Settings[1]/Path[1]
Using windows server, I have a path to a file that, when you click
I have been looking into libraries for a file system that will allow path
That is when you have any jar file attached to you your class path.

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.