<?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>Wowebmaster.com &#187; admin</title>
	<atom:link href="http://www.wowebmaster.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wowebmaster.com</link>
	<description>World of Webmaster: Sharing Experiences</description>
	<lastBuildDate>Wed, 27 May 2009 10:31:11 +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>Wow XML Flash Video Player</title>
		<link>http://www.wowebmaster.com/flash/wow-xml-flash-video-player/</link>
		<comments>http://www.wowebmaster.com/flash/wow-xml-flash-video-player/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 18:34:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash 10]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[flv]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=88</guid>
		<description><![CDATA[A FLV Video Player with enhanced features like pre-roll and in-video text advertising]]></description>
			<content:encoded><![CDATA[<p>Wowebmaster, released an advanced flash video player, playing FLV files, with lots of features mainly focusing on advertising needs. This video player includes many features that no competitors have. One of them, are, in-video text ads (as in youtube), pre-roll video ads and post-video screen that you can advertise anything you want: your videos or any other product.</p>
<p><a href="#demoo">Click for demo!</a></p>
<p>Addition to those advertisement features, Wow XML Flash Video Player helps you keep your video files hidden. This is handled with a hidden xml file, queried inside flash video player. This is crucial to prevent bandwidth theft also keeping your visitors coming to your site, since there will be no way to download video files.</p>
<p>All of the features, can be configured with few easy steps, by just modifying an xml file and adding few parameters into HTML. That&#8217;s all. All is well explained in our documentation, that will be provided you if you purchase.</p>
<h3><strong>Features:</strong></h3>
<ul>
<li><strong>Hides your exact video path</strong> ( Videos are fetched from XML )<br />
<small>Video path is hidden in XML file. The XML file path can only be seen in Actionscript, which means anyone willing to hack your video path, to steal bandwidth, has to have your FLA file, which he will not have.</small></li>
<li><strong>No need to edit FLA. Configure this flash video player using XML</strong><br />
<small>All the features of this video player, can be configured easily with html code</small></li>
<li><strong>Define the path to your video in the  XML</strong><br />
<small>Video path is kept in an xml file. Our documentation explains how to use this file, even demonstrates an example of php coded dynamic video site.</small></li>
<li><strong>Enhanced advertisement functions</strong><br />
<small>You can have a <strong>pre-roll video advertisement</strong> for your video, just by configuring your video player using HTML. You can also have <strong>in-video text ads</strong>, again configurable. Let&#8217;s just say, on the 6th second of the video, you want to advertise Google.com, configuration is so easy. Then you will have a popup inside the video when it reaches to the 6th second. See the demo. </small></li>
<li><strong>Auto Play Feature</strong><br />
<small>You can easily set the video to auto play or not. If not, you can also have a preview image before the video plays. </small></li>
<li><strong>Post-Video Related/Featured Videos Screen</strong><br />
<small>You can guide your visitors to view more videos, by showing 3 recommended/related videos at the end of the video.</small></li>
<li><strong>Your Web Site&#8217;s Logo on Video Screen</strong><br />
<small>You can also have your site&#8217;s logo on video screen, it is totally configurable with HTML. No need to edit FLA.</small></li>
<li><strong>Fully customizable</strong><br />
<small>Some of the customizable features:</small></p>
<ul>
<li><small>Auto Play: True or False</small></li>
<li><small>Pre-roll Ads: True or False</small></li>
<li><small>Video Preview Image: True or False</small></li>
<li><small>In-video Ads: True or False</small></li>
<li><small>Post-video related videos screen: True or False</small></li>
<li><small>Your logo on screen: True or False</small></li>
</ul>
</li>
<li><strong>Can easily be reskinned and resized</strong></li>
</ul>
<h3><strong>If you buy, You get:</strong></h3>
<ul>
<li>FLA. You can easily customize the skin of your video player.<br />
<small>.fla files contain source material for the Flash application. Flash authoring software can edit FLA files and compile them into .swf files.</small></li>
<li>SWF. Wow XML Flash Video Player.</li>
<li>DOC. Detailed documentation on using Wow XML Flash Video Player</li>
<li>PHP-XML coded video site example with Wow XML Flash Video Player.</li>
<li>Upgrades are totally free.</li>
<li>Unlimited Support. We even help you build your video web site !</li>
</ul>
<h3><strong>Technical Specifications:</strong></h3>
<ul>
<li>Adobe Flash Player 10</li>
<li>Actipscript 2. MediaDisplay used.</li>
<li>SWF File: 66KB</li>
<li>Plays FLV files</li>
<li>Progressive Download</li>
</ul>
<h3><strong>More Features and It&#8217;s Customizable! Check it out</strong></h3>
<p>The video below, is set to auto-play:false. Preview image is set. In-video ad is set. Pre-roll video ad is set. Post-video screen is enabled. <a href="http://www.wowebmaster.com/demo/flash-video-player.html" target="_blank">Click here for an auto play version</a>.</p>
<div id="demoo" style="border:1px solid black; background-color:#FFCC66; width:750px; padding:0px 15px 10px 15px">
<h2>A Demo: Pre-roll ad, Invideo text ad, Post-video screen</h2>
<table border="0">
<tbody>
<tr valign="top">
<td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="489" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="wowebmaster-vid" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="src" value="http://www.wowebmaster.com/demo/wowebmaster-vid2.swf?logo_w=120&amp;logo_h=25&amp;logo=/video/logo.png&amp;autoplay=false&amp;img_en=1&amp;img=/video/hmm3.jpg&amp;inline_en=1&amp;inline_duration=6000&amp;timer=10&amp;ad_en=1&amp;post_en=1" /><embed id="wowebmaster-vid" type="application/x-shockwave-flash" width="489" height="390" src="http://www.wowebmaster.com/demo/wowebmaster-vid2.swf?logo_w=120&amp;logo_h=25&amp;logo=/video/logo.png&amp;autoplay=false&amp;img_en=1&amp;img=/video/hmm3.jpg&amp;inline_en=1&amp;inline_duration=6000&amp;timer=10&amp;ad_en=1&amp;post_en=1" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="sameDomain" align="middle"></embed></object></td>
<td style="padding-left:15px"><strong>Configurations for this demo:</strong><br />
1. Auto Play is set to &#8220;false&#8221; for this demo.<br />
2. A pre-roll video advertisement is configured.<br />
3. In the 10th second of the video, an in-video text ad will popup.<br />
4. A PNG logo is configured to show up on the video screen.<br />
5. When the video finishes, a related videos screen will be appeared.<br />
6. Try to reach to the video file path. It&#8217;s hidden!<br />
<strong><a href="http://www.wowebmaster.com/demo/flash-video-player.html" target="_blank">Click here to see an auto play configured demo!</a></strong></p>
<h4><em>Just $12</em></h4>
<p><strong>This item is available at flashden.net. <a href="http://flashden.net/item/wow-xml-flash-video-player-w-preroll-invideo-ads/30923/?ref=sguler" target="_blank">Click to purchase!</a></strong></td>
</tr>
</tbody>
</table>
</div>
<blockquote><p>If you are having problems purchasing this software, please <a href="http://www.wowebmaster.com/about/">contact us</a>.</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fflash%2Fwow-xml-flash-video-player%2F&amp;linkname=Wow%20XML%20Flash%20Video%20Player"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/flash/wow-xml-flash-video-player/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Video Player Tutorial</title>
		<link>http://www.wowebmaster.com/flash/flash-video-player-tutorial/</link>
		<comments>http://www.wowebmaster.com/flash/flash-video-player-tutorial/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:51:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash 10]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=62</guid>
		<description><![CDATA[Design a custom flash video player for your website!]]></description>
			<content:encoded><![CDATA[<p>A custom video player can be very helpful for your overall beauty of your web design. If you have a video site, it is even more crucial to have a custom video player that leaves a good impression on your visitors.</p>
<p>In this tutorial, we&#8217;ll show you how to code and design your custom flash video player step by step. We hope it will be a good resource for the flash newbies.</p>
<p><a href="#vid">Click for an example.</a></p>
<blockquote><p><strong>Important Notes Before Beginning</strong></p>
<ul>
<li>Don&#8217;t forget to set the instance names of the movieclips as stated, otherwise, the actions will not work!</li>
<li>Pay attention to <em>italic</em> statements. They will be telling you which layer &amp; movieclip you are working on!</li>
<li>FullScreen button will only work if you have &lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221; /&gt; in your HTML.</li>
</ul>
</blockquote>
<p><strong>Design Part:</strong></p>
<p>First,  create a new flash document (ActionScript 2.0) and set the size and the frame rate as you wish. A frame rate of 30fps is typical. Speaking of document size, you should keep in mind that if you are streaming 4&#215;3 ratio videos, you should obey this ratio also adding the height of control bar which we will use. We, in this tutorial, set the size to 489 x 400 px.</p>
<p>As background color, we suggest you to set it same with your website&#8217;s background color. But it is up to you, of course.</p>
<p><em>Scene 1 (layer:background)</em></p>
<p>Now name the first layer &#8220;background&#8221; and put whatever you want to display on the background of your video player. We placed a black fading background for the control bar here.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash1.jpg"><img class="alignnone size-full wp-image-63" title="flash1" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash1.jpg" alt="" width="621" height="417" /></a></p>
<p><em>Scene 1 (layer:controls)</em></p>
<p>Create a new layer, named &#8220;controls&#8221;. Then, draw your control bar buttons that will trigger video to pause, play, rewind, mute and resize to fullscreen.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash6.jpg"><img class="alignnone size-full wp-image-70" title="flash6" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash6.jpg" alt="" width="490" height="36" /></a></p>
<p>Convert all buttons to movie clips by selecting and hitting F8. Name each as you wish. Then in the properties window, set the instance name of each movie clip. Instance names of the buttons in our example; &#8220;pause_btn&#8221;, &#8220;play_btn&#8221;, &#8220;rewind_btn&#8221;, &#8220;mc_volume&#8221; and &#8220;fullscreen_btn&#8221; in order.</p>
<p><em>Scene 1 &gt; volume (layer:Layer1)</em></p>
<p>As you can guess, volume and fullscreen buttons must have different views when clicked. So, first, click on the volume button to edit further. Inside the movieclip, create two frames, one for mute, one for unmute.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash8.jpg"><img class="alignnone size-full wp-image-73" title="flash8" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash8.jpg" alt="" width="500" height="272" /></a></p>
<p><em>Scene 1 &gt; fullscreen (layer:Layer1 &amp; Layer2)</em></p>
<p>Repeat the same process for the fullscreen button. Two parts of the fullscreen button, the arrow and the rectangle is split to two layers in my example. You are totally free on that.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash7.jpg"><img class="alignnone size-full wp-image-74" title="flash7" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash7.jpg" alt="" width="500" height="301" /></a></p>
<p><em>Scene 1 (layer:controls)</em></p>
<p>For the scrub bar, you will draw 2 thick lines, one long and horizontal, and one short and vertical. Convert each line you drew to movieclip by selecting and hitting F8. Set the instance name of the long line, which will be used as the video timeline, &#8220;mc_track&#8221;. Instance name of the knob, the short line, can be set as &#8220;mc_knob&#8221;. Finally, select both movieclips together and hit F8 to merge both into one movieclip, which we named &#8220;mc_scrubber&#8221;.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash2.jpg"><img class="alignnone size-full wp-image-64" title="flash2" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash2.jpg" alt="" width="618" height="415" /></a></p>
<p>Now, select all movie clips together ( Shift + click each one ) and hit F8 again to merge all movie clips in one clip. Name it &#8220;mc_controls&#8221;.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash10.jpg"><img class="alignnone size-full wp-image-76" title="flash10" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash10.jpg" alt="" width="450" height="443" /></a></p>
<p><em>Scene 1 (layer:video)</em></p>
<p>Now, create a new layer, named &#8220;Video&#8221;. Open the components panel or hit directly Ctrl+F7 and drag the MediaDisplay component to the newly created layer. For the video to show up in the whole screen of video player, you must resize the component to fill all white area. After resizing, click on the MediaDisplay component and open the component inspector tools ( Shift + F7 ). In the parameters tab, uncheck &#8220;Automatically Play&#8221;, &#8220;Use Preferred Media Size&#8221; and &#8220;Respect Aspect Ratio&#8221;. You can use it &#8220;Automatically Play&#8221; checked if you want that way.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash5.jpg"><img class="alignnone size-full wp-image-69" title="flash5" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash5.jpg" alt="" width="392" height="348" /></a></p>
<p><em>Scene 1 (layer:stroke)</em></p>
<p>For the video screen to be more stylish, create a new layer over the &#8220;video&#8221; layer, name it &#8220;stroke&#8221; and grap the rectangle tool to draw a rectangle ( <em>black + 1 px border</em> ) with the same dimensions of MediaDisplay component. This is to cover the component with a stroke around. Now, we have a better video player look.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash3.jpg"><img class="alignnone size-full wp-image-67" title="flash3" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash3.jpg" alt="" width="617" height="447" /></a></p>
<p><strong>ActionScript Part:</strong></p>
<p><em>Scene 1 (layer:actions)</em></p>
<p>Actionscript part is the important part to add the functionality to our design. First, we begin with defining the relative path of the video file. Create a new layer, named &#8220;actions&#8221;. Click on the first frame and open the actions panel. Type the following code to define the FLV address. Keep in mind that, this video player is only able to play FLV files.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash4.jpg"><img class="alignnone size-full wp-image-68" title="flash4" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash4.jpg" alt="" width="615" height="312" /></a></p>
<p>The path, &#8220;video/video.flv&#8221; is the relative path for the video file, named &#8220;video.flv&#8221;. &#8220;FLV&#8221; expresses that the video player will be used to play FLV files. The other option is &#8220;MP3&#8243;.</p>
<p><em>Scene 1 &gt; mc_controls (layer:othercntrls</em><em>)</em></p>
<p>Now time to add &#8220;actions&#8221; for the control buttons. Click on the &#8220;mc_controls&#8221; movie clip, that must be in &#8220;controls&#8221; layer normally. Click twice to edit this movie clip, Inside &#8220;mc_controls&#8221;, create 3 layers and names in order: &#8220;progress&#8221;, &#8220;actions&#8221;, &#8220;othercntrls&#8221;. Put all the control bar buttons (&#8221;pause_btn&#8221;, &#8220;play_btn&#8221;, &#8220;rewind_btn&#8221;, &#8220;mc_volume&#8221; and &#8220;fullscreen_btn&#8221; ), created before, into &#8220;othercntrls&#8221; layer. &#8220;actions&#8221; layer again will keep all the actionscript and &#8220;progress&#8221; layer will hold the scrub bar for the video player.</p>
<p><a href="http://www.wowebmaster.com/flash/2009/flash-video-player-tutorial/#comment-176">Click here for more about this step.</a></p>
<p><em>Scene 1 &gt; mc_controls (layer:actions</em><em>)</em></p>
<p>Now, click on the &#8220;actions&#8221; layer, open the actions panel for this layer (F9). Add the following code into actions panel.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code1'); return false;">View Code</a> FLASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p621"><td class="code" id="p62code1"><pre class="flash" style="font-family:monospace;">video = _root.video;
//play button function
play_btn.onRelease = function() {
video.play();
};
//pause button function
pause_btn.onRelease = function() {
video.pause();
};
//fullscreen function
fullscreen_btn.onRelease = function() {
video.displayFull();
toggleFullScreen();
};
&nbsp;
//rewind function, stop(0) can also be used.
rewind.onRelease = function() {
video.play(0);
};
&nbsp;
//mute and unmute
mc_volume.onRelease = function() {
mc_volume.play();
};
&nbsp;
//This part is for the fullscreen function
Stage.scaleMode=&quot;Scale&quot;;
Stage.align = &quot;TC&quot;;  //T:top, C: center
function toggleFullScreen(){
if(Stage[&quot;displayState&quot;]==&quot;normal&quot;){
Stage[&quot;displayState&quot;]=&quot;fullScreen&quot;;
fullscreen_btn.gotoAndStop(2);
}else{
Stage[&quot;displayState&quot;]=&quot;normal&quot;;
fullscreen_btn.gotoAndStop(1);
}
}</pre></td></tr></table></div>

<p><em>Scene 1 &gt; mc_controls &gt; volume (layer:</em>Layer1<em>) &amp; Scene 1 &gt; mc_controls &gt; fullscreen</em><em></em></p>
<p>For the volume button and the fullscreen button, only the first frames of those movieclips must be appearing on the screen if not clicked. When those buttons clicked, movieclips must play the second frames and stop there. To do that, add a stop function into the every frame of fullscreen and volume movieclips. In the code above, it can be seen that clicking the button, will play those stopped movieclips, meaning the second frame will appear on screen.</p>
<p><a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash9.jpg"><img class="alignnone size-full wp-image-75" title="flash9" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/flash9.jpg" alt="" width="472" height="412" /></a></p>
<p><em>Scene 1 &gt; mc_controls &gt; volume (layer:</em>Layer1<em>)</em></p>
<p>For the volume button, to mute and unmute the sound. We will add two pieces of code after <em>stop</em> function in actions panel, that changes the state of sound for that frame.</p>
<p>For frame 1, put the following code into actions panel. When this frame plays, sound will be unmuted.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code2'); return false;">View Code</a> FLASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p622"><td class="code" id="p62code2"><pre class="flash" style="font-family:monospace;">stop();
_root.video.volume = 100;</pre></td></tr></table></div>

<p>For frame 2, put the following code into actions panel. This frame will decrease the volume to zero.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code3'); return false;">View Code</a> FLASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p623"><td class="code" id="p62code3"><pre class="flash" style="font-family:monospace;">stop();
_root.video.volume = 0;</pre></td></tr></table></div>

<p>In sum, we have a video screen, that has the path for the video file, a rewind button, a pause button, a play button, a volume control button and a fullscreen button. The only thing left is a scrub bar&#8217;s (seek bar) functions.</p>
<p><em>Scene 1 &gt; mc_controls &gt; mc_scrubber (layer:</em>Layer1<em>)</em></p>
<p>Scrub bar needs the following code. So, click on &#8220;mc_scrubber&#8221; movieclip and create a new layer for the actions. Copy and paste the following code, into the actions panel.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p62code4'); return false;">View Code</a> FLASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p624"><td class="code" id="p62code4"><pre class="flash" style="font-family:monospace;">video = _root.video;
mc_knob.onPress = function() {
mdown = true;
this.startDrag(false, 0, 0, mc_track._width, 0);
};
mc_knob.onRelease = function() {
mdown = false;
this.stopDrag();
};
mc_knob.onReleaseOutside = mc_knob.onRelease();
this.onEnterFrame = function() {
if (mdown) {
dist = mc_knob._x;
pct = dist/mc_track._width;
newVol = pct*video.totalTime;
video.playheadTime = newVol;
} else {
dist = video.playheadTime;
pct = dist/video.totalTime;
newX = pct*mc_track._width;
mc_knob._x = newX;
}
};</pre></td></tr></table></div>

<p>That&#8217;s it. You must now have had a simple flash video player for your web site. This is my result:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="489" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="vid" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="src" value="http://www.wowebmaster.com/vid.swf" /><embed id="vid" type="application/x-shockwave-flash" width="489" height="400" src="http://www.wowebmaster.com/vid.swf" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="sameDomain" align="middle"></embed></object></p>
<h3><strong>More Features in Wow XML Flash Video Player. Check it out!</strong></h3>
<p>If you are unable to end up with a result like above or you are looking for a more advanced player, here it is. We have the Wow XML Flash Video Player. It&#8217;s just $12, including the FLA.</p>
<p>The video below, is set to auto-play:false. Preview image is set. In-video ad is set. Pre-roll video ad is set. Post-video screen is enabled. <a href="http://www.wowebmaster.com/demo/flash-video-player.html" target="_blank">Click here for an auto play version</a>.</p>
<div style="border:1px solid black; background-color:#FFCC66; width:750px; padding:0px 15px 10px 15px">
<h2>Wow XML Flash Video Player: Pre-roll ad, Invideo text ad, Post-video screen</h2>
<table border="0">
<tbody>
<tr valign="top">
<td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="489" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="wowebmaster-vid" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="src" value="http://www.wowebmaster.com/demo/wowebmaster-vid2.swf?logo_w=120&amp;logo_h=25&amp;logo=/video/logo.png&amp;autoplay=false&amp;img_en=1&amp;img=/video/hmm3.jpg&amp;inline_en=1&amp;inline_duration=6000&amp;timer=10&amp;ad_en=1&amp;post_en=1" /><embed id="wowebmaster-vid" type="application/x-shockwave-flash" width="489" height="390" src="http://www.wowebmaster.com/demo/wowebmaster-vid2.swf?logo_w=120&amp;logo_h=25&amp;logo=/video/logo.png&amp;autoplay=false&amp;img_en=1&amp;img=/video/hmm3.jpg&amp;inline_en=1&amp;inline_duration=6000&amp;timer=10&amp;ad_en=1&amp;post_en=1" bgcolor="#000000" quality="high" allowfullscreen="true" allowscriptaccess="sameDomain" align="middle"></embed></object></td>
<td style="padding-left:15px"><strong>Some of the Features:</strong><br />
1. Preroll Advertisement Option<br />
2. Invideo Text Advertisement Option<br />
3. Your Own Logo on the Screen<br />
4. Post-video Related-videos Screen<br />
5. XML Input<br />
6. Preview Image Before the Video Plays<br />
<a href="http://www.wowebmaster.com/flash/2009/wow-xml-flash-video-player/"><strong>More Info &gt;&gt;</strong></a></p>
<h4><em>Just $12</em></h4>
<p><strong>This item is available at flashden.net. <a href="http://flashden.net/item/wow-xml-flash-video-player-w-preroll-invideo-ads/30923/?ref=sguler" target="_blank">Click to purchase!</a></strong></td>
</tr>
</tbody>
</table>
</div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fflash%2Fflash-video-player-tutorial%2F&amp;linkname=Flash%20Video%20Player%20Tutorial"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/flash/flash-video-player-tutorial/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Free Magazine Style Wordpress Themes</title>
		<link>http://www.wowebmaster.com/featured/free-magazine-style-wordpress-themes/</link>
		<comments>http://www.wowebmaster.com/featured/free-magazine-style-wordpress-themes/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 15:52:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=31</guid>
		<description><![CDATA[A Free Wordpress Magazine / Newspaper Themes List]]></description>
			<content:encoded><![CDATA[<p><strong>Boring Classic Wordpress Themes evolved to Magazine / Newspaper Wordpress Themes</strong></p>
<p>When Wordpress first appeared in 2003, well-know traditional layout was so popular because of its simple design. However, as the wordpress blogs got popular across the world,  everyone got bored with the layouts simply outputting the latest posts one under the other. Because that layout was being used everywhere. But, thanks to the usage of wordpress as CMS, some magazines and newspapers used the wordpress blogging software as a content management system [ <a title="NY Times is wordpressing!" href="http://nytimes.com/" target="_blank">1</a>, <a title="Express and Star is wordpressing!" href="http://www.expressandstar.com/" target="_blank">2</a>, <a title="Ford is wordpressing!" href="http://autoshows.ford.com/" target="_blank">3</a>, <a title="Shrop Shire Star is wordpressing!" href="http://www.shropshirestar.com/" target="_blank">4</a> ]. This was one of the milestones to Wordpress magazine styles. Today, people love to read excerpts for the posts and see images next to them. By this way, a lot more posts can be viewed at the same time giving the ability to users to select whatever they want to read. Besides, organization and categorization on the front page is simpler and considered to be more presentable in magazine themes. Today, magazine themes is one of the most searched themes for wordpress. Lots of premium theme developers has also given the importance to magazine style theme developments. That&#8217;s why I prepare a wordpress magazine theme list that will provide anyone to quickly select a magazine theme.</p>
<p><strong>The List: Wordpress Magazine Themes</strong></p>
<ol>
<li>Magazeen Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/02/untitled.jpg"><img class="alignnone size-medium wp-image-92" title="untitled" src="http://www.wowebmaster.com/wp-content/uploads/2009/02/untitled-293x300.jpg" alt="" width="293" height="300" /></a><br />
<a href="http://demo.wefunction.com/?wptheme=Magazeen" target="_blank">Demo</a> | <a href="http://www.smashingmagazine.com/2009/02/23/magazeen-free-magazine-look-wordpress-theme/" target="_blank">Source</a></li>
<li>OpenBook Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/openbook-magazine-theme.jpg"><img class="alignnone size-medium wp-image-32" title="openbook-magazine-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/openbook-magazine-theme-300x191.jpg" alt="" width="300" height="191" /></a><br />
<a href="http://www.lyxia.org/blog/" target="_blank">Demo</a> | <a href="http://wphacks.com/free-magazine-wordpress-theme-introducing-openbook/" target="_blank">Source</a></li>
<li>Options Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/options-theme.jpg"><img class="alignnone size-medium wp-image-33" title="options-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/options-theme-300x190.jpg" alt="" width="300" height="190" /></a><br />
<a href="http://themehybrid.com/demo/options/" target="_blank">Demo</a> | <a href="http://justintadlock.com/archives/2008/02/24/options-wordpress-theme" target="_blank">Source</a></li>
<li>Hamasaki Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/hamasaki-theme.jpg"><img class="alignnone size-medium wp-image-34" title="hamasaki-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/hamasaki-theme-300x206.jpg" alt="" width="300" height="206" /></a><br />
<a href="http://demo.jauhari.net/" target="_blank">Demo</a> | <a href="http://www.jauhari.net/themes/hamasaki" target="_blank">Source</a></li>
<li>Structure Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/structure-theme.jpg"><img class="alignnone size-medium wp-image-35" title="structure-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/structure-theme-300x209.jpg" alt="" width="300" height="209" /></a><br />
<a href="http://themehybrid.com/demo/structure/" target="_blank">Demo</a> | <a href="http://themehybrid.com/themes/structure" target="_blank">Source</a></li>
<li>Rebel Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/rebel-magazine-theme.png"><img class="alignnone size-medium wp-image-36" title="rebel-magazine-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/rebel-magazine-theme-300x204.png" alt="" width="300" height="204" /></a><br />
<a href="http://ythv.info/rebel/" target="_blank">Demo</a> | <a href="http://www.wpthemedesigner.com/2008/05/07/rebel-magazine-theme/" target="_blank">Source</a></li>
<li>Arthemia Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/artemia-free.jpg"><img class="alignnone size-medium wp-image-37" title="artemia-free" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/artemia-free-300x207.jpg" alt="" width="300" height="207" /></a><br />
<a href="http://michaelhutagalung.com/arthemia/" target="_blank">Demo</a> | <a href="http://michaelhutagalung.com/2008/08/arthemia-20-released-the-updates/" target="_blank">Source</a></li>
<li>Newsweek Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/newsweek.jpg"><img class="alignnone size-medium wp-image-38" title="newsweek" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/newsweek-300x209.jpg" alt="" width="300" height="209" /></a><br />
<a href="http://demo.premiumthemes.net/?preview_theme=newsweek" target="_blank">Demo</a> | <a href="http://premiumthemes.net" target="_blank">Source</a></li>
<li>StudioWordpress Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/studio-wordpress.jpg"><img class="alignnone size-medium wp-image-39" title="studio-wordpress" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/studio-wordpress-300x204.jpg" alt="" width="300" height="204" /></a><br />
<a href="http://blogdesignstudio.com/premiere/?p=24" target="_blank">Demo</a> | <a href="http://blogdesignstudio.com/premiere/?p=24" target="_blank">Source</a></li>
<li>Visionary Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/visionary-theme.jpg"><img class="alignnone size-medium wp-image-40" title="visionary-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/visionary-theme-300x195.jpg" alt="" width="300" height="195" /></a><br />
<a href="http://themehybrid.com/demo/visionary/" target="_blank">Demo</a> | <a href="http://justintadlock.com/archives/2007/11/04/visionary-wordpress-theme" target="_blank">Source</a></li>
<li>Mimbo 2 Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/mimbo-theme.jpg"><img class="alignnone size-medium wp-image-41" title="mimbo-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/mimbo-theme-300x190.jpg" alt="" width="300" height="190" /></a><br />
<a href="http://www.darrenhoyt.com/demo/mimbo2/" target="_blank">Demo</a> | <a href="http://www.darrenhoyt.com/2007/08/05/wordpress-magazine-theme-released/" target="_blank">Source</a></li>
<li>Mimbo 3 Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/mimbo3.jpg"><img class="alignnone size-medium wp-image-59" title="mimbo3" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/mimbo3-300x206.jpg" alt="" width="300" height="206" /></a><br />
<a href="http://www.darrenhoyt.com/demo/wordpress/" target="_blank">Demo</a> | <a href="http://www.darrenhoyt.com/2009/01/30/mimbo-30-released/" target="_blank">Source</a></li>
<li>The Morning After Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/morning-after-theme.jpg"><img class="alignnone size-medium wp-image-42" title="morning-after-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/morning-after-theme-300x264.jpg" alt="" width="300" height="264" /></a><br />
<a href="http://www.eblogtemplates.com/demo/index.php?wptheme=The%20Morning%20After" target="_blank">Demo</a> | <a href="http://code.google.com/p/the-morning-after/" target="_blank">Source</a></li>
<li>Small Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/small-magazine.jpg"><img class="alignnone size-medium wp-image-43" title="small-magazine" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/small-magazine-300x278.jpg" alt="" width="300" height="278" /></a><br />
<a href="http://www.gabfire.com/wp-content/uploads/2008/10/sm.jpg" target="_blank">Demo</a> | <a href="http://www.gabfire.com/small-magazine-wordpress-theme/" target="_blank">Source</a></li>
<li>OverStand Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/fakeblog.jpg"><img class="alignnone size-medium wp-image-44" title="fakeblog" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/fakeblog-196x300.jpg" alt="" width="196" height="300" /></a><br />
<a href="http://www.fakeblog.de/" target="_blank">Demo</a> | <a href="http://www.fakeblog.de/2007/10/25/overstand-theme-fur-wordpress-23/#english" target="_blank">Source</a></li>
<li>Branford Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/branfordmagazine.jpg"><img class="alignnone size-medium wp-image-45" title="branfordmagazine" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/branfordmagazine-300x251.jpg" alt="" width="300" height="251" /></a><br />
<a href="http://www.wp-themes.der-prinz.com/magazine/" target="_blank">Demo</a> | <a href="http://www.der-prinz.com/2008/01/25/wordpress-theme-im-magazin-stil-branfordmagazine-wordpress-magazine-style-theme-branfordmagazine/" target="_blank">Source</a></li>
<li>Gabfire Wordpress Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/wpmag.jpg"><img class="alignnone size-medium wp-image-46" title="wpmag" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/wpmag-300x240.jpg" alt="" width="300" height="240" /></a><br />
<a href="http://www.gabfire.com/wp-content/uploads/2008/10/magazine.jpg" target="_blank">Demo</a> | <a href="http://www.gabfire.com/wordpress-magazine-theme-released/" target="_blank">Source</a></li>
<li>Smooth News Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/smooth-news.jpg"><img class="alignnone size-medium wp-image-47" title="smooth-news" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/smooth-news-294x300.jpg" alt="" width="294" height="300" /></a><br />
<a href="http://nontemplates.com/wordpress4/" target="_blank">Demo</a> | <a href="http://themes.blogflux.com/theme/2644.html" target="_blank">Source</a></li>
<li>Shiva Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/shiva.jpg"><img class="alignnone size-medium wp-image-48" title="shiva" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/shiva-300x300.jpg" alt="" width="300" height="300" /></a><br />
<a href="http://www.themespinner.com/demo/?wptheme=Shiva-Free" target="_blank">Demo</a> | <a href="http://www.themespinner.com/free-wordpress-themes.php" target="_blank">Source</a></li>
<li>Zinmag Futura Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/zinmag-futura.jpg"><img class="alignnone size-medium wp-image-49" title="zinmag-futura" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/zinmag-futura-300x150.jpg" alt="" width="300" height="150" /></a><br />
<a href="http://web2feel.com/futura/" target="_blank">Demo</a> | <a href="http://www.theme-wordpress.com/theme-wordpress/zinmag-futura/" target="_blank">Source</a></li>
<li>Digital Statement Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/digital-statement.jpg"><img class="alignnone size-medium wp-image-50" title="digital-statement" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/digital-statement-300x150.jpg" alt="" width="300" height="150" /></a><br />
<a href="http://wpthemes.blogohblog.net/" target="_blank">Demo</a> | <a href="http://www.blogohblog.com/wordpress-theme-digital-statement/" target="_blank">Source</a></li>
<li>Drenched Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/drenched-theme.jpg"><img class="alignnone size-medium wp-image-51" title="drenched-theme" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/drenched-theme-300x150.jpg" alt="" width="300" height="150" /></a><br />
<a href="http://ythv.info/drenched/" target="_blank">Demo</a> | <a href="http://www.wpthemedesigner.com/2008/11/08/drenched-theme/" target="_blank">Source</a></li>
<li>Gamezine Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/gamezine.jpg"><img class="alignnone size-medium wp-image-52" title="gamezine" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/gamezine-300x187.jpg" alt="" width="300" height="187" /></a><br />
<a href="http://web2feel.com/gamezine/" target="_blank">Demo</a> | <a href="http://web2feel.com/?p=142" target="_blank">Source</a></li>
<li>Daily Planet Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/dailyplanet.jpg"><img class="alignnone size-medium wp-image-53" title="dailyplanet" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/dailyplanet-300x187.jpg" alt="" width="300" height="187" /></a><br />
<a href="http://web2feel.com/dailyplanet/" target="_blank">Demo</a> | <a href="http://web2feel.com/?p=54" target="_blank">Source</a></li>
<li>Zinmag Redux Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/demo5.jpg"><img class="alignnone size-medium wp-image-54" title="demo5" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/demo5-300x187.jpg" alt="" width="300" height="187" /></a><br />
<a href="http://web2feel.com/demo5/" target="_blank">Demo</a> | <a href="http://web2feel.com/?p=45" target="_blank">Source</a></li>
<li>Forex Press Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/forexpress.jpg"><img class="alignnone size-medium wp-image-55" title="forexpress" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/forexpress-300x187.jpg" alt="" width="300" height="187" /></a><br />
<a href="http://web2feel.com/demosite1/?wptheme=forexpress" target="_blank">Demo</a> | <a href="http://web2feel.com/?p=62" target="_blank">Source</a></li>
<li>Upstart Blogger Futurosity Magazine Theme<br />
<a href="http://www.wowebmaster.com/wp-content/uploads/2009/01/upstartblogger.jpg"><img class="alignnone size-medium wp-image-56" title="upstartblogger" src="http://www.wowebmaster.com/wp-content/uploads/2009/01/upstartblogger-300x187.jpg" alt="" width="300" height="187" /></a><br />
<a href="http://www.upstartblogger.com/wpthemes/" target="_blank">Demo</a> | <a href="http://www.upstartblogger.com/wordpress-theme-upstart-blogger-futurosity-magazine" target="_blank">Source</a></li>
</ol>
<p>Please comment below if you have/know another magazine theme for wordpress .</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Ffeatured%2Ffree-magazine-style-wordpress-themes%2F&amp;linkname=Free%20Magazine%20Style%20Wordpress%20Themes"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/featured/free-magazine-style-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>We also Do Follow Now!</title>
		<link>http://www.wowebmaster.com/news/we-also-do-follow-now/</link>
		<comments>http://www.wowebmaster.com/news/we-also-do-follow-now/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 12:21:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[do follow]]></category>
		<category><![CDATA[no follow]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=30</guid>
		<description><![CDATA[WoWebmaster.com do follow now!]]></description>
			<content:encoded><![CDATA[<p>In an effort to reward our commentators, we also do follow now. What it means is there will be no &#8220;no follow&#8221; tags in urls in your comments from now on.</p>
<p><strong>No Follow Concept</strong><br />
&#8220;No follow&#8221; tags were a protection considered to fight blog spammers. The concept for the attribute value nofollow was designed by Google’s head of webspam team Matt Cutts and Jason Shellen from Blogger.com in 2005 [wikipedia]. Since then, bloggers around the work use this tag/attribute to fight spam and spammers know that nofollow tagged links are useless.</p>
<p><strong>So why we follow ?</strong><br />
It is simple. We do want your comments and we want to contribute to your link popularity in exchange. Actually there is more than this reason, you can also read this article: <a href="http://www.searchenginejournal.com/13-reasons-why-nofollow-tags-suck/4410/">13 reasons Why No Follow Tags Suck</a></p>
<p><strong>Comments on all of our posts appreciated!</strong></p>
<p>Thank You!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fnews%2Fwe-also-do-follow-now%2F&amp;linkname=We%20also%20Do%20Follow%20Now%21"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/news/we-also-do-follow-now/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Rounded Corners with Javascript</title>
		<link>http://www.wowebmaster.com/javascript/simple-rounded-corners-with-javascript/</link>
		<comments>http://www.wowebmaster.com/javascript/simple-rounded-corners-with-javascript/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 22:12:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=23</guid>
		<description><![CDATA[Rounded Image Corners with Javascript. No more CSS headaches!]]></description>
			<content:encoded><![CDATA[<p>Everyone knows it is so painful to handle rounded corners with extra divs, slices making alignments harder than ever, using CSS. Now I introduce, no not me actually, <a title="Introducing Corners.js" href="http://corner.netzgesta.de" target="_blank">Christian Effenberger</a> , a way to do rounded corner effect on images with javascript. It is really easy and fun, so i won&#8217;t go on talking, rather, I&#8217;m going to explain how to use it.</p>
<p>Visit <a title="Corners.js" href="http://www.netzgesta.de/corner/" target="_blank">this page</a> and download &#8220;corner.zip&#8221;. In the zip file, there are few javascript files that you can have some other effects with, but if you just want rounded corners, copy <em>justcorners.js</em> and reference it inside your head tags.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p23code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p235"><td class="code" id="p23code5"><pre class="html" style="font-family:monospace;">...
&lt;script src=&quot;http://www.wowebmaster.com/demo/justcorners.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>Then, add a class into your image tag as it&#8217;s done in the following code.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p23code6'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p236"><td class="code" id="p23code6"><pre class="html" style="font-family:monospace;">&lt;img class=&quot;corners iradius12&quot; src=&quot;http://www.wowebmaster.com/demo/corner.jpg&quot; alt=&quot;&quot; width=&quot;561&quot; height=&quot;353&quot; /&gt;</pre></td></tr></table></div>

<p>Corner radius is set by the second class, which is &#8220;iradius12&#8243; above. If you want greater radius, use highger values after &#8220;iradius&#8221;. <em>e.g. iradius15, iradius25, iradius30&#8230;</em></p>
<p>See more examples at: <a href="http://www.netzgesta.de/corner/">http://www.netzgesta.de/corner/</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fjavascript%2Fsimple-rounded-corners-with-javascript%2F&amp;linkname=Simple%20Rounded%20Corners%20with%20Javascript"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/javascript/simple-rounded-corners-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing MySQL Database Character Set</title>
		<link>http://www.wowebmaster.com/mysql/mysql-character-set-change/</link>
		<comments>http://www.wowebmaster.com/mysql/mysql-character-set-change/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 23:19:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=22</guid>
		<description><![CDATA[MySQL Database Character Set Problem]]></description>
			<content:encoded><![CDATA[<p>You have probably come across with the mysql character set problem, If you are trying to implement a database in a language other than English. You are inserting rows with your text in your language, but you see invalid characters on your database, phpmyadmin mostly.</p>
<p>This is mostly because of character set defined in your mysql database is not proper for your language. This is usually UTF-8 Unicode, and it is default.</p>
<p><strong>Fix:</strong></p>
<p>Changing the charecter set can be done via mysql command line.  Just login to your server via SSH and bring your mysql command line on with following command.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p227"><td class="code" id="p22code7"><pre class="bash" style="font-family:monospace;"> mysql <span style="color: #660033;">-h</span>   <span style="color: #660033;">-D</span>   <span style="color: #660033;">-u</span>   <span style="color: #660033;">-p</span></pre></td></tr></table></div>

<p>Now it will ask you password before giving access to mysql prompt.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p228"><td class="code" id="p22code8"><pre class="bash" style="font-family:monospace;">ALTER DATABASE wowebmaster DEFAULT CHARACTER SET utf8 COLLATE utf8_turkish_ci \g</pre></td></tr></table></div>

<p>When you get access to mysql command line,  type the above mysql command, it will change the character set of <em>wowebmaster</em> database to utf8_turkish_ci . That&#8217;s it. Replace the database name and the character set for your own modifications.</p>
<p><strong>Update: Changing Table Character Set</strong></p>
<p>If you are looking for changing your table&#8217;s character set, you can use the following command;</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code9'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p229"><td class="code" id="p22code9"><pre class="bash" style="font-family:monospace;">ALTER TABLE table_name DEFAULT CHARACTER SET utf8 COLLATE utf8_turkish_ci \g</pre></td></tr></table></div>

<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fmysql%2Fmysql-character-set-change%2F&amp;linkname=Changing%20MySQL%20Database%20Character%20Set"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/mysql/mysql-character-set-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Php Cache System</title>
		<link>http://www.wowebmaster.com/php/simple-php-cache-system-to-overcome-server-overloads/</link>
		<comments>http://www.wowebmaster.com/php/simple-php-cache-system-to-overcome-server-overloads/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 13:26:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=10</guid>
		<description><![CDATA[Php Caching to handle overloads of your popular web site]]></description>
			<content:encoded><![CDATA[<p><strong>Overload Problem</strong></p>
<p>Server overloads are one of the headaches of webmasters, especially if a popular web site is what we are talking about. It is usually because of lots of queries sent by users to servers. Server can be overloaded with those queries and as a result, responses by server can be very slow.</p>
<p>One thing about this repeated user queries to php servers is that it&#8217;s usually same or similar. Think we have a news blog about economy, and it is updated weekly. Queries to index page is same whole week and the response is exactly same. It&#8217;s news. With every query, server responses the latest news. So why do we query our php server again again, if we know the response already. Why don&#8217;t we save server&#8217;s response as html and send it to user. After next query, we send the saved html file to user, instead of quering and compiling php page.</p>
<p><strong>Solution: PHP Caching</strong>:<br />
Given a time interval, php&#8217;s response can be saved into a directory named <em>/cache/</em> with time information added. Our cache system, checks if there is a saved response of php file in given time interval when a new user sends a query to php page. If there is, no need to compile and translate php page again, our cache system sends the saved copy of the page (cache) to user. If our cached page is old enough, system saves the response of php page again for next queries.</p>
<p>So how do we do that?</p>
<p>First we create a directory named, <em>cache</em> to save all our cached pages. If you have a linux server, change it permissions to 755 which will give write permission to our cache system.</p>
<p>The next step is to form our cache system&#8217;s php code. First, create a php file, named <em>cache.php</em>.<br />
In cache php, we will have two main functions, first will cache our php files and save it into <em>/cache/</em> folder. Second function, is to display the cached page if there is one.</p>
<p><strong>Caching Function</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1010"><td class="code" id="p10code10"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> getUrl <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">.=</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>? <span style="color: #0000ff;">'?'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span> <span style="color: #0000ff;">'QUERY_STRING'</span> <span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//getUrl gets the queried page with query string</span>
<span style="color: #000000; font-weight: bold;">function</span> cache <span style="color: #009900;">&#40;</span><span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//page's content is $buffer</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> getUrl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'.cache'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'¦'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filew</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filew</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filew</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><em>getUrl</em> function, is defined to get the queried url. This URL will be encrypted and be the name of cached page in <em>cache</em> folder. <em>Cache</em> function, calls the <em>getUrl</em> function to assign the web page&#8217;s address to <em>$url</em>. After encrypting it using md5 algorithm, time is added in front of the content. Then all the data (<em>time and content</em>) is saved into <em>cache/</em>, also returning the content to output.</p>
<p><strong>Outputting Cache Function</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code11'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1011"><td class="code" id="p10code11"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> display <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> getUrl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'.cache'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$filer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'r'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filer</span><span style="color: #339933;">,</span> <span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'¦'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span> <span style="color: #cc66cc;">2</span> OR<span style="color: #339933;">!</span><span style="color: #990000;">is_numeric</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  <span style="color: #666666; font-style: italic;">// 100 is the cache time!!!</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In the above code, again the url is encrypted using md5 since all the cache files&#8217; names in cache directory are encrypted as well. Then, cache file is checked if it is in cache directory, if not function returns false. After confirming cache file&#8217;s existance, the time in cache file is checked whether cache is new enough to output. If yes, its content is returned.</p>
<p><strong>Combining Cache and Display Functions</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code12'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1012"><td class="code" id="p10code12"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> getUrl <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">.=</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>? <span style="color: #0000ff;">'?'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span> <span style="color: #0000ff;">'QUERY_STRING'</span> <span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//getUrl gets the queried page with query string</span>
<span style="color: #000000; font-weight: bold;">function</span> cache <span style="color: #009900;">&#40;</span><span style="color: #000088;">$buffer</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//page's content is $buffer</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> getUrl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'.cache'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'¦'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filew</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filew</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filew</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$buffer</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> display <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> getUrl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'.cache'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span>cache_dir <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$filer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'r'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fread</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filer</span><span style="color: #339933;">,</span> <span style="color: #990000;">filesize</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cache/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'¦'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span> <span style="color: #cc66cc;">2</span> OR <span style="color: #339933;">!</span><span style="color: #990000;">is_numeric</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// 100 is the cache time here!!!</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Display cache (if any)</span>
display<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// if it is displayed, die function will end the program here.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// if no cache, callback cache</span>
<span style="color: #990000;">ob_start</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cache'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><em>Display</em> function is called after defined, it checks if an appropriate cache file exists, if yes, it outputs its content and end the program, if not, <em>cache</em> function is called with <em>ob_start</em> function to store the cache in <em>cache</em> directory.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fphp%2Fsimple-php-cache-system-to-overcome-server-overloads%2F&amp;linkname=Simple%20Php%20Cache%20System"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/php/simple-php-cache-system-to-overcome-server-overloads/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Adwords Promotion Coupons for New Sign Ups</title>
		<link>http://www.wowebmaster.com/advertising/google-adwords-promotion-coupons-for-new-sign-ups/</link>
		<comments>http://www.wowebmaster.com/advertising/google-adwords-promotion-coupons-for-new-sign-ups/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 22:15:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Advertising]]></category>
		<category><![CDATA[coupons]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=9</guid>
		<description><![CDATA[The biggest advertising network's $50 promotional coupons for new sign ups]]></description>
			<content:encoded><![CDATA[<p><strong>Google Adwords Promo Codes</strong><br />
If you aren&#8217;t new to advertising world, you must have heard of Google Adwords probably. If you do think to promote your business online, you should sign-up for Google Adwords and start marketing your online business. However, before signing up, you may want to know Google&#8217;s promotion codes which will save you some money.</p>
<p>Google has been offering $50 valued promotion codes to new sign ups to promote Google Adwords among new business owners. This is known for a while, but the problem is that Google give those coupons to its big marketers and partners to hand out. This means you have to purchase service/item from a web hosting firm or some other partner of Google to get those $50 promotion coupons.</p>
<p>The good thing is we have found some direct links to those promotion pages. It&#8217;s give away of yahoo small business.</p>
<p><strong>Sign-up with a new e-mail address using this <a style="color:red" href="https://adwords.google.com/select/main?cmd=Login&amp;sourceid=Yh91503">link</a>.</strong></p>
<p>For new promotion codes or broken links, please share your comments using below form.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Fadvertising%2Fgoogle-adwords-promotion-coupons-for-new-sign-ups%2F&amp;linkname=Google%20Adwords%20Promotion%20Coupons%20for%20New%20Sign%20Ups"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/advertising/google-adwords-promotion-coupons-for-new-sign-ups/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Basic Bash Commands in Linux</title>
		<link>http://www.wowebmaster.com/linux/basic-bash-commands-in-linux/</link>
		<comments>http://www.wowebmaster.com/linux/basic-bash-commands-in-linux/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 11:56:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/?p=8</guid>
		<description><![CDATA[A basic reference to bash commands used in Linux' command line.]]></description>
			<content:encoded><![CDATA[<p>This reference is prepared for webmasters to provide basic knowledge of bash linux commands. You should know these if you are thinking to move to a dedicated server or have already one.</p>
<p><strong>Mkdir &#8211; Make directories</strong>:</p>
<p>* <em>Options</em></p>
<ul>
<li>-m, mode=MODE  set permission mode (as in chmod), not rwxrwxrwx &#8211; umask</li>
<li>-p, parents  no error if existing, make parent directories as needed</li>
<li>-v, verbose  print a message for each created directory</li>
<li>-help display this help and exit</li>
<li>-version output version information and exit</li>
</ul>
<p>* <em>Usage</em><br />
<code>mkdir -m 777 folder1</code></p>
<p>Above code would create a directory named <em>folder1</em> which can be read, executed and written by all kind of users. The first digit represents the owner, the second represents the group and the third represents other users. The number 7 represents all three types of permission ( read, write and execute), 6 stands for read and write only, 5 stands for read and execute, 4 is read only, 3 is write and execute, 2 is write only, 1 is execute only and 0 is no permissions.</p>
<p><strong>Cd &#8211; Change Directories</strong>:</p>
<p>* <em>Usage</em></p>
<p><code>cd folder1</code><br />
The above command would change the current directory to directory named <em>folder1</em>.</p>
<p><code>cd ..</code><br />
The above command would go to parent directory of current directory.</p>
<p><code>cd /</code><br />
The above command would go to root directory regardless which directory you are in.</p>
<p>Mv &#8211; Move or Rename Directories &amp; Files:</p>
<p>* <em>Usage</em></p>
<p><code>move testfolder newfolder</code><br />
This command would move/rename <em>testfolder</em> to <em>newfolder</em>.</p>
<p><code>move * /newdir/</code><br />
The above command moves all files and directories in the current directory, including all the contents of those directories, from the current directory to the directory <em>/newdir/</em> .</p>
<p><strong>Pwd &#8211; Print Working Directory</strong>:<br />
It shows you the full path to the directory you are currently in.</p>
<p>* <em>Usage</em></p>
<p><code>pwd</code><br />
It would print the following line:<br />
<em>/home/server/mywebsite.com/</em></p>
<p><strong>Rm &#8211; Remove Directories</strong>:</p>
<p>* <em>Usage</em></p>
<p><code>rm install</code><br />
<em>Cannot Remove DIRECTORY Is A Directory</em><br />
If you are getting this error, just force it with this command.</p>
<p><code>rm -rf install</code><br />
The above command would remove the whole directory with files and directories in.</p>
<p><strong>Chmod &#8211; Change File Access Permissions</strong></p>
<p>* <em>Options</em><br />
-c, &#8211;changes: like verbose but report only when a change is made<br />
&#8211;no-preserve-root: do not treat `/&#8217; specially (the default)<br />
&#8211;preserve-root: fail to operate recursively on `/&#8217;<br />
-f, &#8211;silent, &#8211;quiet: suppress most error messages<br />
-v, verbose: output a diagnostic for every file processed<br />
&#8211;reference=RFILE: use RFILE&#8217;s mode instead of MODE values<br />
-R, &#8211;recursive: change files and directories recursively<br />
&#8211;help: display this help and exit<br />
&#8211;version: output version information and exit</p>
<p>* <em>Usage</em></p>
<p><code>chmod 644 index.htm</code><br />
The above command gives the file read/write by the owner and only read by everyone else.</p>
<p><em>Some Numerical Mod Presentations</em><br />
600 read and write by owner<br />
400 read by owner<br />
040 read by group<br />
004 read by anybody (other)<br />
200 write by owner<br />
020 write by group<br />
002 write by anybody<br />
100 execute by owner<br />
010 execute by group<br />
001 execute by anybody</p>
<p><strong>Ls &#8211; Short Listing of Directories &amp; Files</strong>:</p>
<p>* <em>Options</em><br />
-al: detailed listing of files and directories, showing permissions, ownership, size, and time and date stamp.</p>
<p>Just type <em>ls</em> on the command line, and you get the list of files and directories within your current directory.</p>
<p><strong>Cp &#8211; Copy Files</strong>:</p>
<p>* <em>Options</em><br />
-i: with this option, you will be prompted before overwriting the file.<br />
-dpr: copy preserving links (-d option), file attributes (-p option), and copy recursively (-r option)</p>
<p>* <em>Usage</em></p>
<p><code>cp -dpr folder1 folder2/</code><br />
The above code would copy the directory <em>folder1</em> with its contents, to the directory under <em>folder2</em>.</p>
<p><em>folder2</em> has now:<br />
<em><br />
anotherfile.html<br />
folder1<br />
</em></p>
<p><strong>Tar &amp; Bzip2 &#8211; Archive Compression &amp; Extraction</strong></p>
<p>* <em>Usage</em><br />
<code>tar -c folder/ | bzip2 &gt; folder.tar.bz2</code><br />
The above command compresses <em>folder</em> directory and the following command extracts the compressed archive.</p>
<p><code>bzip2 -dc folder.tar.bz2 | tar -x</code></p>
<p><strong>Gpg &#8211; Encryption &amp; Decryption of Files in Linux</strong></p>
<p>* <em>Usage</em><br />
To encrypt and decrypt files you can use the following command:<br />
<code>gpg -c file</code><br />
<code>gpg file.gpg</code></p>
<p><strong>Wget &#8211; Download Files from Web</strong></p>
<p>* <em>Options</em><br />
-r: downloads the whole directory<br />
-c: continues the previous download<br />
-b: goes to background execution<br />
-p: path to place the downloaded files</p>
<p>* <em>Usage</em><br />
The following command, downloads the whole directory, going to background after starting the download.<br />
<code>wget -r -b http://www.somedomain.com/files/</code></p>
<p><strong>Slocate &#8211; Search &amp; Locate files</strong><br />
This command builds the slocate database. It will take several minutes to complete this command.This command must be used before searching for files, however cron runs this command periodically on most systems.locate whereis Lists all files whose names contain the string &#8220;whereis&#8221;. directory.</p>
<p><strong>Cat &#8211; Contents of Files</strong><br />
Sends file contents to standard output. This is a way to list the contents of short files to the screen.</p>
<p><strong>Whereis</strong><br />
Report all known instances of a command.</p>
<p><strong>Wc</strong><br />
Print byte, word, and line counts</p>
<p><strong>Bg</strong><br />
Places the current job (or, by using the alternative form, the specified jobs) in the background, suspending its execution so that a new user prompt appears immediately. Use the jobs command to discover the identities of background jobs.</p>
<p><strong>Cal &#8211; month year</strong><br />
Prints a calendar for the specified month of the specified year.</p>
<p><strong>Clear</strong><br />
Clears the terminal screen.</p>
<p><strong>Dmesg</strong><br />
Prints the messages resulting from the most recent system boot.</p>
<p><strong>Fg</strong><br />
Brings the current job (or the specified jobs) to the foreground.</p>
<p><strong>File</strong><br />
Determines and prints a description of the type of each specified file.</p>
<p><strong>Free</strong><br />
Displays the amount of used and free system memory.</p>
<p><strong>Ftp</strong><br />
Opens an FTP connection to the specified host, allowing files to be transferred. The FTP program provides subcommands for accomplishing file transfers.</p>
<p>* <em>Usage</em><br />
<code>ftp hostname</code></p>
<p><strong>Head</strong><br />
Prints the first several lines of each specified file.</p>
<p><strong>Kill</strong> process_ids<br />
Kills the specified processes, sends the specified processes the specified signal (given as a number or name), or prints a list of available signals.</p>
<p>* <em>Usage</em><br />
<code>kill - signal process_ids<br />
kill -l<br />
killall program<br />
killall - signal program<br />
</code></p>
<p><strong>Mail</strong><br />
Launches a simple mail client that permits sending and receiving email messages.</p>
<p><strong>Ping host</strong><br />
Sends an echo request via TCP/IP to the specified host. A response confirms that the host is operational.</p>
<p><strong>Reboot</strong><br />
Reboots the system.</p>
<p><strong>Shutdown</strong><br />
Shuts down the system after the specified number of minutes elapses (requires root privileges). The -r option causes the system to be rebooted once it has shut down.</p>
<p><code>shutdown -r minutes</code></p>
<p><strong>Telnet</strong><br />
Opens a login session on the specified host.</p>
<p><code>telnet host</code></p>
<p><strong>Top &#8211; System Resources</strong><br />
Prints a display of system processes that&#8217;s continually updated until the user presses the q key.</p>
<p><strong>Traceroute</strong><br />
Uses echo requests to determine and print a network path to the host.</p>
<p><code>traceroute 1.1.1.1</code></p>
<p><strong>Uptime</strong><br />
Prints the system uptime.</p>
<p><strong>W</strong><br />
Prints the current system users.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Flinux%2Fbasic-bash-commands-in-linux%2F&amp;linkname=Basic%20Bash%20Commands%20in%20Linux"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/linux/basic-bash-commands-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Htaccess Redirects</title>
		<link>http://www.wowebmaster.com/linux/htaccess-redirects/</link>
		<comments>http://www.wowebmaster.com/linux/htaccess-redirects/#comments</comments>
		<pubDate>Wed, 14 May 2008 15:25:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.wowebmaster.com/blog/?p=5</guid>
		<description><![CDATA[A tutorial on htaccess' redirect methods]]></description>
			<content:encoded><![CDATA[<p>Web site creating is making directories and files connected in someway. If you even have fewer web sites, you probably came across with the situations you wanted to redirect your visitors to someother pages. You might move your domain to a new one, change your file&#8217;s extensions or change your subfolder name.</p>
<p>There are different methods for different kinds of problems. If you are looking for htaccess solutions, here is the methods:</p>
<blockquote><p>If you don&#8217;t have a &#8220;.htaccess&#8221; file (a hidden file) on your server, create one and upload it in ASCII mode</p></blockquote>
<p><strong>Simple Page Redirect:</strong><br />
The following code will redirect your visitors from example.html to example2.html page.</p>
<p><code>Redirect 301 /example.html http://www.domain.com/example2.html</code></p>
<p>301 means you redirected the page permanently. If it is a temporary redirect, remove that 301 from the code.</p>
<p><strong>Simple Folder Redirect:</strong><br />
The following code will redirect all the visitors to another folder.</p>
<p><code>Redirect 301 /shop https://www.domain.com/shop</code></p>
<p><strong>Redirect to Matched Page/Folder:</strong></p>
<p>If you want to redirect your old domain to a new domain with all the files and subfolders, the following code will redirect a visitor (or search engine) to the same file at the new domain.</p>
<p><code>RedirectMatch 301 ^(.*)$ http://www.newdomain.com/</code></p>
<p>Alternatively you can use this:</p>
<p><code>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] </code></p>
<p>This code will redirect all the visitors from olddomain.com/whatever to newdomain.com/whatever so there will be no need to redirect all the pages individually.</p>
<p><strong>Redirect to New File Extension</strong></p>
<p>If you changed some file extensions and want to redirect your visitors to new extensions, you may want to add the following code to your htaccess:</p>
<p><code>RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php</code></p>
<p>This code will redirect all the html files to php extension pages. Meaning your visitors will be redirected to domain.com/home.php instead of domain.com/home.html.</p>
<p><strong>Redirect Your Whole Root Folder to a SubFolder</strong></p>
<p>Say you have your website under a folder named &#8220;subfolder&#8221;, and you want to access those files from your root folder as well. For example you want to access &#8220;domain.com/subfolder/page.html&#8221; from &#8220;domain.com/page.html&#8221;. The following code will do the trick.</p>
<p><code>RewriteEngine On<br />
Options +FollowSymlinks<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} domain.com<br />
RewriteCond %{REQUEST_URI} !subfolder/<br />
RewriteRule ^(.*)$ subfolder/$1 [L]</code></p>
<p><strong>Redirect www to non www version of site</strong></p>
<p><code>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} .<br />
RewriteCond %{HTTP_HOST} !^example\.com<br />
RewriteRule (.*) http://example.com/$1 [R=301,L]</code></p>
<p><strong>Redirect non-www to www</strong></p>
<p><code>Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]<br />
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301] </code></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fwww.wowebmaster.com%2Flinux%2Fhtaccess-redirects%2F&amp;linkname=Htaccess%20Redirects"><img src="http://www.wowebmaster.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.wowebmaster.com/linux/htaccess-redirects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
