I am trying to upload some files. I wrote a php script that can collect the entire address of the PDF files that I need to load into an array, but the file names on this server are odd. How can I upload pdf files using php?
you can try (if I understood your question correctly)
file_put_contents('/your/file/name.pdf', file_get_contents('http://www.example.com/oddFile.pdf'))
Check the functions fileor file_get_contents. It can accept URLs as well as local file names.
file
file_get_contents
http://www.php.net/manual/en/function.file.php
http://www.php.net/manual/en/function.file-get-contents.php
Source: https://habr.com/ru/post/1794978/More articles:Jython Gstreamer - pythonHow to configure the GPU software core and memory on Windows? - c ++.htaccess URL Rewrite Problem (Scripts do not load) - urlHow to develop this menu (in the picture) - androidHow to fix resource file path after using htaccess - phpTabbed Windows 7 Taskbar Window .Net 2 - .netHow can you block access to internet explorer in asp mvc - internet-explorerGrouping striped data - hashtableMultiple jQuery plugins in one file - jqueryhow to end jquery function on click - javascriptAll Articles