PHP FTP 1.1
A freeware script enabling PHP scripts to make FTP connectionsDownload | Requirements | Limitations | Security | Usage Examples
Requirements:
PHP FTP requires PHP version 4.3 or higher, with support for fsockopen enabled.
Limitations:
This script provides only the most basic of FTP services, which do not include the handling of data connections. "Then what is it good for?" you ask? If FTP functions are enabled in your server's PHP installation, maybe nothing. But if not, then this script is useful for doing anything that doesn't require a data connection. For example, I wrote it to provide an automatable way to set folder access permissions using the "site chmod" command.
Security:
We strongly recommend that you do not store your username and password in a PHP script unless only people you trust completely have access to your server. Instead, use a form to enter the username and password each time the script is run. Exercize caution with any system that transmits passwords over unencrypted connections.
London Lawyers Demand £600 For One Game
May 9@8:21am: Barence writes "A PC Pro reader has received a demand for a £600 out-of-court settlement from lawyers claiming to have forensic evidence that he illegally downloaded a PC game on BitTorrent. The law firm, Davenport Lyons, is acting on the behalf o... [from Slashdot]
May 9@8:21am: Barence writes "A PC Pro reader has received a demand for a £600 out-of-court settlement from lawyers claiming to have forensic evidence that he illegally downloaded a PC game on BitTorrent. The law firm, Davenport Lyons, is acting on the behalf o... [from Slashdot]
Apple slammed on climate change
May 9@8:16am: Apple is once again being pilloried on the strength of its green credentials, taking last place among computer firms rated within a recent ClimateCounts survey on climate friendliness.Apple achieved just 11 points in the survey, far behind other c... [from InfoWorld RSS Feed]
May 9@8:16am: Apple is once again being pilloried on the strength of its green credentials, taking last place among computer firms rated within a recent ClimateCounts survey on climate friendliness.Apple achieved just 11 points in the survey, far behind other c... [from InfoWorld RSS Feed]
Pirate Bay: MPAA's $15.4 million damage claim a fabrication
May 9@8:15am: The MPAA has asked a Swedish court for $15.4 million in damages from The Pirate Bay. Peter Sunde, the torrent tracker's fearless captain, says that the claims are bogus.Read More... [from Ars Technica]
May 9@8:15am: The MPAA has asked a Swedish court for $15.4 million in damages from The Pirate Bay. Peter Sunde, the torrent tracker's fearless captain, says that the claims are bogus.Read More... [from Ars Technica]
Vista as insecure as Windows 2000
May 9@8:02am: Good news for users of Windows Vista. According to figures compiled by PC Tools, the OS has experienced only slightly more vulnerabilities than Windows 2000, which appeared eight years ago when malware was far less common.Or is that the bad news? ... [from InfoWorld RSS Feed]
May 9@8:02am: Good news for users of Windows Vista. According to figures compiled by PC Tools, the OS has experienced only slightly more vulnerabilities than Windows 2000, which appeared eight years ago when malware was far less common.Or is that the bad news? ... [from InfoWorld RSS Feed]
Windows XP SP3 Creating Havoc
May 9@7:40am: ozmanjusri writes "According to Information Week, within hours of its wide availability Windows XP SP3 had drawn hundreds of complaints from users who claim the update is wreaking havoc on their computers. One user said in a Microsoft newsgroup: '... [from Slashdot]
May 9@7:40am: ozmanjusri writes "According to Information Week, within hours of its wide availability Windows XP SP3 had drawn hundreds of complaints from users who claim the update is wreaking havoc on their computers. One user said in a Microsoft newsgroup: '... [from Slashdot]
Nokia aiming to reinvent itself as an "Internet company"
May 9@5:15am: It's not good enough to be the clear leader in a mature market sector like cell phones. To stay youthfully vibrant, Nokia is embracing a new set of competitors and is repackaging itself as an "Internet company."Read More... [from Ars Technica]
May 9@5:15am: It's not good enough to be the clear leader in a mature market sector like cell phones. To stay youthfully vibrant, Nokia is embracing a new set of competitors and is repackaging itself as an "Internet company."Read More... [from Ars Technica]
Speak to Me: Natural Language and CRM Applications
May 9@5:00am: If you could clone your best agent hundreds or thousands of times over, you could ensure that each and every customer calling your contact center receives the same high-quality, friendly and informed response. In reality, natural language speech s... [from E-Commerce Times]
May 9@5:00am: If you could clone your best agent hundreds or thousands of times over, you could ensure that each and every customer calling your contact center receives the same high-quality, friendly and informed response. In reality, natural language speech s... [from E-Commerce Times]
B2B in a Web 2.0 World, Part 1: Digital Media Relations
May 9@5:00am: Attention! We're listening! Seeking competitive advantage and profitability through good relations with the social media, the B2B world has energetically embraced the grand online colloquy known as the two-way talk-back "conversation." Online soc... [from E-Commerce Times]
May 9@5:00am: Attention! We're listening! Seeking competitive advantage and profitability through good relations with the social media, the B2B world has energetically embraced the grand online colloquy known as the two-way talk-back "conversation." Online soc... [from E-Commerce Times]
“Net Pulse News” - Videos, News, Etc. Based On Hot Search Trends
Apr 8@4:03pm: I’ve just posted a new page on Chordata called “Net Pulse News“. It pulls the hottest search trends from Google Trends, and displays news, blog and video search results based on those keywords. Google Trends identifies the hottest trends in search... [from Alpha Gecko : Atom/RSS]
Apr 8@4:03pm: I’ve just posted a new page on Chordata called “Net Pulse News“. It pulls the hottest search trends from Google Trends, and displays news, blog and video search results based on those keywords. Google Trends identifies the hottest trends in search... [from Alpha Gecko : Atom/RSS]
Chordata.info Aggregates “Top Feeds” In Each Category In RSS Format
Mar 13@6:10pm: I just launched a new service on Chordata called “Top Feeds” that generates RSS feeds from the content of the top feeds in each category on the site. Go to any category and click the subscription button near the upper-right corner of the page to ... [from Alpha Gecko : Atom/RSS]
Mar 13@6:10pm: I just launched a new service on Chordata called “Top Feeds” that generates RSS feeds from the content of the top feeds in each category on the site. Go to any category and click the subscription button near the upper-right corner of the page to ... [from Alpha Gecko : Atom/RSS]
Google Authority Listing For GeckoTribe.com
Feb 27@3:55pm: I happened to notice this morning that GeckoTribe.com has gotten an “authority listing” from Google for the search terms (don’t be too shocked) “gecko tribe”. I’m not bragging — it’s not like those are very common search terms. But it’s nice to se... [from Alpha Gecko : Web Design]
Feb 27@3:55pm: I happened to notice this morning that GeckoTribe.com has gotten an “authority listing” from Google for the search terms (don’t be too shocked) “gecko tribe”. I’m not bragging — it’s not like those are very common search terms. But it’s nice to se... [from Alpha Gecko : Web Design]
Google Penalty Removed From FastJV.com
Feb 1@10:01pm: Last June, I launched a product named Fast JV. Until a day or two ago, it had never shown up in Google. My first thought way back when was that it had simply been sandboxed, but when I registered it in Google’s Webmaster Tools, they said that no p... [from Alpha Gecko : Web Design]
Feb 1@10:01pm: Last June, I launched a product named Fast JV. Until a day or two ago, it had never shown up in Google. My first thought way back when was that it had simply been sandboxed, but when I registered it in Google’s Webmaster Tools, they said that no p... [from Alpha Gecko : Web Design]
Usage Examples:
Basic usage
NOTE: With PHP FTP versions before 1.1, the following code will not display error messages for certain types of connection failures. If you are using an older version, either upgrade to the current version or use the next code example.
<?php
require_once "PHPFTP.php";
$ftp = new PHPFTP();
// if the first argument to Connect is blank,
// PHPFTP will connect to the local host via 127.0.0.1
$result = $ftp->Connect('www.somewhere.com','login name','password');
if ($result == 0) {
$ftp->DoCommand('enter command here', $result_number, $result_text);
echo "$result_text ($result_number)";
$ftp->DoCommand('another command', $result_number, $result_text);
echo "$result_text ($result_number)";
// say Disconnect(0); to break the connection without explicitly logging out
$ftp->Disconnect();
}
?>
Display your own error messages
NOTE: With PHP FTP versions before 1.1, the show_connect_error option was not supported. If you are using an older version, either upgrade to the current version, or delete the line that sets show_connect_error.
<?php
require_once "PHPFTP.php";
$ftp = new PHPFTP();
$ftp->show_connect_error=0;
// if the first argument to Connect is blank,
// PHPFTP will connect to the local host via 127.0.0.1
$result = $ftp->Connect('www.somewhere.com','login name','password');
switch ($result) {
case 0:
$ftp->DoCommand('enter command here', $result_number, $result_text);
echo "$result_text ($result_number)";
$ftp->DoCommand('another command', $result_number, $result_text);
echo "$result_text ($result_number)";
// say Disconnect(0); to break the connection without explicitly logging out
$ftp->Disconnect();
break;
case 1:
echo '[PHP FTP] Connect failed: Unable to open network connection';
break;
case 2:
echo '[PHP FTP] Connect failed: Unknown host';
break;
case 3:
echo '[PHP FTP] Connect failed: Login failed';
break;
case 4:
echo '[PHP FTP] Connect failed: Your PHP version does not support PHP FTP';
break;
}
?>