I can not find information on how to do this. How can I use PHP so that a user can upload a file on my website and then save this file on my server somewhere, but save it somewhere where no one can find its location? This will be mainly for PDF files, but they can also load TXT or DOC / DOCX files, if that matters.
Any help is appreciated
thank
it depends on the setting of your web server.
-, - -, - . ftp, www, public-html, , , .
www
public-html
, !
move_uploaded_file() manual.
move_uploaded_file()
move_uploaded_file , -, .
move_uploaded_file
, .htaccess. ( .)
.htaccess
Source: https://habr.com/ru/post/1795803/More articles:RSA calculation c ^ d mod n - encryptionHow to handle multiple Authenticator - androidDoes anyone know about a SaaS billing and authentication service? - authenticationWriting to a file does not work - objective-cCan you defer statusCode in jquery 1.5? - jqueryСписок сортировки, где объект IsNot Nothing - listhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1795805/apache-htaccess-forbidding-direct-access-to-a-file-but-allow-rewrites-to-go-there&usg=ALkJrhiNEt7aoiYCBX0dS3DmpGtUiGXyFgWhy is there a two-dimensional type error when calling WebMethod in an ASP.NET web application? - debuggingLost connection to MySQL server while "reading source communication packet", system error: 113 - phpAutomatically creating Piratespeak.po / gettext / translations for testing i18n? - pythonAll Articles