<?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>Wed, 22 May 2013 01:48:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: Hijacking Headers to Force Downloads]]></title>
      <guid>http://www.phpdeveloper.org/news/17751</guid>
      <link>http://www.phpdeveloper.org/news/17751</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> shows how you can <a href="http://philsturgeon.co.uk/blog/2012/03/hijacking-headers-to-force-downloads">hijack headers</a> in his latest post to force a download to the client (even on a hosted service like <a href="http://pagodabox.com">PagodaBox</a>).
</p>
<blockquote>
The question [I posed on Twitter] was: "How to force a download of any file of any type, not on your server, without Apache tweaking? Images are displaying and need em to download." Essentially, I wanted to be able to link to a file that was not on the server in question and anywhere in the world, which could be of any size, any media type and could be potentially very high traffic.
</blockquote>
<p>
Answers varied from using <a href="http://php.net/readfile">readfile</a> to just letting the browser handle it. None of the responses were quick right until he came across one that recommended some settings in an .htaccess file. It uses <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html>mod_rewrite</a> (Apache) to redirect the user to a new resource while adding a "Content-Disposition" header in the process (of "attachment").
</p>]]></description>
      <pubDate>Thu, 29 Mar 2012 11:29:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Securing Your Web Application Against Attacks]]></title>
      <guid>http://www.phpdeveloper.org/news/11254</guid>
      <link>http://www.phpdeveloper.org/news/11254</link>
      <description><![CDATA[<p>
DevShed continues their series focusing on the security of your web application in <a href="http://www.devshed.com/c/a/PHP/Securing-Your-Web-Application-Against-Attacks/">this fifth part</a> of the series. This time they look at preventing attacks on your app via correct authentication.
</p>
<blockquote>
You will probably recall from the last article that I mentioned the existence of two methods of authentication and discussed the first one, which is through an HTML form. In this article, the fifth one in an eight-part series, we'll start with the second method of authentication. We'll also discuss how attackers may gain access to your system.
</blockquote>
<p>
This authentication method uses a simple form to let the user pass in their credentials. Unfortunately, because of its simplicity, this also opens it up to three kinds of attacks - password sniffing, reply attacks and brute force attacks.
</p>]]></description>
      <pubDate>Tue, 21 Oct 2008 08:47:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: Windows fixes release for Zip, fopen(,"rb") may not be binary safe]]></title>
      <guid>http://www.phpdeveloper.org/news/6777</guid>
      <link>http://www.phpdeveloper.org/news/6777</link>
      <description><![CDATA[<p>
A new release of the Zip PECL package has been made according to <a href="http://blog.thepimp.net/index.php/post/2006/11/28/Windows-fixes-release-for-Zip-fopenrb-may-not-be-binary-safe">this post</a> on <i>Pierre-Alain Joye</i>'s blog today. The main update in <a href="http://pecl.php.net/get/zip">this release</a> is to counteract a Windows bug that's interfering with binary file opens.
</p>
<blockquote>
The issue is actually a windows bug. No matter if I give or not the "b" flag to fopen, the write operations are not binary safe. It seems to be a known issue as many projects use the same trick.
</blockquote>
<p>
The problem comes up when PHP forces the binary mode in SAPI and CLI, making the binary writes to a file non-binary safe no matter what. <i>Pierre</i> is also <a href="http://blog.thepimp.net/index.php/post/2006/11/28/Windows-fixes-release-for-Zip-fopenrb-may-not-be-binary-safe">asking for help</a> from anyone out there with any information/bug reports/references about this issue that would yield something useful.
</p>]]></description>
      <pubDate>Tue, 28 Nov 2006 07:13:09 -0600</pubDate>
    </item>
  </channel>
</rss>
