<?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 &#187; web design</title>
	<atom:link href="http://artse.com/category/web-design/feed" rel="self" type="application/rss+xml" />
	<link>http://artse.com</link>
	<description>cPanel Hosting, Website Hosting, Hosting Tutorial, Hosting Tools</description>
	<lastBuildDate>Thu, 24 Sep 2009 03:21:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Process to create own server stat script in PHP</title>
		<link>http://artse.com/web-design/process-to-create-own-server-stat-script-in-php</link>
		<comments>http://artse.com/web-design/process-to-create-own-server-stat-script-in-php#comments</comments>
		<pubDate>Wed, 26 Mar 2008 15:17:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://artse.com/?p=30</guid>
		<description><![CDATA[It is important to check your ports are responding  before you create your own server stat script in PHP.  You should aware when one of your particular service are down, such as HTTP, MySQL, POP/SMTP, etc as well you should know the current server loads, and users which will be the main indicator of [...]]]></description>
			<content:encoded><![CDATA[<p>It is important to check your ports are responding  before you create your own server stat script in PHP.  You should aware when one of your particular service are down, such as HTTP, MySQL, POP/SMTP, etc as well you should know the current server loads, and users which will be the main indicator of a runaway script, or process.</p>
<p>So let’s start.</p>
<p>Make sure your php script ALWAYS start with &lt;?php  this let your server understand that it is in fact a php script</p>
<p>&lt;?php</p>
<p>//You can replace the domain with an IP if you wish</p>
<p>$site = “mysite.com”;  //this is the site you wish to check</p>
<p>// Let’s check our common ports 80, 21, and 110<br />
$http = fsockopen($site, 80);<br />
$ftp = fsockopen($site, 21);<br />
$pop3 = fsockopen($site, 110);</p>
<p>if ($http) {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;HTTP&lt;/b&gt;: Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}<br />
else {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;HTTP&lt;/b&gt;: Not Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}</p>
<p>if ($ftp) {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;FTP&lt;/b&gt;: Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}<br />
else {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;FTP&lt;/b&gt;: Not Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}</p>
<p>if ($pop3) {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;POP3/SMTP&lt;/b&gt;: Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}<br />
else {<br />
$status .= “&lt;font face=\”Arial\”&gt;&lt;font size=\”2\”&gt;&lt;b&gt;POP3/SMTP&lt;/b&gt;: Not Working&lt;/font&gt;&lt;/font&gt;&lt;br&gt;”;<br />
}<br />
echo(”$status”);</p>
<p>echo(”&lt;hr&gt;”);</p>
<p>// Users and load information<br />
$reguptime = trim(exec(”uptime”));<br />
if ($reguptime) {<br />
if (preg_match(”/, *(\d) (users?), .*: (.*), (.*), (.*)/”, $reguptime, $uptime)) {<br />
$users[0] = $uptime[1];<br />
$users[1] = $uptime[2];<br />
$loadnow = $uptime[3];<br />
$load15 = $uptime[4];<br />
$load30 = $uptime[5];<br />
}<br />
} else {<br />
$users[0] = “Unavailable”;<br />
$users[1] = “–”;<br />
$loadnow = “Unavailable”;<br />
$load15 = “–”;<br />
$load30 = “–”;<br />
}</p>
<p>echo(”&lt;b&gt;Current Users:&lt;/b&gt; $users[0]&lt;br&gt;<br />
&lt;b&gt;Current Load:&lt;/b&gt; $loadnow&lt;br&gt;&lt;b&gt;Load 15 mins ago:&lt;/b&gt; $load15&lt;br&gt;&lt;b&gt;Load 15 mins ago:&lt;/b&gt; $load30&lt;br&gt;&lt;hr&gt;”);</p>
<p>// Operating system<br />
$fp = @fopen(”/proc/version”, “r”);<br />
if ($fp) {<br />
$temp = fgets($fp);<br />
fclose($fp);</p>
<p>if (preg_match(”/version (.*?) /”, $temp, $osarray)) {<br />
$kernel = $osarray[1];<br />
preg_match(”/[0-9]{5,} (\((.* *)\)\))/”, $temp, $osarray);<br />
$flavour = $osarray[2];<br />
$operatingsystem = $flavour.” (”.PHP_OS.” “.$kernel.”)”;<br />
if (preg_match(”/SMP/”, $buf)) {<br />
$operatingsystem .= ” (SMP)”;<br />
}<br />
} else {<br />
$result = “(N/A)”;<br />
}<br />
} else {<br />
$result = “(N/A)”;<br />
}</p>
<p>echo(”&lt;b&gt;Operating System:&lt;/b&gt;&lt;br&gt;$operatingsystem”);<br />
?&gt;</p>
<p> It will display the status of your services, your user and load averages once you upload the above code  to your server.</p>
<p>Now you can work with this, and make it look what ever you want, add new ports, etc.</p>
<p>Remember, this is just a very basic stat script.</p>
<p>Few Issues<br />
You should aware that your <a href="http://www.micfo.com">web hosting</a> provider will need to allow the exec() funtion, in order for this to work properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://artse.com/web-design/process-to-create-own-server-stat-script-in-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Standard Element</title>
		<link>http://artse.com/web-design/web-standard-element</link>
		<comments>http://artse.com/web-design/web-standard-element#comments</comments>
		<pubDate>Sat, 15 Mar 2008 11:52:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://artse.com/?p=20</guid>
		<description><![CDATA[A mounting fondness and endorsement with a set of standardization &#38; best practices for building web sites should include broader attitude for the web design and development initiative. Web standards appear to be one of the important elements while designing your web site since designers can able to address larger audience world wide. It brings [...]]]></description>
			<content:encoded><![CDATA[<p>A mounting fondness and endorsement with a set of standardization &amp; best practices for building web sites should include broader attitude for the web design and development initiative. Web standards appear to be one of the important elements while designing your web site since designers can able to address larger audience world wide. It brings multiple diversity in terms to meet browsers compatibility- more accessibility and the following edging benefits which adopt the web standards;</p>
<p class="MsoNormal">* One of the incredible benefits of web standards is that your site will work with all major browsers and it requires slighter development costs due to its simpler development process and low maintenance.</p>
<p>* It increase usability and accessibility, that makes the pages download faster and make easier to decipher the content for screen readers.</p>
<p>* It enhance better search engine ranking since by separating presentation from content increases the information &amp; markup ratio, making CSS-based documents more pertinent with regard to the search terms.</p>
<p>* Reduce dependency in one developer; the site designed adhering the web standards are very well documented, any other developer taking over some standard-compliant code can hit the ground running.</p>
<p>* Reduces bandwidth consumption.</p>
<p>* Increase Clarity and conciseness.</p>
<p>* Cheap <a href="http://www.micfo.com/">web site hosting</a> cost &amp; site maintenance.</p>
<p>* Provide Print version for all pages &amp; users can customize site appearance.</p>
<p>* Allow your site to be accessible to a larger audience base– including the vision impaired, cognitive impaired.</p>
<p>Conclusion;<br />
Using web standards and separating structure from presentation is going to give you advantage in long term, all these factors add value to your site and wide coverage and overall a better ROI</p>
]]></content:encoded>
			<wfw:commentRss>http://artse.com/web-design/web-standard-element/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
