T
T
Thekorolev2016-09-30 17:11:16
CMS
Thekorolev, 2016-09-30 17:11:16

What tools exist for editing content and uploading files to the site?

Hello! There is a simple landing page laid out in html. Now it was necessary to enable the secretary to upload documents to this landing page, i.e. change one of its sections. I don’t want to file some kind of wordpress there, because. nothing will be edited except for the documents section. I don't really want to write all this from scratch either. Are there any simple scripts or CMS on files to organize this process?
At the moment you need:
1. File uploader to the server.
2. After downloading - adding a link to it in the section with documents.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2016-09-30
@Thekorolev

FTP and notepad - the
answer is nowhere simpler:
in this case, output files as a list with a link, for example, through an object or a stylized div

$dir  = 'папка';
$files = scandir($dir);
foreach ($files as $key => $value) {
    echo '<a href="http://'.$_SERVER['HTTP_HOST'].'/папка/'.$value.'">'.$value.'</a> <br/>';
}

and fill in by creating access to a specific folder with files through a specially created ftp account. This will be safer than inventing authorization. And without knowing the parameters of your hosting provider, I can’t say with certainty that it can allow uploading files larger than 2Mb. And via FTP it is possible to upload without restrictions (as a rule).

D
Dimonchik, 2016-09-30
@dimonchik2013

www.staticgen.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question