<?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>php mysql apache &#187; apache</title>
	<atom:link href="http://www.phpmysqlapache.com/wordpress/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmysqlapache.com/wordpress</link>
	<description>Provides simple tips and tricks about php programming, mysql databases, apache web server and linux servers</description>
	<lastBuildDate>Wed, 23 Sep 2009 12:53:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache logs are not rotated in cpanel</title>
		<link>http://www.phpmysqlapache.com/wordpress/2007/11/21/apache-logs-are-not-roated-in-cpanel/</link>
		<comments>http://www.phpmysqlapache.com/wordpress/2007/11/21/apache-logs-are-not-roated-in-cpanel/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 23:19:48 +0000</pubDate>
		<dc:creator>msti</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[cpanel]]></category>

		<guid isPermaLink="false">http://www.phpmysqlapache.com/wordpress/2007/11/21/apache-logs-are-not-roated-in-cpanel/</guid>
		<description><![CDATA[use this code to rotate the apache logs in /etc/httpd/logs/ The logs in /etc/httpd/domlogs are rotated according to setting in WHM -> Tweak settings
PLAIN TEXT
CODE:




/etc/httpd/logs/*log {


missingok


notifempty


sharedscripts


compress


postrotate


/bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2&#62;/dev/null` 2&#62; /dev/null &#124;&#124; true


endscript


} 






          Share/Save]]></description>
		<wfw:commentRss>http://www.phpmysqlapache.com/wordpress/2007/11/21/apache-logs-are-not-roated-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force apache to download an image instead of opening it</title>
		<link>http://www.phpmysqlapache.com/wordpress/2007/02/21/force-apache-to-download-an-image-instead-of-opening-it/</link>
		<comments>http://www.phpmysqlapache.com/wordpress/2007/02/21/force-apache-to-download-an-image-instead-of-opening-it/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 10:37:36 +0000</pubDate>
		<dc:creator>msti</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.phpmysqlapache.com/wordpress/2007/02/21/force-apache-to-download-an-image-instead-of-opening-it/</guid>
		<description><![CDATA[Have you ever came across a situation where you wanted an image to download instead of having the browser to display it? This is how you can do it . Enter the following code in a php file foo.php and call it like foo.php?file=myimage.jpg. Then a browser save dialog box will appear.
PLAIN TEXT
PHP:




if&#40;!$_GET&#91;'file'&#93;&#41;&#123;exit;&#125;


$file = basename&#40;$_GET&#91;'file'&#93;&#41;;


header&#40;"Content-Length: [...]]]></description>
		<wfw:commentRss>http://www.phpmysqlapache.com/wordpress/2007/02/21/force-apache-to-download-an-image-instead-of-opening-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
