<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 22:04:54 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Grzegorz Godlewski: PHP.Kryptik.AB - Give me your FTP!]]></title>
      <guid>http://www.phpdeveloper.org/news/18778</guid>
      <link>http://www.phpdeveloper.org/news/18778</link>
      <description><![CDATA[<p>
<i>Grzegorz Godlewski</i> has <a href="http://blog.twelvecode.com/2012/11/18/php-kryptik-ab-give-me-your-ftp/">written up a post</a> about a piece of PHP-related malware that, if it gets into your application, can render your site inaccessible (not to mention blocked by Google's "safe browsing") - PHP.Kryptik.AB.
</p>
<blockquote>
One could think a PHP Developer is free from viruses and malware - and be wrong. Meet PHP.Kryptik.AB - the PHP malware. If you already know this bastard - high five! But if you don't - be prepared! Basically the story starts from a standard computer trojan which (I suppose) attacks popular FTP clients that store FTP login credentials unencrypted. Then it sends fetched informations to a remote host which (by the cover of night) logs into the FTP servers and infects PHP base web-pages by injecting a piece of JavaScript code, that gets executed when a user enters a site.
</blockquote>
<p>
He describes the injected code, what kind of files the malware looks for when it executes and how you can fix the problem if you've already been infected. There's also a bit about how you can prevent yourself from being infected (including the suggestion of using something like <a href="http://keepass.info/">KeePass</a> or <a href="https://agilebits.com/onepassword">1Password</a> to manage and create harder to crack passwords).
</p>]]></description>
      <pubDate>Tue, 20 Nov 2012 14:14:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: My Automated PHP Scripts for Creating FTP Connections to a Remote Server]]></title>
      <guid>http://www.phpdeveloper.org/news/18112</guid>
      <link>http://www.phpdeveloper.org/news/18112</link>
      <description><![CDATA[<p>
PHPBuilder.com has posted a new tutorial about <a href="http://www.phpbuilder.com/articles/databases/design/automated-php-scripts-ftp-connections.html">creating automated FTP scripts</a> to pull down information from a remote server (using FTP streams).
</p>
<blockquote>
In 2007 I began working on a website project for an investment company in my hometown of Cleveland, Ohio USA. The purpose of this website was to automatically download financial data of traded securities from two (2) remote Web servers. [...] Both of these PHP scripts were set up on the Web server's "crontab manager" to automatically run at a set time each business day.
</blockquote>
<p>
Code is included showing how to connect to the remote service (via <a href="http://php.net/curl">curl</a>) with a "ftp" stream-based URL as the location. Also included is an example using a <a href="http://php.net/fopen">fopen</a> call to the URL and inserting the resulting data into their tracking tables. The other script pulls the data out and adds a new record to a transactions table for the current day.
</p>]]></description>
      <pubDate>Tue, 19 Jun 2012 10:41:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Transfer Data via Multiple Protocols with Libcurl]]></title>
      <guid>http://www.phpdeveloper.org/news/16876</guid>
      <link>http://www.phpdeveloper.org/news/16876</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial showing how to <a href="http://www.phpbuilder.com/columns/Libcurl/Libcurl_09-14-2011.php3">use libcurl to communicate with multiple protocols</a> like FTP, HTTP, HTTPS, SMTP and STMPS. The <a href="http://curl.haxx.se/libcurl/">libcurl</a> library that can be compiled in or installed as a shared module in your PHP install to provide enhanced networking abilities.
</p>
<blockquote>
As I wrote in my <a hef="http://www.phpbuilder.com/columns/php-multithreading-curl/Octavia_Anghel06072011.php3">PHP multithreading with cURL</a> article, the libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. PHP supports the libcurl library which allows you to connect and communicate to many different types of servers with many different types of protocols.
</blockquote>
<p>
<a href="http://www.phpbuilder.com/columns/Libcurl/Libcurl_09-14-2011.php3">The tutorial</a> focuses on two different types of connections (well, four really) - FTP/FTPS and HTTP/HTTPS - and how to transfer data across each. Some code is included to create a (procedural) tool to send an uploaded file to a remote site.
</p>]]></description>
      <pubDate>Mon, 19 Sep 2011 12:03:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP]]></title>
      <guid>http://www.phpdeveloper.org/news/16492</guid>
      <link>http://www.phpdeveloper.org/news/16492</link>
      <description><![CDATA[<p>
On the "PHP and Me" blog there's a new entry from <i>Pinpin Bysma</i> showing how to use the PHP-based deployment tool <a href="http://phing.info">Phing</a> to <a href="http://phpandme.tumblr.com/post/6662397015/use-phing-to-update-your-svn-version-controlled-website">update your production website via an FTP connection</a>, automated by a Phing build.
</p>
<blockquote>
If you're working on a PHP project, like with any other project, probably comes a time when you need to "build a new release," e.g. update the production web site with the latest version of the code. And doing the whole thing manually isn't the most efficient way to get things done, especially if you're lazy, or have to do that every once in a while, over a long period of time. [...] Obviously if updating the site itself could be done without FTP but through a simple svn switch, things would be easier. Still, Phing would allow to make things easier just as nicely. It could for example still be used to create the new tag, trigger the switch, etc
</blockquote>
<p>
He introduces the process by showing a basic Phing build file that uses the PEAR VersionControl_SVN component to get the latest from the repository and push it to another directory. There was one thing that he wanted to do that the default SVN task couldn't - export the difference between two tags. To make this happen, he had to extend Phing and make a new task - SvnExportDiff. He includes the code for this new task and an updated build file to show it all in use - complete with the FtpDeploy to push the code live.]]></description>
      <pubDate>Mon, 20 Jun 2011 11:57:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: How to Work with PHP and FTP]]></title>
      <guid>http://www.phpdeveloper.org/news/16329</guid>
      <link>http://www.phpdeveloper.org/news/16329</link>
      <description><![CDATA[<p>
On NetTuts.com there's a new article stepping you through what you'll need to know about <a href="http://net.tutsplus.com/tutorials/php/how-to-work-with-php-and-ftp/">using FTP in PHP</a>, including a basic useful and expandable class.
</p>
<blockquote>
It's always important to first outline exactly what functionality your class should include. In our case: connecting to a server, create a folder on the server, upload a file, change directory, retrieving the directory listing and downloading a file.
</blockquote>
<p>
They first look at what FTP is and then how to set up the class that includes some simple logging, connection handling and how to call the class with a username, password and hostname. The class lets you create a remote directory, upload a file, view a list of remote files and downloading a selected file. Full source for the class is available <a href="http://nettuts.s3.amazonaws.com/978_ftp/source.zip">as a download</a>.
</p>]]></description>
      <pubDate>Thu, 12 May 2011 08:05:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Implementing Internet Protocols with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15732</guid>
      <link>http://www.phpdeveloper.org/news/15732</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial from <i>Leidago Noabeb</i> that looks at <a href="http://www.phpbuilder.com/columns/implementing-internet-protocols/Leidago_Noabeb01122010.php3">implementing internet protocols</a> - in this case FTP.
</p>
<blockquote>
PHP has many functions that help us to implement Internet and/or networking protocols. In this article we will look at how to implement some of those protocols using PHP.
</blockquote>
<p>
His examples uses PHP's <a href="http://php.net/ftp">FTP methods</a> to create a simple frontend to a remote FTP server. Included is the code to get the basics of it working - listing remote files and displaying them out in a styled list.
</p>]]></description>
      <pubDate>Thu, 13 Jan 2011 08:20:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: How to use external libraries in PHP?]]></title>
      <guid>http://www.phpdeveloper.org/news/12553</guid>
      <link>http://www.phpdeveloper.org/news/12553</link>
      <description><![CDATA[<p>
As a part of his work for the WinPHP Challenge <i>Juozas Kaziukenas</i> looks at some of the external library types that you can use with your (Windows) PHP applications.
</p>
<blockquote>
External libraries are useful for performance demanding tasks where PHP is simply too slow. Also PHP can work as front-end system for various back-end systems (where server doesn't provide any PHP supported communication types). I have written some posts about using <a href="http://dev.juokaz.com/winphp-2009/using-php-with-c-written-libraries">.Net libraries in PHP</a> so far, but there are some other choices available too.
</blockquote>
<p>
He looks at the three types of library choices - <a href="http://pecl.php.net/">PHP extensions</a>, <a href="http://uk.php.net/manual/en/class.com.php>COM obejcts</a> and running commands through something like an <a href="http://php.net/exec">exec</a> call. For what he wants to do, though, the COM objects are the best fit for the job.
</p>]]></description>
      <pubDate>Sat, 23 May 2009 20:26:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin's Blog: An ftp server written in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12538</guid>
      <link>http://www.phpdeveloper.org/news/12538</link>
      <description><![CDATA[<p>
<i>Justin</i> has <a href="http://www.rawseo.com/news/2009/05/18/an-ftp-server-written-in-php/">written up a quick look</a> at a FTP server that's been written entirely in PHP - <a href="http://www.rawseo.com/tools.html">nanoFTP</a>.
</p>
<blockquote>
nanoFTPd is an ftp daemon written in php. as of version 4.2.0, php supports the command-line interface (stable since 4.3.0), which nanoFTPd relies on. nanoFTPd is modular, so it's easy to add custom modules and other stuff, like different database interfaces (currently supports mysql and postgresql).
</blockquote>
<p>
The server allows for a lot of the usual FTP functionality - uploads, downloads, user authentication, logging, etc. It works with PHP 4.2 and above and is pretty simple to install.
</p>]]></description>
      <pubDate>Tue, 19 May 2009 10:40:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: phpanywhere (Online PHP IDE)]]></title>
      <guid>http://www.phpdeveloper.org/news/12427</guid>
      <link>http://www.phpdeveloper.org/news/12427</link>
      <description><![CDATA[<p>
The <a href="http://phpanywhere.net/">phpanywhere site</a> boasts itself as "the easiest way to bring work with you anywhere you go - without bringing anything". The free (still in beta) service offers online PHP editing through a web browser interface.
</p>
<blockquote>
PHPanywhere is a web based free Integrated Development Environment or IDE for the PHP language, in other words it is an application that gives developers all the code editing capabilities they need to develop PHP applications online. It includes a real-time syntax code editor with support for all web formats and a powerful FTP editor.
</blockquote>
<p>
You can add in FTP servers and pull files directly from them to edit and upload back over. You can also use the project sharing to allow others to see the current state of your code (real-time collaboration is "coming soon"). You can see screenshots of <a href="http://phpanywhere.net/images/editor.jpg">the editor interface</a>, <a href="http://phpanywhere.net/images/newftp.jpg">setting up FTP sites</a> and <a href="http://phpanywhere.net/images/permissions.jpg">modifying permissions for the files</a>.
</p>]]></description>
      <pubDate>Wed, 29 Apr 2009 11:12:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Port Scanning and Service Status Checking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12297</guid>
      <link>http://www.phpdeveloper.org/news/12297</link>
      <description><![CDATA[<p>
On the DeveloperTutorials.com site today there's <a href="http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page1.html">a new tutorial</a> showing the creation of a port scanner with PHP - a tool that, given some of the familiar ports that services (like web or email servers) run on, can check to see if they're responding.
</p>
<blockquote>
While building web applications, it's often important to keep an eye on the other services running on your server. Having access to the current status of public servers can empower your applications to make decisions and respond to problems automatically. Acknowledging a service is offline can also save endless support emails. In this tutorial, I'll show you how to keep track of your server status by scanning ports on your server with PHP.
</blockquote>
<p>
Their example makes a socket connection to the remote port to see if there's a valid hookup. The wrap this inside a loop for ports 1 through 1000 to see what ports are open and responding on your local machine (doing this on a remote machine is just asking for trouble).
</p>
<p>
Their full example defines some of the common ports in an array and loops to check on their status. It sets out a base you can build on top of with things like their suggestions - logging scan results, repoting downtime and running a service-specific task.
</p>]]></description>
      <pubDate>Wed, 08 Apr 2009 08:49:21 -0500</pubDate>
    </item>
  </channel>
</rss>
