<?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>WEB-NES-BAY &#187; Web Server</title>
	<atom:link href="http://webnesbay.com/tag/web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://webnesbay.com</link>
	<description>Learn Tips and tricks on Linux, Hacking, linux, PHP, Perl, Web, Hardware</description>
	<lastBuildDate>Sun, 11 Apr 2010 05:12:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sending data via XMLHttpRequest POST in PHP</title>
		<link>http://webnesbay.com/sending-data-via-xmlhttprequest-post-in-php/</link>
		<comments>http://webnesbay.com/sending-data-via-xmlhttprequest-post-in-php/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 13:28:42 +0000</pubDate>
		<dc:creator>WEBNESBAY</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ajax feed]]></category>
		<category><![CDATA[Apache 4]]></category>
		<category><![CDATA[Few Minutes]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer 2]]></category>
		<category><![CDATA[Internet Information]]></category>
		<category><![CDATA[Limited Capacity]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Mental Fatigue]]></category>
		<category><![CDATA[Number Of Bytes]]></category>
		<category><![CDATA[Onreadystatechange]]></category>
		<category><![CDATA[php in browsers]]></category>
		<category><![CDATA[Php Script]]></category>
		<category><![CDATA[post script in php]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[Protocol Specification]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Script Php]]></category>
		<category><![CDATA[sending data in php]]></category>
		<category><![CDATA[sending xml request]]></category>
		<category><![CDATA[Span Style]]></category>
		<category><![CDATA[Tipoff]]></category>
		<category><![CDATA[Tipon]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[XML request]]></category>

		<guid isPermaLink="false">http://webnesbay.com/?p=486</guid>
		<description><![CDATA[ Implementing an AJAX feed data to a PHP script, and usually by sending data via GET, it had not experienced major problems, however this time the number of bytes far exceed the limited capacity of the GET.   Before proceeding further, to clarify this point that we have reference &#8230;
 Do limit the number of characters that can be passed by GET ($ _GET)?
 In mid-1998 was published the HTTP protocol specification, a fairly complete, but inaccurate in [...]


Related posts:<ol><li><a href='http://webnesbay.com/decorators-in-python/' rel='bookmark' title='Permanent Link: Decorators in Python'>Decorators in Python</a></li>
<li><a href='http://webnesbay.com/show-which-ip-addresses-are-connected-to-my-server/' rel='bookmark' title='Permanent Link: Show which IP addresses are connected to my server'>Show which IP addresses are connected to my server</a></li>
<li><a href='http://webnesbay.com/creating-thumbnails-in-php-using-pear-libraries/' rel='bookmark' title='Permanent Link: Creating thumbnails in PHP using pear libraries'>Creating thumbnails in PHP using pear libraries</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()"> Implementing an AJAX feed data to a PHP script, and usually by sending data via GET, it had not experienced major problems, however this time the number of bytes far exceed the limited capacity of the GET.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;"> </span> Before proceeding further, to clarify this point that we have reference &#8230;</span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;"> </span><span style="font-weight: bold;">Do limit the number of characters that can be passed by GET ($ _GET)?</span></span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()"> In mid-1998 was published the HTTP protocol specification, a fairly complete, but inaccurate in the ceiling of the data transferred via GET, so long after the browsers by themselves have released their own specifications .</span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">We emphasize the limits of the most popular:</span></p>
<ul>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">Internet Explorer: 2.083 caracteres</span> </span></li>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">FireFox: 65.536 caracteres</span> </span></li>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">Safari: 80.000 caracteres</span> </span></li>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">Opera: 190.000 caracteres</span> </span></li>
</ul>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">Thus</span><br />
<ins style="border: medium none; margin: 0pt; padding: 0pt; display: inline-table; height: 250px; position: relative; visibility: visible; width: 300px;"></ins><ins style="border: medium none; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 300px;"></ins><br />
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">D</span>epending on the same platform and web server, we must consider other standards, such as for example:</span></p>
<ul>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">Apache: 4.000 caracteres</span> </span></li>
<li> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">Microsoft Internet Information </span></span></li>
</ul>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">Considering this could easily determine that the data above 2000 characters is preferable to pass POST.</span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">Now, returning to the subject in which I lifted this morning, I commented that it is very common in the lives of professional development due to physical and mental fatigue, in many cases can last for hours solving one problem, otherwise we just take a few minutes.</span><br />
<span onmouseover="_tipon(this)" onmouseout="_tipoff()">In this case was no exception <img src='http://webnesbay.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">The original code that sends data via GET as follows:</span></p>
<p>&lt;span onmouseover=&#8221;_tipon(this)&#8221; onmouseout=&#8221;_tipoff()&#8221;&gt;&lt;span style=&#8221;direction: ltr; text-align: left;&#8221;&gt;xml.open(&#8216;get&#8217;, &#8216;http://www.webnesbay.com/script.php?variable_get=hello&#8217;);&lt;/span&gt; xml.open ( &#8216;get&#8217;, &#8216;http://www.webnesbay.com/script.php?variable_get=hello&#8221;);&lt;/span&gt;<br />
&lt;span onmouseover=&#8221;_tipon(this)&#8221; onmouseout=&#8221;_tipoff()&#8221;&gt;&lt;span style=&#8221;direction: ltr; text-align: left;&#8221;&gt;xml.onreadystatechange = handleResults;&lt;/span&gt; xml.onreadystatechange = handleResults;&lt;/span&gt;<br />
&lt;span onmouseover=&#8221;_tipon(this)&#8221; onmouseout=&#8221;_tipoff()&#8221;&gt;&lt;span style=&#8221;direction: ltr; text-align: left;&#8221;&gt;xml.send(null);&lt;/span&gt; xml.send (null);&lt;/span&gt;</p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">Now, so we can send data by POST, so we must add a header data, as I do below:</span></p>
<p><span><span>&lt;span onmouseover=</span><span>&#8220;_tipon(this)&#8221;</span><span> onmouseout=</span><span>&#8220;_tipoff()&#8221;</span><span>&gt;&lt;span </span><span>class</span><span>=</span><span>&#8220;google-src-text&#8221;</span><span> style=</span><span>&#8220;direction: ltr; text-align: left;&#8221;</span><span>&gt;xml.open(</span><span>&#8216;post&#8217;</span><span>, </span><span>&#8216;http://www.webnesbay.com/script.php?variable_get=hola&#8217;</span><span>);&lt;/span&gt; xml.open ( </span><span>&#8216;post&#8217;</span><span>, </span><span>&#8216;http://www.webnesbay.com/script.php?variable_get=hello&#8217;</span><span>);&lt;/span&gt;</span></span></p>
<p><span>&lt;span onmouseover=<span>&#8220;_tipon(this)&#8221;</span><span> onmouseout=</span><span>&#8220;_tipoff()&#8221;</span><span>&gt;&lt;span </span><span>class</span><span>=</span><span>&#8220;google-src-text&#8221;</span><span> style=</span><span>&#8220;direction: ltr; text-align: left;&#8221;</span><span>&gt;xml.setRequestHeader(</span><span>&#8216;Content-Type&#8217;</span><span>, </span><span>&#8216;application/x-www-form-urlencoded; charset=ISO-8859-1&#8242;</span><span>);&lt;/span&gt; xml.setRequestHeader ( </span><span>&#8216;Content-Type&#8217;</span><span>, </span><span>&#8216;application / x-www-form-urlencoded; charset = ISO-8859-1&#8242;</span><span>);&lt;/span&gt;</span></span></p>
<p><span>&lt;span onmouseover=<span>&#8220;_tipon(this)&#8221;</span><span> onmouseout=</span><span>&#8220;_tipoff()&#8221;</span><span>&gt;&lt;span </span><span>class</span><span>=</span><span>&#8220;google-src-text&#8221;</span><span> style=</span><span>&#8220;direction: ltr; text-align: left;&#8221;</span><span>&gt;xml.send(</span><span>&#8220;variable_post=1&amp;variable_post2=1&#8243;</span><span>);&lt;/span&gt; xml.send (variable_post = 1 &amp; variable_post2 = 1 &#8221;);&lt;/span&gt; </span></span></p>
<p><span onmouseover="_tipon(this)" onmouseout="_tipoff()">The problem was that to send data by POST need to send a previously that allows us to store the contents.</span></p>


<p>Related posts:<ol><li><a href='http://webnesbay.com/decorators-in-python/' rel='bookmark' title='Permanent Link: Decorators in Python'>Decorators in Python</a></li>
<li><a href='http://webnesbay.com/show-which-ip-addresses-are-connected-to-my-server/' rel='bookmark' title='Permanent Link: Show which IP addresses are connected to my server'>Show which IP addresses are connected to my server</a></li>
<li><a href='http://webnesbay.com/creating-thumbnails-in-php-using-pear-libraries/' rel='bookmark' title='Permanent Link: Creating thumbnails in PHP using pear libraries'>Creating thumbnails in PHP using pear libraries</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webnesbay.com/sending-data-via-xmlhttprequest-post-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run Gentoo + Apache2 + PHP</title>
		<link>http://webnesbay.com/run-gentoo-apache2-php/</link>
		<comments>http://webnesbay.com/run-gentoo-apache2-php/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 09:16:19 +0000</pubDate>
		<dc:creator>WEBNESBAY</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Many Things]]></category>
		<category><![CDATA[Opts]]></category>
		<category><![CDATA[Strange Beast]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://webnesbay.com/?p=5</guid>
		<description><![CDATA[Gentoo is a strange beast&#8230; It seems like many things were done differently just to be different. Gentoo places the configuration files Apache2 reads on startup in:
/etc/apache2/conf
The configuration files are then setup with &#60;IfDefine&#62; directives for loading specific modules. You must edit /etc/conf/apache2 to set an environment variable (APACHE2_OPTS) to include the PHP4 directive:
APACHE2_OPTS="-D PHP4"
Note that the APACHE2_OPTS line already exists in /etc/conf/apache2, it just needs to be uncommented and modified to include &#8220;-D PHP4&#8243;
After you have enabled the PHP4 [...]


Related posts:<ol><li><a href='http://webnesbay.com/install-apache-2-2-on-windows/' rel='bookmark' title='Permanent Link: Install Apache 2.2 on windows'>Install Apache 2.2 on windows</a></li>
<li><a href='http://webnesbay.com/control-apache-with-the-apachectl-command/' rel='bookmark' title='Permanent Link: Control Apache with the apachectl command'>Control Apache with the apachectl command</a></li>
<li><a href='http://webnesbay.com/interacting-java-with-php/' rel='bookmark' title='Permanent Link: Interacting Java with PHP'>Interacting Java with PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Gentoo is a strange beast&#8230; It seems like many things were done differently just to be different. Gentoo places the configuration files <a href="http://apache.org/">Apache2</a> reads on startup in:</p>
<pre>/etc/apache2/conf</pre>
<p>The configuration files are then setup with &lt;IfDefine&gt; directives for loading specific modules. You must edit /etc/conf/apache2 to set an environment variable (APACHE2_OPTS) to include the PHP4 directive:</p>
<pre>APACHE2_OPTS="-D PHP4"</pre>
<p>Note that the APACHE2_OPTS line already exists in /etc/conf/apache2, it just needs to be uncommented and modified to include &#8220;-D PHP4&#8243;<br />
After you have enabled the PHP4 define you can just restart the web server:</p>
<pre>/etc/init.d/apache2 restart</pre>


<p>Related posts:<ol><li><a href='http://webnesbay.com/install-apache-2-2-on-windows/' rel='bookmark' title='Permanent Link: Install Apache 2.2 on windows'>Install Apache 2.2 on windows</a></li>
<li><a href='http://webnesbay.com/control-apache-with-the-apachectl-command/' rel='bookmark' title='Permanent Link: Control Apache with the apachectl command'>Control Apache with the apachectl command</a></li>
<li><a href='http://webnesbay.com/interacting-java-with-php/' rel='bookmark' title='Permanent Link: Interacting Java with PHP'>Interacting Java with PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://webnesbay.com/run-gentoo-apache2-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
