- 0
Help with FTP in PHP
Asked by
fiberLinked,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Usama Jawad96 · Posted
PC manufacturers used to trick BIOS copyright strings to get full editions of trial software by Usama Jawad You may have noticed that when you purchase a new PC, it comes with certain software pre-installed. Sometimes, when you open this software, it activates, and you receive the full version of it without paying any additional cost. This is because that PC's manufacturer is a licensee of that software and the fact that a customer gets the full version of a trial software for free serves as a perk for potential buyers. However, many PC manufacturers tried to trick this process in its infancy. During the days of Windows 95, when the Plug and Play specification was still in development, the OS' engineering team was trying to figure out ways through which it could identify PCs that existed prior to the inception of this specification. To that end, one of the methods they tried was searching for copyright strings and firmware dates in the BIOS. Through the course of this investigation, they discovered a rather oddly named copyright string "Not Copyright Fabrikam Computer" in a PC that was actually manufactured by Contoso. In this case, both Fabrikam and Contoso are fictional names that are used to describe this scenario without revealing the actual identity of the OEMs involved. Microsoft engineer Raymond Chen explains in a blog post that these odd copyright strings were actually appearing because Contoso PCs contained a trial version of a software and the company wanted the full version to be activated for customers even though it was not an official licensee. In order to bypass the costly licensing process, what the firm did was that it added the following text to its copyright string: "Copyright Contoso Not Copyright Fabrikam Computer". The trial version of said software would search for the string "Copyright Fabrikam Computer" and end up finding it within the substring of the convoluted copyright string mentioned above, accidentally activating the software's full version. While more robust ways were adopted later to avoid this problem, it's certainly interesting to see that OEMs would go to this length in order to distribute software that they are not officially allowed to. Well, as they say, the past stays in the past. -
By The Werewolf · Posted
Uhm... a couple of issues with this. First, you're engaging in revisionist history. People weren't dragged from Win 7 to Win 10. You've kind of glossed over a whole cycle there: Win 8/8.1. People stayed on 7 because they hated 8/8.1 and held on until 10 showed up. THEN they actually started to switch voluntarily. Second, it's not about the OS, it's about the workflow. OS fans consistently miss this, People have work to do and they've invested a lot of time, effort and even money building their workflows. It's expensive to change so, that change has to offer real benefits and sorry, Win 11 just doesn't. That's the same reason they won't just jump to an entirely new OS - which has an even bigger workflow cost - until there's just no other option. And now there IS another option, stay on Win 10 for another year and pray for Win 12 (much as Win 7 users did with Win 8 - which happened when Win 10 came out). -
By Geezy · Posted
Microsoft has some PC VR games that could be played with it. -
By The Werewolf · Posted
As such, many developers will start dropping Windows 10 support in their products Hi! Actual developer here. No we won't. It really doesn't work that way simply because most Windows devs don't target to a specific release of Windows unless we're using a feature that only exists IN a specific version, and that's pretty unusual. The biggest example would be MSFT killing off Windows Mixed Reality in Win 11, but most stuff we write for Win 10 will just work fine in Win 11 and vice versa. The vast majority of software doesn't rely on these things and will continue working on any recent version of Windows. Heck some of my software still runs on WinXP. Where Win 10 users will be left behind is software that relies on new features in Win 11 but again, we tend not to use those unless we're writing specific apps that need those features. In fact, the biggest danger area isn't apps, it's drivers as hardware makers focus on new machines more than supporting legacy devices. -
By +Nik Louch · Posted
Literally came here to say the same!!!
-
-
Recent Achievements
-
DrRonSr earned a badge
Week One Done
-
Sharon dixon earned a badge
Week One Done
-
Parallax Abstraction earned a badge
Dedicated
-
956400 earned a badge
First Post
-
davidfegan earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
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