Jump to content

filoaman

Members
  • Posts

    41
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

filoaman's Achievements

Member

Member (2/5)

0

Reputation

  1. @ mac_gyver Thank you for your answer. Everything is clear now...
  2. I'm referring to WEB BROWSER!!!!!!! I have a small script on my server (on the internet - on the cloud) and i'm trying to run the script from a WEB BROWSER!
  3. Thank you for your answers. @requinix No. I try to check the file size and i get error: "filesize(): stat failed" I try to run a script on my server from a browser, so maybe the problem is what i thought in the first place. I read somewhere that browsers block the access on local files, when you try to access them from a remote server (the internet) @gizmola As i mention above i try to run the script located on my internet server via a browser. I don't run the script on my computer so the source you mention in not relevant in my case.
  4. I try forward slashes with no success. here is line of code where i get the error ftp_put($ftp_conn,'fileNameOnServer.txt', 'D:/directory/fileName.txt', FTP_ASCII );
  5. Hi. I'm trying to create a small script for personal use. The scope is to upload automatically a certain txt file from my PC hard drive to my server (in a certain directory) every time the script is running. I try different ways (ftp upload using "ftp_put" command, trying to "get_file_contents", etc.) but i always have the same problem: the error i get is that "No such file or directory". This error is about the file on my local PC hard drive. I know that most browser for security reasons doesn't allow access to files from local PC hard drive. Is this the reason i fail miserably or there is a mistake when a declare the local (PC hard drive) path. Until now i try: c:\directory\subdurectory\filename.txt c:/directory/subdurectory/filename.txt file:///c:\directory\subdurectory\filename.txt file:///c:/directory/subdurectory/filename.txt every time without succes. Any ideas? Thank you in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.