• Resolved moein

    (@moeinkd)


    Hello
    My question is not related to this topic
    But thank you if you help me

    On 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-server

    I 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 2

    I 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

    • This topic was modified 6 years ago by moein.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Unfortunately, this plugin does not support generating of some secure links at server 2 while you have installed the plugin at server 1. Sorry.
    This plugin work only at the same website. Also its does not possible to upload php files in any case via upload menu in plugin.
    Also it does not support integration with WooCommerce plugin. Sorry.
    Kind Regards.

    Thread Starter moein

    (@moeinkd)

    I do not use your plugin
    I use the code in the link below
    https://stackoverflow.com/questions/10964399/protect-downloads-on-remote-server

    Please help me how to use it to answer
    With respect

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Unfortunately, I do not know how to resolve this issue in that point. Sorry.
    Just a suggestion.
    Probably at server 2 have to be able to login only users with specific password.
    And this password you need to inform to your registered users at server 1.
    Please search in google how to protect website with password.
    Kind Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Protect file on remote server’ is closed to new replies.