<?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 Hosting, Reseller and Windows Hosting Stuff &#187; PHP Stuff</title>
	<atom:link href="http://www.cloudhostingweb.com/category/php-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudhostingweb.com</link>
	<description>Another one of those web hosting blogs ...</description>
	<lastBuildDate>Wed, 26 Oct 2011 23:45:11 +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>How to run a PHP script on cron?</title>
		<link>http://www.cloudhostingweb.com/how-to-run-a-php-script-on-cron/</link>
		<comments>http://www.cloudhostingweb.com/how-to-run-a-php-script-on-cron/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 06:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Stuff]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cloudhostingweb.com/?p=19</guid>
		<description><![CDATA[First make your your web host allows you to do cronjob. We recommend using ehostpros.com for web hosting.
Look here to see how to setup your own crontab.
If your PHP scripts do not have executable permissions, 644 or  -rw-r–r– for example, then as part of the command portion of the cron  line, you must]]></description>
			<content:encoded><![CDATA[<p>First make your your web host allows you to do cronjob. We recommend using ehostpros.com for <a title="web hosting" href="http://www.ehostpros.com">web hosting</a>.</p>
<p>Look here to see how to setup your own crontab.</p>
<p>If your PHP scripts do not have executable permissions, 644 or  -rw-r–r– for example, then as part of the command portion of the cron  line, you must specify the php interpreter and pass it the filename of  the PHP script (including full path to the script from your home  directory) that you want executed, like so:</p>
<p>28 14 * * * /usr/local/bin/php /myscript.phtml<br />
6 3 20 4 * /usr/local/bin/php /htdocs/www/x.php</p>
<p>The first cron line above will run myscript.phtml located in your  home directory every day at 2:28PM. The second line will run the script  x.php from your /htdocs/www/ directory once a year on April 20th at  3:06AM.</p>
<p>When you explicitly specify the php interpreter /usr/local/bin/php  your scripts need not have filenames ending in .php .phtml .php3 .php4.  Conversely, if your script filenames do not end in one of those PHP  extensions, then you must explicitly use the php interpreter in the  command portion of your cron as above.</p>
<p>If your PHP scripts do have executable permissions like 755 or  -rwxr-xr-x and they have one of the PHP filename extensions above, then  you do not need to specify the php interpreter in the command portion of  your cron line, like this:</p>
<p>5 17 * * 2 /myscript.php</p>
<p>The above cron would run myscript.php in your home directory every  Tuesday at 5:05PM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudhostingweb.com/how-to-run-a-php-script-on-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable the safe mode for particular domain</title>
		<link>http://www.cloudhostingweb.com/how-to-disable-the-safe-mode-for-particular-domain/</link>
		<comments>http://www.cloudhostingweb.com/how-to-disable-the-safe-mode-for-particular-domain/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 06:27:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Stuff]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[safe-mode]]></category>

		<guid isPermaLink="false">http://www.cloudhostingweb.com/?p=17</guid>
		<description><![CDATA[You cannot turn safe_mode off in .htaccess.
You can only change this value in system files (root access needed);  php.ini or in &#60;virtualhost&#62; entry in apache’s httpd.conf.
More info: http://www.php.net/features.safe-mode
HOW-TO:
Changing safe_mode to off (or on) in just one domain
edit /usr/local/apache/conf/httpd.conf
find something similar to:
Quote:
&#60;VirtualHost IP.IP.IP.IP&#62;
ServerAlias www.domain.com domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/user/public_html
(…)
&#60;/VirtualHost&#62;
of the domain name you wish to change, and]]></description>
			<content:encoded><![CDATA[<p>You cannot turn safe_mode off in .htaccess.</p>
<p>You can only change this value in system files (root access needed);  php.ini or in &lt;virtualhost&gt; entry in apache’s httpd.conf.<br />
More info: <a onclick="javascript:pageTracker._trackPageview  ('/outbound/www.php.net');" href="http://www.php.net/features.safe-mode" target="_blank">http://www.php.net/features.safe-mode</a></p>
<p>HOW-TO:<br />
Changing safe_mode to off (or on) in just one domain</p>
<p>edit /usr/local/apache/conf/httpd.conf<br />
find something similar to:<br />
Quote:<br />
&lt;VirtualHost IP.IP.IP.IP&gt;<br />
ServerAlias <a onclick="javascript:pageTracker._trackPageview  ('/outbound/www.domain.com');" href="http://www.domain.com/" target="_blank">www.domain.com</a> domain.com<br />
ServerAdmin <a href="mailto:webmaster@domain.com">webmaster@domain.com</a><br />
DocumentRoot /home/user/public_html<br />
(…)<br />
&lt;/VirtualHost&gt;<br />
of the domain name you wish to change, and palce inside  &lt;virtualhost&gt;&lt;/virtualhost&gt;:<br />
&lt;IfModule mod_php4.c&gt;<br />
php_admin_flag safe_mode off (or on)<br />
&lt;/IfModule&gt;</p>
<p>That way, domain.com will have safe_mode disabled (or enabled)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudhostingweb.com/how-to-disable-the-safe-mode-for-particular-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

