- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
fiberLinked
I tried to write a PHP script for my jobs ftp but I keep getting this error.
Connecting to 64.118.238.214 via FTP
Connected...
Warning: ftp_nlist(): php_connect_nonb() failed: No route to host (113) in /home/alien0us/public_html/static/ftp_ez.php on line 38
Warning: Invalid argument supplied for foreach() in /home/alien0us/public_html/static/ftp_ez.php on line.
here is the source below:
<?php
// ftp script for default user
// fiberlinked@linux.net for questions/comments/death threats
// begin ->
// some variables
$host = "hostsIP";
$un = "def_username";
$pw = "def_password";
echo "Connecting to " . $host . " via FTP";
// connection code block
$ftp_conn = ftp_connect($host) or die("Could not connect to FTP server");
$ftp_login = ftp_login($ftp_conn, $un, $pw) or die("Unable to login");
// end connection code block
// enable passive mode
$mode = ftp_pasv($ftp_conn, TRUE);
// end enable passive mode
// check login & connection
if((!$ftp_conn) || (!$ftp_login) || (!$mode)) {
echo "FTP connection failed.";
}
else {
echo "Connected...";
}
// end login & connection check
// run nlist to list directory contents
$dir_list = ftp_nlist($ftp_conn, "");
foreach ($dir_list as $list) {
echo "$list";
}
//close
ftp_close($ftp_conn);
// end <-
?>
any help?
Edited by fiberLinkedLink to comment
https://www.neowin.net/forum/topic/215975-help-with-ftp-in-php/Share on other sites
2 answers to this question
Recommended Posts