Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i tested the code you made and implemented to it, the follow code will connect to your first host, okserieshost and get the $filename from database folder, verify if the file was downloaded (if not it will end operations).</p> <pre><code>#!/usr/bin/perl use Net::FTP; my $path = '/public_html/api'; my $filename = 'index.php'; my $host = ''; my $user = ''; my $pass = ''; print "Content-type: text/html\n\n"; $ftp = Net::FTP-&gt;new($host, Debug =&gt; 0) or die "Could not connect to $host: $@"; print "&lt;pre&gt;".$ftp-&gt;message ."&lt;/pre&gt;&lt;br&gt;\n"; $ftp-&gt;login($user,$pass) or die sprintf "Could not login: %s", $ftp-&gt;message; print "&lt;pre&gt;".$ftp-&gt;message ."&lt;/pre&gt;&lt;br&gt;\n"; my $cur = $ftp-&gt;pwd(); my $new = $ftp-&gt;cwd($path); if ($cur == $new) { $ftp-&gt;quit; print "Directory not found, exiting.\n"; } else { if ($ftp-&gt;size($path.'/'.$filename) &gt;= 0) { $ftp-&gt;get($path.'/'.$filename) or die $ftp-&gt;message; print "&lt;pre&gt;".$ftp-&gt;message ."&lt;/pre&gt;&lt;br&gt;\n"; print "File downloaded with success." if (-e $filename); } else { print "File not found.\n"; } } $ftp-&gt;quit; </code></pre> <p>i've changed the code a little you can put this file on usjoc.com and run it on the browser it wil display every step of the communication until it gets the file from okseries.com. All you have to do is change $path to the path of where the file is but do not end the directory name with a / filename in case on $filename $host = ftp ip or hostname $uesr and $pass i guess you know what goes in</p> <p>response from the url you asked to be viewed:</p> <pre><code>USJOC Entry Form on The Club file name is EdmondSkunks1T.db /home/content/o/k/s/okseries/html/database/EdmondSkunks1T.db Supposedly opened /home/content/o/k/s/okseries/html/database/EdmondSkunks1T.db Back to USJOC </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload