<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cloudweavers &#187; php</title>
	<atom:link href="http://www.cloudweavers.org/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudweavers.org</link>
	<description>Cutting-edge technology consultant</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:56:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>PHP MultiPart Form-Data Denial of Service proof of concept</title>
		<link>http://www.cloudweavers.org/2009/11/php-multipart-form-data-denial-of-service-proof-of-concept/</link>
		<comments>http://www.cloudweavers.org/2009/11/php-multipart-form-data-denial-of-service-proof-of-concept/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:12:29 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[labsphoenix]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1376</guid>
		<description><![CDATA[PHP version 5.3.1 was just released. This release contains a patch for a denial of service condition we&#8217;ve reported on 27 October 2009. The problem is related with PHP&#8217;s handling of RFC 1867 (Form-based File upload in HTML). Source: http://www.securityfocus.com/archive/1/507982 Exploit already on PacketStorm&#8230;]]></description>
			<content:encoded><![CDATA[<blockquote><p>PHP version 5.3.1 was just released. This release contains a patch for a denial of service condition we&#8217;ve reported on 27 October 2009. The problem is related with PHP&#8217;s handling of RFC 1867 (Form-based File upload in HTML).</p></blockquote>
<p><strong>Source</strong>: <a href="http://www.securityfocus.com/archive/1/507982">http://www.securityfocus.com/archive/1/507982</a></p>
<p> Exploit already on <a href="http://packetstormsecurity.org/0911-exploits/php_mpfd_dos.py.txt">PacketStorm</a>&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/11/php-multipart-form-data-denial-of-service-proof-of-concept/feed/</wfw:commentRss>
		<slash:comments>643</slash:comments>
		</item>
		<item>
		<title>retrieve client browser lang setting with php</title>
		<link>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/</link>
		<comments>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 02:55:27 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmation]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1214</guid>
		<description><![CDATA[I promised a client I would give him a little PHP script to help him deal with internationalization (french/english visitors) of his website. So, here is a very simple way to retrieve your visitor&#8217;s browser language setting and fork through a IF clause based on this value : < ?php #we retreive the language $lang [...]]]></description>
			<content:encoded><![CDATA[<p>I promised a client I would give him a little PHP script to help him deal with internationalization (french/english visitors) of his website. So, here is a very simple way to retrieve your visitor&#8217;s browser language setting and fork through a IF clause based on this value :</p>
<blockquote><p>< ?php<br />
#we retreive the language<br />
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);<br />
<br/><br />
#if french $lang=fr, english $lang=en<br />
if ( $lang==&#8221;fr&#8221; ) {<br />
        echo &#8220;ceci est la version francaise&#8221;;<br />
        }<br />
else {<br />
         echo &#8220;other language&#8221;;<br />
        }</p>
<p>?>
</p></blockquote>
<p>This is not meant to be the &#8216;best&#8217; way or the &#8216;easiest&#8217;, it is simply the way I would do it for a small project. If you got a better way, feel free to post it in the comment section of this post ! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/07/retrieve-client-browser-lang-with-php/feed/</wfw:commentRss>
		<slash:comments>167</slash:comments>
		</item>
		<item>
		<title>ensim &amp; php  :&#8217;premature end of script&#8217; ; php-script&#8217;</title>
		<link>http://www.cloudweavers.org/2009/05/premature-end-of-script/</link>
		<comments>http://www.cloudweavers.org/2009/05/premature-end-of-script/#comments</comments>
		<pubDate>Wed, 13 May 2009 19:40:18 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ensim]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1099</guid>
		<description><![CDATA[I had an installation of phpForms [1] to complete on a client server where Ensim was already installed and configured. installed. I&#8217;ve learn a couple of things: 1. Recovering the root MySQL password is &#8216;really, really easy&#8217; if Ensim is installed on the server &#8211; maybe a bit too much: # ensim-python -c &#8220;import sys;sys.path.append(\&#8221;/usr/lib/opcenter/mysql\&#8221;);import [...]]]></description>
			<content:encoded><![CDATA[<p>I had an installation of phpForms [1] to complete on a client server where Ensim was already installed and configured. installed. I&#8217;ve learn a couple of things:<br />
<br />
<strong>1.</strong> <br />
Recovering the root MySQL password is &#8216;really, really easy&#8217; if Ensim is installed on the server  &#8211; maybe a bit too much: </p>
<blockquote><p># ensim-python -c &#8220;import sys;sys.path.append(\&#8221;/usr/lib/opcenter/mysql\&#8221;);import mysqlbe;print mysqlbe.read_mysqlpass()&#8221;</p></blockquote>
<p>
<strong>2.</strong><br />
<em>./phpforms/install.php</em> script fail with a 500 error (application error) when viewed with a web browser but output valid code when viewed through a CLI. In a direct relation, the apache error-log is complaining : <br />
<strong>&#8216;premature end of script&#8217; ; php-script&#8217; </strong><br />
<br />
This error is directly related to Ensim&#8217;s security setting. Try lowering them: when logged as server-administrator, edit the site setting, and set a &#8216;low-security-setting&#8217;.<br />
<br />
[1]. <a href="http://phpforms.net/">http://phpforms.net/</a> &#8211; PHP Scripts to auto-magically create web forms using database backend. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/05/premature-end-of-script/feed/</wfw:commentRss>
		<slash:comments>140</slash:comments>
		</item>
	</channel>
</rss>

