<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Carass's Weblog</title>
	<atom:link href="http://carass.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://carass.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 11 Dec 2007 23:18:38 +0000</lastBuildDate>
	<language>ro</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='carass.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Carass's Weblog</title>
		<link>http://carass.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://carass.wordpress.com/osd.xml" title="Carass&#039;s Weblog" />
	<atom:link rel='hub' href='http://carass.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hello world!</title>
		<link>http://carass.wordpress.com/2007/12/11/hello-world/</link>
		<comments>http://carass.wordpress.com/2007/12/11/hello-world/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 23:18:38 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=1&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=1&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/11/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>How to make programs/windows transparent in Windows 2000 or XP</title>
		<link>http://carass.wordpress.com/2007/12/10/how-to-make-programswindows-transparent-in-windows-2000-or-xp/</link>
		<comments>http://carass.wordpress.com/2007/12/10/how-to-make-programswindows-transparent-in-windows-2000-or-xp/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 14:20:47 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[How to make programs/windows transparent in Windows 200]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/10/how-to-make-programswindows-transparent-in-windows-2000-or-xp/</guid>
		<description><![CDATA[This brief guide will walk you through the steps to make any of your programs transparent in Windows 2000 or XP. Transparency levels can be set on a per program basis, turned off and on again, and more. Download Glass2K from Chime Software. Glass2K is a small, free program. The installation is typical (next, next, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=21&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This brief guide will walk you through the steps to make any of your programs transparent in Windows 2000 or XP. Transparency levels can be set on a per program basis, turned off and on again, and more.</p>
<ol>
<li> <a href="http://chime.tv/gui.shtml" target="_blank" rel="nofollow" title="download page for chime software">Download Glass2K</a> from Chime Software. Glass2K is a small, free program. The installation is typical (next, next, done). Once it has completed, you’ll see a new icon in your task bar. Right-click it and select <strong>Settings</strong>. <em>Note:</em> the first time you launch Glass2K, the settings window may appear automatically.</li>
<p><img src="http://www.simplehelp.net/images/glass2k/glass2.jpg" alt="transparent windows in XP and 2K" border="0" /></p>
<li> Make any changes you see fit and then click <strong>Save</strong></li>
<p><img src="http://www.simplehelp.net/images/glass2k/glass1.jpg" alt="transparent windows in XP and 2K" border="0" /></p>
<li> Now right-click on the title bar of any of your open programs or windows. In addition to the default pop-up (move, minimize, maximize etc) you’ll see a new window. From here you can set the transparency preferences for that window/program.</li>
<p><img src="http://www.simplehelp.net/images/glass2k/glass3.jpg" alt="transparent windows in XP and 2K" border="0" /></p>
<li> And now your windows are as transparent as you want them!</li>
<p><a href="http://www.simplehelp.net/images/glass2k/glass4" title="screenshot of transparent windows in XP and 2K"><img src="http://www.simplehelp.net/images/glass2k/glass4a.jpg" alt="transparent windows in XP and 2K" border="0" /></a></ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=21&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/10/how-to-make-programswindows-transparent-in-windows-2000-or-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/glass2k/glass2.jpg" medium="image">
			<media:title type="html">transparent windows in XP and 2K</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/glass2k/glass1.jpg" medium="image">
			<media:title type="html">transparent windows in XP and 2K</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/glass2k/glass3.jpg" medium="image">
			<media:title type="html">transparent windows in XP and 2K</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/glass2k/glass4a.jpg" medium="image">
			<media:title type="html">transparent windows in XP and 2K</media:title>
		</media:content>
	</item>
		<item>
		<title>How to convert files to Windows Media Video (.wmv) to play on your Windows Mobile device</title>
		<link>http://carass.wordpress.com/2007/12/10/how-to-convert-files-to-windows-media-video-wmv-to-play-on-your-windows-mobile-device/</link>
		<comments>http://carass.wordpress.com/2007/12/10/how-to-convert-files-to-windows-media-video-wmv-to-play-on-your-windows-mobile-device/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 13:58:57 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[convert files]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows media player]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/10/how-to-convert-files-to-windows-media-video-wmv-to-play-on-your-windows-mobile-device/</guid>
		<description><![CDATA[This tutorial will guide you through the steps to converting an existing video file to a .wmv (Windows Media Video) to play on your Windows Mobile device. First things first &#8211; download Windows Media Encoder from Microsoft. It’s free. It works in 2k/XP and though not ‘officially’, it seems to work fine in Vista. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=20&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This tutorial will guide you through the steps to converting an existing video file to a .wmv (Windows Media Video) to play on your Windows Mobile device.</p>
<ol>
<li> First things first &#8211; download <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=5691ba02-e496-465a-bba9-b2f1182cdf24&amp;displaylang=en" title="windows media encoder 9 series" target="_blank">Windows Media Encoder</a> from Microsoft. It’s free. It works in 2k/XP and though not ‘officially’, it seems to work fine in Vista. The installation is painfully straight forward &#8211; you’ll just click ‘Next’ a bunch of times.</li>
<li> Once the installation has completed, launch Windows Media Encoder. Select <strong>Convert a file</strong> and then click <strong>OK</strong>.<a href="http://www.simplehelp.net/images/wmv-winmoble/img000.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img000a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></li>
<li> From the <strong>Source file:</strong> section, click the <strong>Browse</strong> button. Navigate to the file you want to convert into a wmv, select it, and click <strong>OK</strong>. The first time you convert a file you may want to go with a smaller one. It will take less time to encode, and if the resulting quality isn’t good enough, you won’t have ‘wasted’ a lot of time. Once you find the settings that work best for playback on your device, you can convert larger/longer videos with confidence.The default <strong>Output file:</strong> name and location will be identical to the input file, but with .wmv as the extension. You can change the name and save location of the output file if you wish, by clicking <strong>Browse</strong>. Once you’re happy with the input and output files, click <strong>Next</strong>.<a href="http://www.simplehelp.net/images/wmv-winmoble/img001.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img001a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></li>
<li> You’ll be prompted to select a <strong>Content Distribution</strong> method. For the sake of converting your first video file, select <strong>Pocket PC</strong> as the method. Further down in this tutorial (step 12) I’ll go into more detail on customizing the quality of .wmv. Click <strong>Next</strong>.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img002.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img002a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Review the info on the <strong>Encoding Options</strong>. You may even want to write it down, so you can compare it to customized video files that you’ll be trying out later. Click <strong>Next</strong> (not Finish).</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img003.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img003a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Enter the meta data for your video. This isn’t mandatory, but it does help when you’re searching for files, how they’re displayed in Windows Media Player etc. When you’re done, click <strong>Next</strong>.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img004.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img004a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> And now review all of the info for your video conversion. Remove the check from the <strong>Begin converting when I click Finish</strong> (so that you can preview the encoder window before it’s actually encoding). Click <strong>Finish</strong>.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img005.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img005a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> And here it is. The main encoding window. You can click around and explore the various options, but try not to change anything quite yet. You’ll want to create a default <strong>Pocket PC</strong> video, so that you can compare its quality to the custom videos you’ll create later. Click the <strong>Start Encoding</strong> button when you’re ready to convert the video.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img006.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img006a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Make yourself comfortable. Or, make yourself a cup of coffee. Watching videos encode is about as interesting as watching paint dry.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img007.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img007a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> By default, the video will go through two ‘passes’.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img008.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img008a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Once the conversion has finished, you’ll be presented with a summary screen. Here you can find the resulting file size, bit rates etc. Click <strong>Close</strong>.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img009.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img009a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Navigate to the output file, and upload it to your Windows Mobile device (via ActiveSync or Windows Mobile Device Center in Vista).</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img010.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img010a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Give the video a play. Watch it in full-screen and try to determine if the audio and video quality are suitable for you.</li>
<p><img src="http://www.simplehelp.net/images/wmv-winmoble/sshot000.jpg" alt="windows mobile media player" border="1" /></p>
<li> At this point, if you’re happy with the resulting file &#8211; you’re done. If the quality is good enough for you, you can just repeat the above steps to convert more of your video files. Remember &#8211; the resulting file is never going to be <em>better</em> than the original file, but a lot of the time it will be smaller in size, and of decent enough quality to suit a small screen device (as most Windows Mobile products are). If you’d like to try customizing the videos to go for higher audio, video (or both) quality &#8211; keep reading.</li>
<li> Using the same file that you converted in steps 1-14 (so you can compare the resulting quality), repeat the same steps (but choose a different name for the resulting file, otherwise you’ll over-write the first .wmv). This time when you get to step 7, again be sure to remove the check from the box labeled <strong>Begin converting when I click Finish</strong>.  Click the <strong>Properties</strong> button and then select the <strong>Compression</strong> tab. From here, you can increase the quality of the video by selecting a higher bit rate. You can also increase (or decrease) the Audio bit rate.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img041.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img041a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Click the <strong>Start Encoding</strong> button when you’re ready to convert your video again.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img042.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img042a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> And once again watch as it converts/encodes.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img043.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img043a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Click <strong>Close</strong> after reviewing the results.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img044.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img044a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /><br />
click to enlarge</a></p>
<li> Transfer the new video to your Windows Mobile device and compare the quality to the first video. Depending on what type of Windows Mobile device you have, the higher the quality, the harder it is for the device to play back the file. So files that are encoded at a very “high” quality, actually suffer by jittery playback on your Windows Mobile device. The trick is finding the right bit rate and quality settings that are best for your device.</li>
<p><a href="http://www.simplehelp.net/images/wmv-winmoble/img045.jpg" title="encoding windows media video for pocket pcs and windows mobile" rel="lightbox"><img src="http://www.simplehelp.net/images/wmv-winmoble/img045a.jpg" alt="encoding windows media video for pocket pcs and windows mobile" border="0" /></a></p>
<p>Sursa : <a href="http://www.simplehelp.net" title="http://www.simplehelp.net" target="_blank">http://www.simplehelp.net</a></ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=20&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/10/how-to-convert-files-to-windows-media-video-wmv-to-play-on-your-windows-mobile-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img000a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img001a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img002a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img003a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img004a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img005a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img006a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img007a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img008a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img009a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img010a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/sshot000.jpg" medium="image">
			<media:title type="html">windows mobile media player</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img041a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img042a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img043a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img044a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>

		<media:content url="http://www.simplehelp.net/images/wmv-winmoble/img045a.jpg" medium="image">
			<media:title type="html">encoding windows media video for pocket pcs and windows mobile</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install a cpu in a computer</title>
		<link>http://carass.wordpress.com/2007/12/10/how-to-install-a-cpu-in-a-computer/</link>
		<comments>http://carass.wordpress.com/2007/12/10/how-to-install-a-cpu-in-a-computer/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 13:51:31 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/10/how-to-install-a-cpu-in-a-computer/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=19&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://carass.wordpress.com/2007/12/10/how-to-install-a-cpu-in-a-computer/"><img src="http://img.youtube.com/vi/fGDsoOYjeBs/2.jpg" alt="" /></a></span>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=19&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/10/how-to-install-a-cpu-in-a-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>Tutorial CS 1.6 Server NoSteam on Linux (RO)</title>
		<link>http://carass.wordpress.com/2007/12/10/tutorial-cs-16-server-nosteam-linux/</link>
		<comments>http://carass.wordpress.com/2007/12/10/tutorial-cs-16-server-nosteam-linux/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 13:44:10 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Romana]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[counter strike 1.6]]></category>
		<category><![CDATA[Cs 1.6]]></category>
		<category><![CDATA[nosteam]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/10/tutorial-cs-16-server-nosteam-linux/</guid>
		<description><![CDATA[Cereri: - Un calculator cu Linux pe el (Fedora Core 4/5/6, Cent0s, sau alta distributie) si acces ssh , cu privilegii root . - Pentru un server de 22 de playeri avem nevoie de : - Procesor 1 GB ; - 512 MB RAM ; - 1-2 GB spatiu pe HDD ; - O conectiune [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=18&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cereri:</p>
<p>- Un calculator cu Linux pe el (Fedora Core 4/5/6, Cent0s, sau alta distributie) si acces ssh , cu privilegii root .<br />
- Pentru un server de 22 de playeri avem nevoie de :<br />
- Procesor 1 GB ;<br />
- 512 MB RAM ;<br />
- 1-2 GB spatiu pe HDD ;<br />
- O conectiune la internet de aproximativ 1 &#8211; 1.5 MB/s ; atat download cat si upload !(daca vrei sa bagati multe pluginuri atunci este bine sa aveti banda mai mare si mai mult ram)<br />
- IP Rootabil ; port forward .</p>
<p>Recomand folosirea PuTTy si WinSCP pentru urmarea pasilor de mai jos:</p>
<p>1) Download fisierele pentru server:<br />
Mai intai creem un nou direct, eu voi folosi hlds mkdir /usr/hlds Intram in folderul nou creat cd /usr/hlds A) Downloadam HLDSUpdateTool: wget http://www.steampowered.com/download/hldsupdatetool.bin Suntem in /usr/hlds, executam comenzile :<br />
chmod +x hldsupdatetool.bin<br />
./hldsupdatetool.bin</p>
<p>AI) Este posibil sa va dea o eroare legata de uncompress, atunci rulati comanda: ln -s /usr/bin/gunzip /usr/bin/uncompress</p>
<p>rulam iar comanda:<br />
chmod +x hldsupdatetool.bin<br />
./hldsupdatetool.bin</p>
<p>b ) Downlodam hltv-ul si nucleul valve (game engine): ./steam -command update -game valve -dir .</p>
<p>Va face un update, va cere sa executati comanda de mai sus din nou . Incepe instalarea fisierelor necesare Server-ului timpul downlodului difera in functie de conexiunea externa pe care o aveti. Trebuie sa va apara un mesaj la sfarsit: HLDS installation up to date</p>
<p>c) Downlodam fisierele necesare pentru jocul Counter &#8211; Strike: ./steam -command update -game cstrike -dir . Incepe instalarea fisierelor necesare Server-ului timpul downlodului difera in functie de conexiunea externa pe care o aveti. Trebuie sa va apara un mesaj la sfarsit: HLDS installation up to date</p>
<p>2) Patchuirea server &#8211; ului pentru a accepta clienti STEAM si No &#8211; Steam<br />
Downlodam NO &#8211; Steam engine de Downlodati de aici</p>
<p>Execum comenzile:<br />
rm -rf engine_amd.so<br />
rm -rf engine_i486.so<br />
rm -rf engine_i686.so<br />
tar xfv engine.v15.tgz</p>
<p>3) Configurarea fisierului: server.cfg<br />
Mergem in /usr/hlds/cstrike/server.cfg , stergem tot si adaugam:</p>
<p>hostname &#8220;Numele Serverului&#8221;<br />
mp_autokick 0<br />
mp_autocrosshair 0<br />
mp_autoteambalance 0<br />
mp_buytime 2<br />
mp_consistency 1<br />
mp_c4timer 35<br />
mp_fadetoblack 0<br />
mp_falldamage 0<br />
mp_flashlight 1<br />
mp_forcecamera 3<br />
mp_forcechasecam 2<br />
mp_friendlyfire 1<br />
mp_freezetime 3<br />
mp_fraglimit 0<br />
mp_hostagepenalty 0<br />
mp_limitteams 6<br />
mp_logfile 1<br />
mp_logmessages 1<br />
mp_logdetail 3<br />
mp_maxrounds 0<br />
mp_playerid 0<br />
mp_roundtime 3<br />
mp_startmoney 800<br />
mp_timelimit 35<br />
mp_tkpunish 0<br />
mp_winlimit 0</p>
<p>sv_aim 0<br />
sv_airaccelerate 10<br />
sv_airmove 1<br />
sv_allowdownload 1<br />
sv_clienttrace 1.0<br />
sv_clipmode 0<br />
sv_allowupload 1<br />
sv_cheats 0<br />
sv_gravity 800<br />
sv_lan 1<br />
sv_maxrate 7000<br />
sv_maxspeed 320<br />
sv_maxupdaterate 101<br />
sys_ticrate 10000<br />
decalfrequency 60<br />
pausable 0<br />
log on<br />
decalfrequency 60<br />
edgefriction 2<br />
host_framerate 0<br />
exec listip.cfg<br />
exec banned.cfg<br />
rcon_password PAROLA<br />
- la hostname scriem numele serverului care va aparea cand un jucator apasa TAB sau in favourites, atentie trebuie ca numele sa fie intre ghilimele.<br />
- la rcon_password, scrieti o parola.<br />
ATENTIE: aceasta parola nu trebuie dezvaluita adminilor sau altor persoane decat in care aveti incredere.<br />
- mp_c4timer 35 &#8211; timpul in care bomba va exploda, timpul este in secunde, default este de 35 de secunde, pe majoritatea serverelor c4timer-ul este de 30 secunde<br />
- mp_autoteambalance 0 &#8211; 0= nu va face nici o actiune; 1= daca este un dezichilibru in echipa serverului va muta din jucatori in functie de fragurile pe care le au( ca sa activati aceasta optiune in loc de 0 scrieti 1)<br />
- mp_buytime 2 &#8211; timpul in care un jucator poate cumpara arme(timpul este in minute), la fel aceasta optiune o modificati dupa bunul plac<br />
Restul optiunilor le modificati dupa propriul risc.</p>
<p>4) No Secure server</p>
<p>intram in /usr/hlds/cstrike/liblist.gam si cautam: secure &#8220;1&#8243;, variabila 1 o inlocuim cu 0, acum va arata asa secure &#8220;0&#8243;</p>
<p>5) Instalare si configurare Adminmod:</p>
<p>Downlodam Adminmod + Metamod:<br />
wget http://downloads.sourceforge.net/halflifeadmin/halflife-admin-2.50.60-linux.tar.gz?<br />
modtime=1093132800&amp;big_mirror=0<br />
Dezarhivam Adminmod tar xfvz halflife-admin-2.50.60-linux.tar.gz<br />
Se va crea un nou director, Adminmod, ca sa instalam adminmod trebuie sa ne aflam in directorul extras din arhiva:<br />
cd Adminmod<br />
./install_adminM</p>
<p>La prima intrebare raspundem cu Y .<br />
Ne va intreba care este directorul HLDS-ului . Raspundem cu /usr/hlds .<br />
Ne va intreba pentru ce mod vrem sa instalam adminmod-ul . Raspundem cu 1 .<br />
La urmatoarele intrebari raspundem cu Y .</p>
<p>Configurarea adminmod-ului:</p>
<p>- intram in /usr/hlds/cstrike/addons/adminmod/config/adminmod.cfg<br />
in dreptul fiecare linii este cate o explicatie in engleza, eu va voi traduce si explica liniile importante: admin_bot_protection &#8211; daca este setat 0 si rulam un server cu boti, aceast cvar lasa adminii sa dea slay, kick, ban etc botilor.<br />
admin_connect_msg &#8211; acesta este mesajul ce apare unui jucator in mijlocul ecranului dupa ce s-a conectat.<br />
admin_cs_restrict &#8211; il punem de preferat 1 pentru a putea restrictiona armele in joc.<br />
admin_debug &#8211; il lasam 0<br />
admin_fun_mode &#8211; de preferat il lasam 0. Acest cvar e pentru a face jucatorii sa straluceasca intr-o culoare (glow blue).<br />
admin_fx &#8211; il punem 1. Efecte speciale.<br />
admin_gag_name &#8211; 0 sau 1 in functie de preferinta.<br />
admin_gag_sayteam &#8211; la fel.<br />
admin_highlander &#8211; Ar trebui lasat 0. Daca il trecem 1, doar un singur admin, cel mai mare, va avea access la comenzi. De ex daca pe server sunt 3 admini, cel mai mare ramane, iar celati 2 raman simple sloturi.<br />
admin_ignore_immunity &#8211; Aici depinde de gusturi. Daca e pus 1, adminii, moderatorii si ceilalti jucatori cu imunitate isi pot da/lua slay-uri, kick, ban etc intre ei.<br />
admin_repeat_msg &#8211; Un mesaj ce apare cu verde in mijlocul ecranului o data la cateva minute.<br />
admin_quiet &#8211; Daca trecem 0, comenzile date de admin vor aparea cu tot cu nickul lui. Daca trecem 1, comenzile vor aparea dar in locul nickului adminului va aparea doar &#8220;Admin&#8221; iar daca trecem 2, comenzile nu vor aparea deloc.<br />
allow_client_exec &#8211; Neaparat 1 ! Cu asta putem obliga jucatorii sa execute orice comanda (quit etc)<br />
password_field &#8211; Poate cel mai important cvar. Ce trecem aici, vor trebui adminii nostri sa scrie in consola inainte de a se conecta la server. De ex. daca punem _parola, adminul X cu parola X789 va trebuie sa scrie in consola name X si apoi [b]setinfo _parola X789[/b] inainte de a se conecta la serverul nostru.<br />
reserve_slots &#8211; Asta lasa adminii si sloturile rezervate sa se poata conecta atunci cand serverul este plin.<br />
reserve_type &#8211; Lasati 0. E cel mai bine. Daca sunteti curiosi ce face, cititi manualul adminmod-ului.</p>
<p>Unele linii nu le-am adaugat pentru ca ele pot fi lasate default, modificati doar daca stiti despre ce este vorba</p>
<p>Cum adaugam / stergem admini:</p>
<p>- intram in users.ini, un admin trebuie scris sub forma nume:parola:acces<br />
exemplu: X:parola_mea:131071<br />
- codul 131071 este accesul maxim pe care il are un admin pe server, pentru a calcula acces dupa bunul plac intrati aici: http://www.adminmod.org/help/online/Admin_&#8230;in_Commands.htm<br />
selectati ce comenzi vreti sa aibe fiecare clasa de admin in parte</p>
<p>6) Instalare si configurare statsme:</p>
<p>Downlodam statsme:<br />
wget http://ovh.dl.sourceforge.net/sourceforge/statsme/statsme-2.8.3-cstrike.zip<br />
Dupa ce termina de downlodat, extragem statsme<br />
cd /usr/hlds/cstrike<br />
unzip statsme-2.8.3-cstrike.zip<br />
Mergem in /usr/hlds/cstrike/addons/metamod si deschidem plugins.in si adaugam aceasta linie deasupra tuturor celor existente, este foarte important ca linia de la statsme sa fie prima:<br />
linux addons/statsme/dlls/statsme_mm_i386.so<br />
Mergem in cstrike\addons\statsme, deschidem statsme.cfg, cautam linia sm_menupassword modificam r3wt cu o alta parola dorita.</p>
<p>Cum facem sa apara /rank si /top 10?<br />
- deschidem statsme.cfg iar la sm_storebyauth sa puneti 0 in loc de 1</p>
<p>7) Cum pornim serverul:<br />
Pentru serverul LuST eu folosesc screenuri este cel mai usor si bine, scriem:<br />
cd /usr/hlds<br />
screen -a<br />
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip ip.de.internet +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2</p>
<p>Creere admin_who:</p>
<p>Ce este admin_who ? este o comanda pe care un user / admin o scrie in consola fiecarui server(90% toate serverele au acest plugin) pentru a vedea ce adminii sunt ON<br />
- downlodam de aici programu WHO.zip<br />
Introduceti textul care sa apara inainte si dupa nivele: .:.:: Useri Logati<br />
Introduceti numarul de nivele: 3<br />
Numele pentru nivelul 1: =//= GODZ =\\=<br />
Access rights pentru nivelul 1: 131071<br />
Numele pentru nivelul 2: =//= ModeratorS =\\=<br />
Access rights pentru nivelul 2: 65535<br />
Numele pentru nivelul 3: =//= SlotS =\\=<br />
Access rights pentru nivelul 3: 32768<br />
Sursa : <a href="http://www.gnx.ro" title="http://www.gnx.ro" target="_blank">http://www.gnx.ro</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=18&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/10/tutorial-cs-16-server-nosteam-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create PHP Contact Form</title>
		<link>http://carass.wordpress.com/2007/12/10/how-to-create-php-contact-form/</link>
		<comments>http://carass.wordpress.com/2007/12/10/how-to-create-php-contact-form/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 06:42:00 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/10/how-to-create-php-contact-form/</guid>
		<description><![CDATA[Looking for a form for your contact page. Well heres a simple and easy code which will make your contacting page an easier way of making. Open any type of text editor for example, Notepad and copy and paste this code and save it as mail.php: &#8220;&#60;?php //variables (change these) $youremail = &#8220;name@domain.com&#8221;; // your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=16&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looking for a form for your contact page. Well heres a simple and easy code which will make your contacting page an easier way of making.<br />
Open any type of text editor for example, Notepad and copy and paste this code and save it as mail.php:</p>
<p><font color="#dd0000">&#8220;&lt;?php</font><br />
<font color="#ff8000">//variables (change these)</font></p>
<p><font color="#0000bb">$youremail = &#8220;name@domain.com&#8221;;</font><br />
<font color="#ff8000">// your email address</font></p>
<p><font color="#0000bb">$subject = &#8220;Contact&#8221;;</font><br />
<font color="#ff8000">// the subject of the email</font></p>
<p><font color="#0000bb">$thankyou = &#8220;thankyou.php&#8221;;</font><br />
<font color="#ff8000">// thank you page</font></p>
<p><font color="#ff8000">// don&#8217;t change anything else</font></p>
<p><font color="#007700">;if($email == &#8220;&#8221;){</font><br />
<font color="#dd0000">?&gt;</font><br />
No email address added. Please go back.&lt;br/&gt;<br />
<font color="#dd0000">&#8220;&lt;?php</font><br />
<font color="#007700">;}elseif($name == &#8220;&#8221;){</font><br />
<font color="#dd0000">&#8220;?&gt;</font><br />
No name added. Please go back.&lt;br/&gt;<br />
<font color="#dd0000">&lt;?php</font><br />
<font color="#007700">;}elseif($message == &#8220;&#8221;){</font><br />
<font color="#dd0000">&#8220;?&gt;<br />
No message added. Please go back.&lt;br/&gt;<br />
<font color="#dd0000">&#8220;&lt;?php</font><br />
<font color="#007700">;}else{</font></font></p>
<p><font color="#dd0000"><font color="#0000bb">$msg = ereg_replace(&#8220;\\\&#8217;&#8221;, &#8220;&#8216;&#8221;, $message);</font><br />
<font color="#0000bb">$msg = ereg_replace(&#8216;\\\&#8221;&#8216;, &#8220;\&#8221;", $msg);</font><br />
<font color="#0000bb">$message1 = &#8220;from: $name\nemail: $email\nmessage:\n$msg1&#8243;;</font></font></p>
<p><font color="#dd0000"><font color="#0000bb">mail($youremail, $subject, $msg, &#8220;From: $email\r\nReply-to: $email\r\n&#8221;);</font><br />
<font color="#dd0000">?&gt;</font><br />
&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0; url=&lt;?echo $thankyou;?&gt;&#8221;"&gt;<br />
<font color="#dd0000">&#8220;&lt;?php</font><br />
}<br />
<font color="#dd0000">&#8220;?&gt;</font><br />
<font color="#000000"><br />
*You don&#8217;t have to have a thank you page if you dont need it you can just<br />
make it index.php or whatever page*</font></font></p>
<p><font color="#dd0000"><font color="#000000">Now for the form:<br />
</font><br />
<font color="#ff8000">&lt;form action=&#8221;mail.php&#8221; method=&#8221;post&#8221;&gt;</font><br />
<font color="#000000">Name </font><br />
<font color="#ff8000">&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221;&gt;&lt;br/&gt;</font><br />
<font color="#000000">Email addess </font><br />
<font color="#ff8000">&lt;input type=&#8221;text&#8221; name=&#8221;email&#8221;&gt;&lt;br/&gt;</font><br />
<font color="#000000">Message&lt;br/&gt;</font><br />
<font color="#ff8000">&lt;textarea name=&#8221;message&#8221; cols=&#8221;40&#8243; rows=&#8221;5&#8243;&gt;&lt;/textarea&gt;&lt;br/&gt;</font><br />
<font color="#ff8000">&lt;input type=&#8221;submit&#8221; value=&#8221;send&#8221;&gt;&lt;br/&gt;</font><br />
<font color="#ff8000">&lt;/form&gt;</font></font></p>
<p><font color="#dd0000"><font color="#000000">**If you are unfimiliar with &lt;br/&gt; it&#8217;s the new HTML standard.**</font></font></p>
<p>Source <a href="http://www.tutorialguide.net" title="Tutorial Guide" target="_blank">http://www.tutorialguide.net</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=16&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/10/how-to-create-php-contact-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP/MySQL Tutorial &#124; Part 8 &#8211; Finishing The Script</title>
		<link>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-8-finishing-the-scrip/</link>
		<comments>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-8-finishing-the-scrip/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 17:40:55 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-8-finishing-the-scrip/</guid>
		<description><![CDATA[IntroductionThroughout this tutorial I have taught you how to use PHP to interact with a MySQL (or SQL) database and how to use the most common commands available. I have, throughout this tutorial, also shown you how to create a basic contacts management system to illustrate some of the options you can use. In this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=15&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2" face="Arial, Helvetica, sans-serif"><font color="#000099" face="Arial"><big><strong>Introduction</strong></big></font></font><font size="2" face="Arial, Helvetica, sans-serif">Throughout this tutorial I have taught you how to use PHP to interact with a MySQL (or SQL) database and how to use the most common commands available. I have, throughout this tutorial, also shown you how to create a basic contacts management system to illustrate some of the options you can use. In this part I will show you some final MySQL tips and will give you a final version of the script.</p>
<p><font color="#000099" face="Arial"><big><strong>Saving Time</strong></big></font></p>
<p>When creating complex scripts using databases you will find that the most common thing you are doing is connecting to a database. Because of this, you can actually save time by creating either a username/password file or a connection file. For example for a username/password file you would create a file called:<br />
<font color="#0000ff" face="Arial"><br />
dbinfo.inc.php<br />
</font><br />
and put the following in it:<br />
<font color="#0000ff" face="Arial"><br />
&lt;?<br />
$username=&#8221;databaseusername&#8221;;<br />
$password=&#8221;databasepassword&#8221;;<br />
$database=&#8221;databasename&#8221;;<br />
?&gt;<br />
</font><br />
Replacing the appropriate sections. Then in your php files use the following code:<br />
<font color="#0000ff" face="Arial"><br />
include(&#8220;dbinfo.inc.php&#8221;);<br />
</font><br />
or<br />
<font color="#0000ff" face="Arial"><br />
include(&#8220;/full/path/to/file/dbinfo.inc.php&#8221;);<br />
</font><br />
at the beginning. Then, you can use the variables $username, $password and $database throughout your scripts without having to define them every time. Also, if you ever change this information, for example if you move to another web host, there is only one file to change.</p>
<p>You can use the same principal to connect to the database, by putting the connection code in the file, but you must always be sure to close the connection in each file or you may have problems with your MySQL server.</p>
<p><font color="#000099" face="Arial"><big><strong>Searching</strong></big></font></p>
<p>A limited form of searching can also be performed on your database using a built in MySQL function. This is by using the LIKE function as follows:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM tablename WHERE fieldname LIKE &#8216;%$string%&#8217;<br />
</font><br />
To explain furhter, LIKE tells the database to perform its &#8216;searching&#8217; feature. The % signs mean that any other data could appear in their place and $string would hold your search string. In this place could be a word or number as well e.g.:<br />
<font color="#0000ff" face="Arial"><br />
LIKE &#8216;%piano%&#8217;<br />
</font><br />
which would output any rows with piano in the specified field.</p>
<p>Similarly, you can leave out one of the % signs so that you can specify the position of the string e.g.:<br />
<font color="#0000ff" face="Arial"><br />
LIKE &#8216;piano%&#8217;<br />
</font><br />
Will only output rows where the specified field begins with piano, so:<br />
<font color="#0000ff" face="Arial"><br />
The piano is next to the table.<br />
</font><br />
Would not show up.</p>
<p><font color="#000099" face="Arial"><big><strong>The Finished Script</strong></big></font></p>
<p>Throughout this tutorial I have given you pieces of code to make a contacts database script. You can download the full script as a zip file so that you can examine the code (see Related Links).</p>
<p><font color="#000099" face="Arial"><big><strong>Conclusion</strong></big></font></p>
<p>From this tutorial you should now know the basics of using PHP and MySQL together to create database-enabled websites and programs. Using databases with the web opens up a huge new selection of things you can do and can make a simple website much more powerful, saving time updating the site, allowing user interaction and feedback and much more.</p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=15&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-8-finishing-the-scrip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP/MySQL Tutorial &#124; Part 7 &#8211; Updating &amp; Deleting</title>
		<link>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-7-updating-deleting/</link>
		<comments>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-7-updating-deleting/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 17:40:14 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-7-updating-deleting/</guid>
		<description><![CDATA[Introduction So far you have learnt how to put information into your MySQL database, view the information in it and select which information you would like to view. In this part I will show you how to do the two final actions, updating your database and deleting records from it. The Update Script Last week [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=14&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Arial, Helvetica, sans-serif" size="2"><font color="#000099" face="Arial"><big><strong>Introduction</strong></big></font></p>
<p>So far you have learnt how to put information into your MySQL database, view the information in it and select which information you would like to view. In this part I will show you how to do the two final actions, updating your database and deleting records from it.</p>
<p><font color="#000099" face="Arial"><big><strong>The Update Script</strong></big></font></p>
<p>Last week I explained how to create a link for each record to point to your update script. By using the $id variable you output links which would pass the correct ID to the script so that it can update the database. Using this you can then create the update script, which will actually have two sections to it.</p>
<p><font color="#000099" face="Arial"><big><strong>Displaying The Update Page</strong></big></font></p>
<p>The first part of the update script uses the single record selection from last week but adds a little HTML to it to make it more useful. First of all, we connect to the database and select the appropriate record.<br />
<font color="#0000ff" face="Arial"><br />
$id=$_GET['id'];<br />
$username=&#8221;username&#8221;;<br />
$password=&#8221;password&#8221;;<br />
$database=&#8221;your_database&#8221;;<br />
mysql_connect(localhost,$username,$password);</p>
<p>$query=&#8221; SELECT * FROM contacts WHERE id=&#8217;$id&#8217;&#8221;;<br />
$result=mysql_query($query);<br />
$num=mysql_numrows($result);<br />
mysql_close();</p>
<p>$i=0;<br />
while ($i &lt; $num) {<br />
$first=mysql_result($result,$i,&#8221;first&#8221;);<br />
$last=mysql_result($result,$i,&#8221;last&#8221;);<br />
$phone=mysql_result($result,$i,&#8221;phone&#8221;);<br />
$mobile=mysql_result($result,$i,&#8221;mobile&#8221;);<br />
$fax=mysql_result($result,$i,&#8221;fax&#8221;);<br />
$email=mysql_result($result,$i,&#8221;email&#8221;);<br />
$web=mysql_result($result,$i,&#8221;web&#8221;);</p>
<p>Space For Code</p>
<p>++$i;<br />
}<br />
</font><br />
Where &#8216;Space For Code&#8217; is in this script is where the code for the update page will go. This is, in fact, just HTML formatting for the output:<br />
<font color="#0000ff" face="Arial"><br />
&lt;form action=&#8221;updated.php&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;ud_id&#8221; value=&#8221;&lt;? echo $id; ?&gt;&#8221;&gt;<br />
First Name: &lt;input type=&#8221;text&#8221; name=&#8221;ud_first&#8221; value=&#8221;&lt;? echo $first; ?&gt;&#8221;&gt;&lt;br&gt;<br />
Last Name: &lt;input type=&#8221;text&#8221; name=&#8221;ud_last&#8221; value=&#8221;&lt;? echo $last; ?&gt;&#8221;&gt;&lt;br&gt;<br />
Phone Number: &lt;input type=&#8221;text&#8221; name=&#8221;ud_phone&#8221; value=&#8221;&lt;? echo $phone; ?&gt;&#8221;&gt;&lt;br&gt;<br />
Mobile Number: &lt;input type=&#8221;text&#8221; name=&#8221;ud_mobile&#8221; value=&#8221;&lt;? echo $mobile; ?&gt;&#8221;&gt;&lt;br&gt;<br />
Fax Number: &lt;input type=&#8221;text&#8221; name=&#8221;ud_fax&#8221; value=&#8221;&lt;? echo $fax; ?&gt;&#8221;&gt;&lt;br&gt;<br />
E-mail Address: &lt;input type=&#8221;text&#8221; name=&#8221;ud_email&#8221; value=&#8221;&lt;? echo $email; ?&gt;&#8221;&gt;&lt;br&gt;<br />
Web Address: &lt;input type=&#8221;text&#8221; name=&#8221;ud_web&#8221; value=&#8221;&lt;? echo $web; ?&gt;&#8221;&gt;&lt;br&gt;<br />
&lt;input type=&#8221;Submit&#8221; value=&#8221;Update&#8221;&gt;<br />
&lt;/form&gt;<br />
</font><br />
As you can see, this code will output a standard form, but instead of having blank boxes like on the form for inserting a new record, this one already has the current information from the database inserted into it. This makes it much more effective for an update script.</p>
<p><font color="#000099" face="Arial"><big><strong>Updating The Database</strong></big></font></p>
<p>The next stage of this script is to actually update the database. This is a simple operation and just involves a new query for the database:<br />
<font color="#0000ff" face="Arial"><br />
$query = &#8220;UPDATE contacts SET first = &#8216;$ud_first&#8217;, last = &#8216;$ud_last&#8217;, phone = &#8216;$ud_phone&#8217;, mobile = &#8216;$ud_mobile&#8217;, fax = &#8216;$ud_fax&#8217;, email = &#8216;$ud_email&#8217;, web = &#8216;$ud_web&#8217; WHERE id = &#8216;$ud_id&#8217;&#8221;;<br />
</font><br />
This query tells the database to update the contacts table where the ID is the same as the value stored in $ud_id (which as you can see from the form on the previous page was set as the id of the record we are updating) and to set the following fields to the specified values (which were set using the form on the previous page).</p>
<p>This query could then be integrated into a simple script:<br />
<font color="#0000ff" face="Arial"><br />
$ud_id=$_POST['ud_id'];<br />
$ud_first=$_POST['ud_first'];<br />
$ud_last=$_POST['ud_last'];<br />
$ud_phone=$_POST['ud_phone'];<br />
$ud_mobile=$_POST['ud_mobile'];<br />
$ud_fax=$_POST['ud_fax'];<br />
$ud_email=$_POST['ud_email'];<br />
$ud_web=$_POST['ud_web'];</p>
<p>$username=&#8221;username&#8221;;<br />
$password=&#8221;password&#8221;;<br />
$database=&#8221;your_database&#8221;;<br />
mysql_connect(localhost,$username,$password);</p>
<p>$query=&#8221;UPDATE contacts SET first=&#8217;$ud_first&#8217;, last=&#8217;$ud_last&#8217;, phone=&#8217;$ud_phone&#8217;, mobile=&#8217;$ud_mobile&#8217;, fax=&#8217;$ud_fax&#8217;, email=&#8217;$ud_email&#8217;, web=&#8217;$ud_web&#8217; WHERE id=&#8217;$ud_id&#8217;&#8221;;<br />
mysql_query($query);<br />
echo &#8220;Record Updated&#8221;;<br />
mysql_close();<br />
</font><br />
This code would update the database and give the user a confirmation.</p>
<p><font color="#000099" face="Arial"><big><strong>Deleting Records</strong></big></font></p>
<p>The final part of the contacts database which needs to be created is a page to delete records. As with the Update page, this should have a record ID sent to it in the URL e.g.:<br />
<font color="#0000ff" face="Arial"><br />
delete.php?id=9<br />
</font><br />
The code to do this is the same as to update the database, except with a slightly different MySQL query. Instead of the UPDATE query you should use:<br />
<font color="#0000ff" face="Arial"><br />
DELETE FROM contacts WHERE id=&#8217;$id&#8217;<br />
</font><br />
This would then be used with the connection and confirmation code as above.</p>
<p><font color="#000099" face="Arial"><big><strong>Loops</strong></big></font></p>
<p>At this time it seems appropriate to mention another use of loops with a database. As well as using a loop to get information from a database as we have before, you can also use loops to execute queries. For example, if you wanted to change all the records in the database with the last name Smith to have the website www.smith.com:<br />
<font color="#0000ff" face="Arial"><br />
Standard Database Connection Code</p>
<p>$query=&#8221; SELECT * FROM contacts WHERE last=&#8217;Smith&#8217;&#8221;;<br />
$result=mysql_query($query);<br />
$num=mysql_numrows($result);</p>
<p>$i=0;<br />
while ($i &lt; $num) {<br />
$id=mysql_result($result,$i,&#8221;id&#8221;);<br />
$query1=&#8221;UPDATE contacts SET web=&#8217;http://www.smith.com&#8217; WHERE id=&#8217;$id&#8217;&#8221;;<br />
mysql_query($query);<br />
++$i;<br />
}</p>
<p>mysql_close();<br />
</font><br />
Of course, this could have been achived far easier and quicker using:<br />
<font color="#0000ff" face="Arial"><br />
$query1=&#8221;UPDATE contacts SET web=&#8217;http://www.smith.com&#8217; WHERE last=&#8217;Smith&#8217;&#8221;;<br />
</font><br />
and no loop.<br />
</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=14&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-7-updating-deleting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP/MySQL Tutorial &#124; Part 6 &#8211; Single Records &amp; Error Trapping</title>
		<link>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-6-single-records-error-trapping/</link>
		<comments>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-6-single-records-error-trapping/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 17:39:24 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-6-single-records-error-trapping/</guid>
		<description><![CDATA[Introduction In the past two parts of this tutorial I have shown you how to take data out of the database and display it on screen. In this part I will enter into the final aspect of this data displaying, selecting one piece of data and stopping errors from happening when you output data. Error [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=13&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Arial, Helvetica, sans-serif" size="2"><font color="#000099" face="Arial"><big><strong>Introduction</strong></big></font></p>
<p>In the past two parts of this tutorial I have shown you how to take data out of the database and display it on screen. In this part I will enter into the final aspect of this data displaying, selecting one piece of data and stopping errors from happening when you output data.</p>
<p><font color="#000099" face="Arial"><big><strong>Error Trapping</strong></big></font></p>
<p>By outputting all the information from the database, it is quite unlikely that there will be no data, but if you allow updating and deleting of records, it is certainly a possibility. Luckily, with PHP and MySQL, there is an easy way round this using:<br />
<font color="#0000ff" face="Arial"><br />
$num=mysql_numrows($result);<br />
</font><br />
where $result contains the result of a query on the database (like selecting all the records). As I expalined before, this will set the value of $num as the number of rows in the result (and it was used in a loop in part 4). Because of this you can make a simple error trap using an IF statement:<br />
<font color="#0000ff" face="Arial"><br />
if ($num==0) {<br />
echo &#8220;The database contains no contacts yet&#8221;;<br />
} else {<br />
Output Loop<br />
}<br />
</font><br />
You can expand on this more by making it more user friendly (for example by providing a link to the Add Data page if no contacts exist).</p>
<p><font color="#000099" face="Arial"><big><strong>Ordering Data</strong></big></font></p>
<p>Not only can you output data based on the contents of a field, but you can also order the output based on a field (for example placing users in alphabetical order). By default, the output from your queries will be in order of the id field, going from 1 upwards. You can sort it on any field, though.</p>
<p>For example, a useful sort would be to place all the users in alphabetical order based on their last name. For those not familiar with standard databases, this would be in Ascending order as it goes from A to Z. (Ascending order is also for 1-10 etc. and descending order provides Z to A and 10-1). To do this you would use the following query:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM contacts ORDER BY last ASC<br />
</font><br />
You could also use DESC to order the data in Descending order.</p>
<p><font color="#000099" face="Arial"><big><strong>More Uses Of mysql_numrows and Sorting</strong></big></font></p>
<p>The value you have assigned to $num is very imiportant as, apart from error trapping and loops, it has many other uses. An example of this would be to print out only the last 5 records added to a database. Firstly, they would need to be placed into order based on the id field (as the one with the latest ID would have been added last. This would require them to be in Descending order.</p>
<p>Now you have them in order of newest to oldest but this does not restrict the script to only showing the first 5. To do this, you would need to set your loop to run to 5 instead of $num (as this would only run the loop 5 times so only 5 records would be output).</p>
<p>Of course, before doing this, it would be important to check that $num was greater than 5, as if you ran the loop 5 times and there were only 3 rows you would get an error. This is easy to do though and the following code is an example of the sort of thing you would want to have:<br />
<font color="#0000ff" face="Arial"><br />
if ($num&gt;5) {<br />
$to=5;<br />
}else{<br />
$to=$num;<br />
}</p>
<p>$i=0;<br />
while ($i &lt; $to) {<br />
REST OF CODE<br />
</font><br />
This code would check if there were more than 5 rows in the database. If there were, the loop would be set to run 5 times. If there were less than 5 rows the loop would run the correct number of times to output the whole database.</p>
<p><font color="#000099" face="Arial"><big><strong>The ID Field</strong></big></font></p>
<p>If you remember back to creating the database for the contacts at the beginning of this tutorial, you will remember that we included a numerical field called id. This field was set as auto_increment as well as being the primary field. I have already explained how this field is unique for every single record in the database, but I will now take this a stage further by explaining how this can be used to select an individual record from a database.</p>
<p><font color="#000099" face="Arial"><big><strong>Selecting A Single Record</strong></big></font></p>
<p>At the end of the last part of this tutorial, I s<br />
howed you how to select records from the database based on the contents of partiular fields using:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM contacts WHERE field=&#8217;value&#8217;<br />
</font><br />
Now, by using the unique ID field we can select any record from our database using:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM contacts WHERE id=&#8217;$id&#8217;<br />
</font><br />
Where $id is a variable holding a number of a record. This may seem to be a little worthless as it is, but you can use this very effectively in a number of different ways. For example, if you wanted to have a dynamically generated site run through a database and a single PHP script, you could write the script to include the database data into the design. Then, using the id field, you could select each individual page and put it into the output. You can even use the page&#8217;s URL to specify the record you want e.g.<br />
<font color="#0000ff" face="Arial"><br />
http://www.yoursite.com/news/items.php?item=7393<br />
</font><br />
And then have the PHP script look up the record with the id corresponding to $item, which in this case would be 7393</p>
<p><font color="#000099" face="Arial"><big><strong>Links For Single Records</strong></big></font></p>
<p>Using this method of choosing a record using the URL to select the record can be expanded further by generating the URL dynamically. This sounds a bit complicated so I will elaborate. In the contacts script we are writing, I will be showing you how to create an Update page where the user can update the contact details.</p>
<p>To do this, another column will be included in the output column, with an Update link in it. This update link will point to a page allowing the user to update the record. To select the record in this page, we will put:<br />
<font color="#0000ff" face="Arial"><br />
?id=$id<br />
</font><br />
By getting the id of the record along with the other information when we are outputting the information from the database, this code will create a link which has each record&#8217;s ID number in it. Then, on the update page, there can be code to just select this item.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=13&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-6-single-records-error-trapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP/MySQL Tutorial &#124; Part 5 &#8211; More Outputs</title>
		<link>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-5-more-outputs/</link>
		<comments>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-5-more-outputs/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 17:38:39 +0000</pubDate>
		<dc:creator>carass</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-5-more-outputs/</guid>
		<description><![CDATA[Introduction Throughout this tutorial you have learnt how to create a database and table, insert information and display the database information. In this part I will show you more ways of displaying and outputting the information in the database. Formatting Output In the last part of the tutorial we output a list of all the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=12&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Arial, Helvetica, sans-serif" size="2">                         <font color="#000099" face="Arial"><big><strong>Introduction</strong></big></font></p>
<p>Throughout this tutorial you have learnt how to create a database and table, insert information and display the database information. In this part I will show you more ways of displaying and outputting the information in the database.</p>
<p><font color="#000099" face="Arial"><big><strong>Formatting Output</strong></big></font></p>
<p>In the last part of the tutorial we output a list of all the people stored in the database. This just gave us a very basic output, though and is not particularly useful for a working website. Instead, it would be better if we could format it into a table and display it like this.</p>
<p>Doing this formatting is not particularly complicated. All you need to do is use PHP to output HTML and include your variables in the correct spaces. The easiest way to do this is by closing your PHP tag and entering the HTML normally. When you reach a variable position, include it as follows:<br />
<font color="#0000ff" face="Arial"><br />
&lt;? echo $variablename; ?&gt;<br />
</font><br />
in the correct position in your code.</p>
<p>You can also use the PHP loop to repeat the appropriate code and include it as part of a larger table. For example, using a section of the code from part 4 which looped to output the database you can format it to display it in one large table:<br />
<font color="#0000ff" face="Arial"><br />
&lt;table border=&#8221;0&#8243; cellspacing=&#8221;2&#8243; cellpadding=&#8221;2&#8243;&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;Name&lt;/font&gt;&lt;/th&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;Phone&lt;/font&gt;&lt;/th&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;Mobile&lt;/font&gt;&lt;/th&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;Fax&lt;/font&gt;&lt;/th&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;E-mail&lt;/font&gt;&lt;/th&gt;<br />
&lt;th&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;Website&lt;/font&gt;&lt;/th&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;?<br />
$i=0;<br />
while ($i &lt; $num) {</p>
<p>$first=mysql_result($result,$i,&#8221;first&#8221;);<br />
$last=mysql_result($result,$i,&#8221;last&#8221;);<br />
$phone=mysql_result($result,$i,&#8221;phone&#8221;);<br />
$mobile=mysql_result($result,$i,&#8221;mobile&#8221;);<br />
$fax=mysql_result($result,$i,&#8221;fax&#8221;);<br />
$email=mysql_result($result,$i,&#8221;email&#8221;);<br />
$web=mysql_result($result,$i,&#8221;web&#8221;);<br />
?&gt;</p>
<p>&lt;tr&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;? echo $first.&#8221; &#8220;.$last; ?&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;? echo $phone; ?&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;? echo $mobile; ?&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;? echo $fax; ?&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;a  href=&#8221;mailto:&lt;? echo $email; ?&gt;&#8221;&gt;E-mail&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;font face=&#8221;Arial, Helvetica, sans-serif&#8221;&gt;&lt;a  href=&#8221;&lt;? echo $web; ?&gt;&#8221;&gt;Website&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;?<br />
$i++;<br />
}</p>
<p>echo &#8220;&lt;/table&gt;&#8221;;<br />
</font><br />
This code will print out table headers, then add an extra row for each record in the database, formatting the data as it is output.</p>
<p>As long as you are familiar with PHP and HTML the code is probably pretty self explanatory but I will just point out the last two lines in the table, for example:<br />
<font color="#0000ff" face="Arial"><br />
&lt;a href=&#8221;mailto:&lt;? echo $email; ?&gt;&#8221;&gt;E-mail&lt;/a&gt;<br />
</font><br />
This shows one of the useful features of using PHP to include MySQL data as you can use it to output parts of your code and make pages fully dynamic.</p>
<p><font color="#000099" face="Arial"><big><strong>Selecting Pieces of Data</strong></big></font></p>
<p>As well as showing the whole database, PHP can be used to select individual records, or records which match certian criteria. To do this you must use a variation of the SELECT query. To display the whole table we used the query:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM contacts<br />
</font><br />
If we just wanted to select ones who had the first name &#8216;John&#8217; you would use the following query:<br />
<font color="#0000ff" face="Arial"><br />
SELECT * FROM contacts WHERE first=&#8217;john&#8217;<br />
</font><br />
As with other MySQL queries, it is almost like plain english. In the same way you could select records based on any field in the database. You can also select ones with more than one field by adding more:<br />
<font color="#0000ff" face="Arial"><br />
field=&#8217;value&#8217;<br />
</font><br />
sections onto the query.</p>
<p>Although I won&#8217;t go int<br />
o great depth about it in this section, you can also use variables to give the database criteria. For example, if you had a search form you could get the last name people wanted to search for and store it in a variable called $searchlast. Then you could execute the following piece of code:<br />
<font color="#0000ff" face="Arial"><br />
$query=&#8221;SELECT * FROM contacts WHERE last=&#8217;$searchlast&#8217;&#8221;;<br />
$result=mysql_query($query);<br />
</font><br />
Please note that at the end of the first line there is a &#8216; followed by a &#8221; before the semicolon.</p>
<p><font color="#000099" face="Arial"><big><strong>Security</strong></big></font></p>
<p>At this point it should be noted that you must be very careful in using the technique given above. Without correct secuirty measures, it would be very easy for someone to access data on your server, or even make changes to the database. This can occur if the user sets the variable to a value which edits the SQL string being generated in such a way that it can be used for their own purposes. I won&#8217;t go into full details here, but there are many websites which give full details (search for &#8216;sql injection attack&#8217;).</p>
<p>This security hole is easy to plug with a bit of work. Always check input data for invalid chanracters and use PHP&#8217;s built in functions to remove control characters and HTML code etc. Again, there are many websites which go into this in depth.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/carass.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/carass.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/carass.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/carass.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/carass.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=carass.wordpress.com&amp;blog=2305835&amp;post=12&amp;subd=carass&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://carass.wordpress.com/2007/12/09/phpmysql-tutorial-part-5-more-outputs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cfe16d5f52b1989f864de4412168ca19?s=96&#38;d=identicon" medium="image">
			<media:title type="html">carass</media:title>
		</media:content>
	</item>
	</channel>
</rss>
