Protect file on remote server
-
Hello
My question is not related to this topic
But thank you if you help meOn Server1 I have a WordPress website. On Server2 I have my files
I want login members from the WordPress site to be able to download.I have a similar question like the following link
https://stackoverflow.com/questions/10964399/protect-downloads-on-remote-serverI saved and edited download.php file on server 2
// Read the file from disk
readfile(‘/public_html/test/’ . $file);And in Server 1 I put a 1.php file
<?PHP
… https://dl.mysite.com/test/download.php?f=text.txt&c= …
?>But from now on, I do not know what to do
When I run the 1.php file, no links are displayed to me and a error_log file is created.[14-Nov-2018 17:58:17 UTC] PHP Warning: A non-numeric value encountered in /home/-/public_html/wp-content/1.php on line 2
[14-Nov-2018 17:58:17 UTC] PHP Warning: A non-numeric value encountered in /home/-/public_html/wp-content/1.php on line 2
[14-Nov-2018 17:58:17 UTC] PHP Warning: Division by zero in /home/-/public_html/wp-content/1/z.php on line 2I do not know which link should be placed as a download link in woocomerce
note: server 2 does not have a database. Otherwise, I would use scripts
Thank you
- The topic ‘Protect file on remote server’ is closed to new replies.