<?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>OpenKB::Server Technical Papers &#187; PHP</title>
	<atom:link href="http://www.openkb.org/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openkb.org</link>
	<description>Computer , server issues and solutions</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:50:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Drupal , clear failed cron value</title>
		<link>http://www.openkb.org/drupal-clear-failed-cron-value/</link>
		<comments>http://www.openkb.org/drupal-clear-failed-cron-value/#comments</comments>
		<pubDate>Sun, 08 May 2011 06:48:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=967</guid>
		<description><![CDATA[DELETE FROM `variable` WHERE name = &#8216;cron_semaphore&#8217;; DELETE FROM `variable` WHERE name = &#8216;cron_last&#8217;;]]></description>
			<content:encoded><![CDATA[<p>DELETE FROM `variable` WHERE name = &#8216;cron_semaphore&#8217;;<br />
DELETE FROM `variable` WHERE name = &#8216;cron_last&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/drupal-clear-failed-cron-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what are PHP Variables?</title>
		<link>http://www.openkb.org/what-are-php-variables/</link>
		<comments>http://www.openkb.org/what-are-php-variables/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 11:06:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=862</guid>
		<description><![CDATA[Variables PHP with MySQL Essential Training &#124; by Kevin Skoglund View this entire MySQL course and more in the lynda.com Online Training Library&#174;.]]></description>
			<content:encoded><![CDATA[<div style="font-family:Verdana; font-size:16px; color:#000; font-weight:bold;">Variables</div>
<div style="margin-bottom:15px;font-family:Verdana;font-size:12px;"><a href="http://www.lynda.com/home/DisplayCourse.aspx?lpk2=435&#038;utm_source=embed+video&#038;utm_campaign=embed+video&#038;utm_content=PHP+with+MySQL+Essential+Training+28521&#038;utm_term=Course+link">PHP with MySQL Essential Training</a> | by Kevin Skoglund</div>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="365" width="560" id="ply" ><param name="movie" value="http://www.lynda.com/home/embed/player.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param value="basepath=http://www.lynda.com/home/&amp;skin=http://www.lynda.com/home/embed/skin.swf&amp;plugins=http://www.lynda.com/home/embed/controlling.swf&amp;type=video&amp;lpk4=28521" name="flashvars" /><embed src="http://www.lynda.com/home/embed/player.swf" width="560" height="365" allowfullscreen="true" allowscriptaccess="always" flashvars="basepath=http://www.lynda.com/home/&amp;skin=http://www.lynda.com/home/embed/skin.swf&amp;plugins=http://www.lynda.com/home/embed/controlling.swf&amp;type=video&amp;lpk4=28521"></embed></object>
<div style="font-family:Verdana;font-size:12px; margin-top:10px; ">View this entire <a href="http://www.lynda.com/home/DisplayCourse.aspx?lpk2=435&#038;utm_source=embed+video&#038;utm_campaign=embed+video&#038;utm_content=PHP+with+MySQL+Essential+Training+28521&#038;utm_term=Course+link">MySQL course</a> and more in the lynda.com <a href="http://www.lynda.com/home/otl.aspx?utm_source=embed+video&#038;utm_campaign=embed+video&#038;utm_content=PHP+with+MySQL+Essential+Training+28521&#038;utm_term=OTL+link">Online Training Library&reg;</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/what-are-php-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP upload: Files are assigned to nobody</title>
		<link>http://www.openkb.org/php-upload-files-are-assigned-to-nobody/</link>
		<comments>http://www.openkb.org/php-upload-files-are-assigned-to-nobody/#comments</comments>
		<pubDate>Tue, 11 May 2010 10:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CPANEL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=784</guid>
		<description><![CDATA[PHP uploaded files will generally get uploaded with the user nobody when using mod_php. This is the apache module for PHP which means the file will be uploaded with the apache user. In order to work around this you can modify your code to chown the file to the appropriate ftp user. The best option [...]]]></description>
			<content:encoded><![CDATA[<p>PHP uploaded files will generally get uploaded with the user nobody when using mod_php. This is the apache module for PHP which means the file will be uploaded with the apache user. In order to work around this you can modify your code to chown the file to the appropriate ftp user. The best option is to use PHP in FCGI mode or install SuPHP. This will ensure the files will always upload using the folder owner id. </p>
<p>Using cpanel this can be installed using the easyapache tool. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/php-upload-files-are-assigned-to-nobody/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk Billing &#8211; internal error has occurred- license</title>
		<link>http://www.openkb.org/plesk-billing-internal-error-has-occurred-license/</link>
		<comments>http://www.openkb.org/plesk-billing-internal-error-has-occurred-license/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 16:49:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=767</guid>
		<description><![CDATA[Error: When trying to activate the plesk billing license you receive a internal error message: ok , so what does this mean.. if you ask plesk , you will need to wait 72 hours for a answer. so this is why we have openkb.org Reason: check and make sure fopen is on in the php.ini [...]]]></description>
			<content:encoded><![CDATA[<p>Error:<br />
When trying to activate the plesk billing license you receive a internal error message: ok , so what does this mean.. if you ask plesk , you will need to wait 72 hours for a answer. so this is why we have openkb.org </p>
<p>Reason: check and make sure fopen is on in the php.ini file and openssl has been compiled with php. </p>
<p>other error you may receive<br />
You must have the OpenSSL extension enabled in your PHP installation in order to use Parallels Plesk Billing. You do not.<br />
Invalid license data found in system. You need to update your license to a Parallels Plesk Billing 6.x license key. Please contact support for help with this process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/plesk-billing-internal-error-has-occurred-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3 &#8211; Date warning</title>
		<link>http://www.openkb.org/php-5-3/</link>
		<comments>http://www.openkb.org/php-5-3/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:37:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=757</guid>
		<description><![CDATA[Wow, PHP is changing the way we code our websites More Warnings Warning: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, PHP is changing the way we code our websites </p>
<p>More Warnings<br />
Warning: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;America/New_York&#8217; for &#8216;EDT/-4.0/DST&#8217; instead in </p>
<p>Solution :<br />
date.timezone will need to be set within the php.ini file as<br />
date.timezone = &#8220;timezone&#8221;<br />
<a href="http://us3.php.net/manual/en/timezones.php">Supported timezones</a><br />
America/New_York</p>
<p>Also Set the function d<a href="http://www.php.net/manual/en/function.date-default-timezone-set.php">ate_default_timezone_set</a><br />
Example date_default_timezone_set(&#8216;America/Los_Angeles&#8217;);</p>
<p>possible errors:<br />
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP/IIS7 &#8211;  IIS to return a 502 Bad Gateway</title>
		<link>http://www.openkb.org/phpiis7-iis-to-return-a-502-bad-gateway/</link>
		<comments>http://www.openkb.org/phpiis7-iis-to-return-a-502-bad-gateway/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 00:19:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=717</guid>
		<description><![CDATA[php-cgi.exe does work on IIS7. You need to modify PHP.INI to have the line: cgi.force_redirect = 0 If you do not do this modification, PHP-CGI.EXE outputs a security warning response without proper response headers, which causes IIS to return a 502 Bad Gateway. Strangely, running PHP-CGI.EXE from the commandline does not generate this error &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>php-cgi.exe does work on IIS7. You need to modify PHP.INI to have the line:</p>
<p>cgi.force_redirect = 0</p>
<p>If you do not do this modification, PHP-CGI.EXE outputs a security warning response without proper response headers, which causes IIS to return a 502 Bad Gateway. Strangely, running PHP-CGI.EXE from the commandline does not generate this error &#8211; I guess using NPH CGI is the only way to debug PHP, because running it from the commandline is not 100% indicative of web-server Runtime behavior.</p>
<p>Tested using VC9 x86 Thread Safe PHP 5.3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/phpiis7-iis-to-return-a-502-bad-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP compression using gzip</title>
		<link>http://www.openkb.org/php-compression-using-gzip/</link>
		<comments>http://www.openkb.org/php-compression-using-gzip/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:46:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=702</guid>
		<description><![CDATA[The best way to compress PHP files is to use auto_prepend_file Add the filling code to a file called gzip.php &#60;?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?&#62; Then update your php.ini files as follows auto_prepend_file= /path/to/gzip.php you can also use a htaccess file if your server permits php_value auto_prepend_file gzip.php Testing the compression or [...]]]></description>
			<content:encoded><![CDATA[<p>The best way to compress PHP files is to use</p>
<p>auto_prepend_file</p>
<p>Add the filling code to a file called gzip.php<br />
<code>&lt;?php</p>
<p>    if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))</p>
<p>        ob_start("ob_gzhandler");</p>
<p>    else</p>
<p>        ob_start();</p>
<p>?&gt;<br />
</code><br />
Then update your php.ini files as follows</p>
<p>auto_prepend_file= /path/to/gzip.php</p>
<p>you can also use a htaccess file if your server permits</p>
<pre><code>php_value auto_prepend_file gzip.php</code></pre>
<p><a href="http://www.gidnetwork.com/tools/gzip-test.php" target="_blank">Testing the compression</a><br />
or<br />
curl -I -H &#8216;Accept-Encoding: gzip,deflate&#8217; http://www.example.com<br />
<a href="http://viralpatel.net/blogs/2009/02/compress-php-css-js-javascript-optimize-website-performance.html">More detailed information</a> on compressing files</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/php-compression-using-gzip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; File too large to upload</title>
		<link>http://www.openkb.org/php-file-too-large-to-upload/</link>
		<comments>http://www.openkb.org/php-file-too-large-to-upload/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 16:24:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=610</guid>
		<description><![CDATA[Your file size upload is controlled by two variables in php.ini upload_max_file_size and post_max_file_size]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; margin-bottom: 11px; padding: 0px;">Your file size upload is controlled by two variables in php.ini</p>
<p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; margin-bottom: 11px; padding: 0px;">upload_max_file_size and post_max_file_size</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/php-file-too-large-to-upload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>missing the mysql which is required for wordpress</title>
		<link>http://www.openkb.org/missing-the-mysql-which-is-required-for-wordpress/</link>
		<comments>http://www.openkb.org/missing-the-mysql-which-is-required-for-wordpress/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 00:50:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=596</guid>
		<description><![CDATA[php installation appears to be missing the mysql which is required for wordpress ====== open the php.ini file. if you do a search for extension=php_mysql.dll and un comment it ie delete the ; at the beginning of the line then search further up in the ini file for extension_dir=&#8221;./&#8221; and replace ./ with c:\php\ext (assuming [...]]]></description>
			<content:encoded><![CDATA[<p>php installation appears to be missing the mysql which is required for wordpress</p>
<p>======<br />
open the php.ini file.<br />
if you do a search for extension=php_mysql.dll and un comment it ie delete the ; at the beginning of the line<br />
then search further up in the ini file for extension_dir=&#8221;./&#8221; and replace ./ with c:\php\ext (assuming your php is in c:\php) so it will look like: extension_dir=&#8221;c:\php\ext&#8221;. This tells php that the dllfor the php_mysql.dll is located in c:\php\ext.<br />
save your php.ini<br />
Also copy libmysql.dll from c:\php c:\windows\system32 and then restart IIS</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/missing-the-mysql-which-is-required-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP has encountered an Access Violation</title>
		<link>http://www.openkb.org/php-has-encountered-an-access-violation/</link>
		<comments>http://www.openkb.org/php-has-encountered-an-access-violation/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 00:49:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=594</guid>
		<description><![CDATA[There seems to be a bug when using PHP version 5.2.10 on windows 2003. Using the isapi module We have encountered the following error &#8220;PHP has encountered an Access Violation&#8221; After downgrading to 5.2.6 the error has cleared.]]></description>
			<content:encoded><![CDATA[<p>There seems to be a bug when using PHP version 5.2.10 on windows 2003. Using the isapi module We have encountered the following error<br />
&#8220;PHP has encountered an Access Violation&#8221;</p>
<p>After downgrading to 5.2.6 the error has cleared. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/php-has-encountered-an-access-violation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

