<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
<channel>
<title>output</title>
<link>http://www.computersight.com/tags/output</link>
<description>New posts about output</description>
<item>
<title>PHP Tutorial: Printing on the Screen</title>
<link>http://www.computersight.com/Programming/PHP/PHP-Tutorial-Printing-on-the-Screen.112786</link>
<description>
<![CDATA[<p>PHP is a script language commonly used by webmasters to design dynamic websites. Unlike HTML which has static content, PHP has dynamic content because of user interaction. Today, most of the qualified websites are designed by PHP or CGI.</p>
 
<p>PHP scripts embedded into the HTML codes. When someone checks the source code of the page, he doesn't get anything about PHP scripts. He only learns the HTML part of coding. This article is an introduction to PHP scripting language. One can find useful information and have enough knowledge after reading my PHP tutorial series. Without delay, I would like to start my script creation step by step.</p>
 
<p>Before starting, you should know that you have to set up PHP installations into your computer. Such installations are PHP itself, Phpmyadmin interface, Mysql database and Apache Server. Without these, your scripts are nothing since they are not compiled by your computer.</p>
 
<h3>Step 1:</h3>
 
<p>To write PHP scripts, we need a place. That place is a simple text editor. You are free to choose your text editor. I prefer  to use Notepad. There are other alternatives like Editplus or Elfima. If your operating system is not Windows but Linux, you can place your code into Vi editor or Pico. I have never tried but I think you can use Dreamveawer, Hotdog or Frontpage.</p>
 
<p>In your text editor, open an new file and save it as &amp;ldquo;myfirst.php&amp;rdquo; or &amp;ldquo;myfirst.html&amp;rdquo; . I choose the name of file as &amp;ldquo;myfirst&amp;rdquo; but you are free to choose anything.</p>
 
<h3>Step 2:</h3>
 
<p>I have told you before that PHP scripts are embedded into HTML codes. So, first of all we will write HTML codes. The basic codes are HTML, TITLE, HEAD and BODY. It can be written by lowercase letters as well. This part is not important.</p>
 
<p><img src="http://images.stanzapub.com/readers/computersight/2008/04/22/149028_0.jpg" alt="" /></p>
 
<p><strong>Step 3: </strong>All PHP scripts start with &amp;ldquo;  &amp;rdquo;. Only the part between two  is compiled by server and evaluated as output.To print characters on the screen, standart output functions of PHP are used. Those are &amp;ldquo; print &amp;rdquo; and &amp;ldquo; echo &amp;rdquo;. In some circumstances, &amp;rdquo; printf &amp;rdquo; is used too.</p>
 
<p>The format of printing:</p>
 <ol> 
<li> print  ( &amp;ldquo; your output &amp;rdquo; ) ;</li>
 
<li> print   &amp;ldquo; your output &amp;rdquo;  ;</li>
 
<li> echo &amp;ldquo; your output &amp;rdquo;  ;</li>
 
<li> echo ( &amp;ldquo; your outpu t&amp;rdquo; ) ; </li>
 </ol> 
<p>If you don't use any white space characters, the strings are written without any separation. For example if you write this code;</p>
 
<ul>
<li>Print ( &amp;ldquo; Word1 &amp;rdquo; ) ;</li>
 
<li>Print ( &amp;ldquo; Word2 &amp;rdquo; ) ;</li>
 
</ul>
<p>It will be outputted as Word1Word2.</p>
 
<p>To remove this fault,white space characters are used. In PHP code part, between print functions, we place &amp;lt; br &amp;gt; code.</p>
 
<p>Example: To be more understandable,I will write a simple PHP script. Output will be the name of my favorite Triond writers.</p>
 
<p><img src="http://images.stanzapub.com/readers/computersight/2008/04/22/149028_1.jpg" alt="" /></p>
 
<p>To see the output,<a href="http://learnphp.awardspace.biz/" target="_blank"> Click here.</a></p><a href="http://www.pheedo.com/click.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FPHP%2FPHP-Tutorial-Printing-on-the-Screen.112786"><img src="http://www.pheedo.com/img.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FPHP%2FPHP-Tutorial-Printing-on-the-Screen.112786" border="0"/></a>]]></description>
<pubDate>Tue, 22 Apr 2008 06:42:32 PST</pubDate></item>
<item>
<title>Computer Output</title>
<link>http://www.computersight.com/Hardware/Computer-Output.39867</link>
<description>
<![CDATA[<h3>What is output?</h3>

 
 <p><ul>
  <li> Data that has been processed into a useful form,<br />called information.  </li>
 
  <li> <strong>Output device</strong> is any hardware component that can convey <br />information to user.  </li>
 </ul></p>
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 

<h3> What is a display device?</h3>

 <p><ul>
  <li> Output device that visually conveys information on display device sometimes <br />called soft copy.</li>
  <li> Monitor houses display device as separate peripheral</li>
 </ul></p>
 
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_0.jpg" /></p>
 
 
<h3>What is a CRT monitor?</h3>

 <p><ul>
  <li> Contains cathode-ray tube (CRT)</li>
  <li> Screen coated with tiny dots of phosphor material
   
    <li> Each dot consists of a red, blue, and green phosphor    </li>
  
  </li>
  <li> Common sizes are 15, 17, 19, 21, and 22 inches
  
    <li> Viewable size is diagonal measurement of actual viewing area    </li>
   
 </ul></p>
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_1.jpg" /></p>
 
 
<h3>What is resolution?</h3>

 <p><ul>
  <li> Sharpness and clarity of image</li>
  <li> Higher resolution makes image sharper, displays more text on screen, makes some elements smaller</li>
  <li> Refresh rate is speed at which monitor redraws images on screen  </li>
 </ul></p>
 
 
 
 
 
 
 
 
 
 
<h3>How does video travel from the processor to a CRT monitor?</h3>

 <p><ul>
  <p> Video card (also called a graphics card) converts digital output from computer into analog video signal  </p>

 
 <p><ul><li><strong>Step 1: </strong>The processor sends digital video data to the video card. </li>
 <li><strong>Step 2: </strong>	The video card's digital-to-analog converter (DAC) converts the digital video data to an analog signal.</li>
 <li><strong>Step 3: </strong>The analog signal is sent through a cable to the CRT monitor.</li>
 <li><strong>Step 4: </strong>The CRT monitor separates the analog signal into red, green, and blue signals.</li>
 <li><strong>Step 5: </strong>Electron guns fire the three color signals to the front of the CRT.</li>
 <li><strong>Step 6: </strong>An image is displayed on the screen when the electrons hit phosphor dots on the </li>
 <li>back of the screen.</li></ul></p>
 
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_2.jpg" /> </p>
 
 
 
 

 
 
 
 
 
 
 
 
<h3>What are various video card configurations?</h3>

 
 
 
 
<h3>What is a flat panel display?</h3>

 
 <p><ul>
  <li> Uses liquid crystal display</li>
  <li> Also called <strong>LCD monitor</strong></li>
 
    <li> Takes up less desk space than CRT monitor</li>
    <li> Consumes less than one-third the power    </li>
 
   
 </ul></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<h3>How does LCD work? </h3>
<p><ul>
 <li><strong>Step 1.</strong> Panel of fluorescent tubes emits light waves through polarizing glass filter, which guides light toward layer of liquid crystal cells.</li>
 <li><strong>Step 2.</strong> As light passes through liquid crystal, electrical charge causes some of the cells to twist, making light waves bend as they pass through color filter.</li>
 <li><strong>Step 3.</strong> When light reaches second polarizing glass filter, light is allowed to pass through any cells that line up at the first polarizing glass filter. Absence and presence of colored light cause image to display on the screen.</li></ul></p>
 
 
 
 
<h3>What is a printer?
 </h3>

 <p><ul>
  <li> Output device that produces text and graphics on paper
   </li>
    <li> Result is hard copy, or printout</li>
    <li> Two orientations: portrait and landscape    </li>
   </ul></p>
    
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<h3>What is a dot-matrix printer?</h3>

 
 <p><ul>
  <li> Impact printer that produces printed images when tiny wire pins strike ribbon
   
    <li> Impact printer forms characters by striking mechanism against inked ribbon that contacts paper    </li>
   
 </ul></p>
 
 
 
 
 
 
 
 
 
 

<h3> What is a line printer?</h3>

 
 <p><ul>
  <li> High-speed impact printer that prints entire line at a time
  </li>
    <li> Speed measured in lines per minute (lpm)
    </li>
      <li> Band printer prints fully formed characters using a hammer mechanism</li>
      <li> Shuttle-matrix printer is high-speed printer that works like dot-matrix printer      </li>
     </ul></p>
      
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_3.jpg" /></p>
 

<h3> What is an ink-jet printer?</h3>

 <p><ul>
  <li> A type of nonimpact printer that sprays tiny drops of liquid ink onto paper
 
    <li> Nonimpact printer forms characters and graphics without striking paper</li>
    <li> Prints in black-and-white or color on a variety of paper types    </li>
   </ul></p>
  

 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_4.jpg" /></p>

<h3> What is a laser printer?</h3>

 <p><ul>
  <li> High-speed, high-quality nonimpact printer
  
    <li> Prints text and graphics in very high-quality resolution, ranging from 600 to 2,400 dpi</li>
    <li> Typically costs more than ink-jet printer, but is much faster    </li>
  
 </ul></p>
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_5.jpg" /></p>
 
<h3>How does a laser printer work? </h3>

 
<p><ul> <li><strong>Step 1.</strong> After user sends an instruction to print a document, drum rotates as gears and rollers feed sheet of paper into printer.</li>
 <li><strong>Step 2.</strong> Rotating mirror deflects low-powered laser beam across surface of drum.</li>
 <li><strong>Step 3.</strong> Laser beam creates a charge that causes toner to stick to drum.</li>
 <li><strong>Step 4.</strong> As drum continues to rotate and press against paper, toner transfers from drum to paper.</li>
 <li<strong>Step 5.</strong> Set of rollers uses heat and pressure to permanently fuse toner to paper.</li></ul></p>
 
 

<h3> What is the resolution of a printer?</h3>

 <p><ul>
  <li> Sharpness and clarity
  
    <li> Measured by number of dots per inch (dpi) printer can output</li>
  
  
 </ul></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<h3>What is a thermal printer?</h3>

 <p><ul>
  <li> Generates images by pushing electrically heated pins against heat-sensitive paper
  
    <li> Dye-sublimation printer, (also called a digital photo printer) uses heat to transfer dye to specially coated paper    </li>
   </ul></p>


 
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_6.jpg" /></p>
 <p><br /></p>
 
 
<h3>What is an audio output device?</h3>

 <p>
   Computer component that produces music, speech, or other sounds
   
 Speakers and headsets are common devices.   

   
 </p>
 
 
 
 
 
 
 
 
 
 
 
 

<h3> What is a facsimile (fax) machine? </h3>

 <p>
   Device that transmits and receives documents over telephone lines  
</p>
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_7.jpg" /></p>
 
 
 
 
<h3>What is a multifunction peripheral?</h3>

 <p>
   Provides functionality of printer, scanner, copy machine, and fax machine  
 </p>
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_8.jpg" /></p>
 
 
 
 
<h3>What is a data projector?</h3>

 <p>
 Device that takes image from computer screen and projects it onto larger screen  </p>
 
 
 <p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_9.jpg" /></p>
 
 
 
<p><img  alt="" src="http://images.stanzapub.com/readers/computersight/2007/08/14/27371_10.jpg" /></p>

<h3> What is force feedback?</h3>

 <p><ul>
  <li> Sends resistance to joystick or wheel in response to actions of user  </li>
 
 
 
 <li>Fluorescent tube panel</li>
 
 <li>Polarizing glass filter</li>
 
 <li>Alignment layer</li>
 
 <li>Transparent electrodes</li>
 
 <li>Color filter</li>
 
 <li>Liquid crystal cells</li>
 
 <li>landscape</li>
 
 <li>portrait</li></ul></p><a href="http://www.pheedo.com/click.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FHardware%2FComputer-Output.39867"><img src="http://www.pheedo.com/img.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FHardware%2FComputer-Output.39867" border="0"/></a>]]></description>
<pubDate>Mon, 23 Apr 2007 07:02:32 PST</pubDate></item>
</channel>
</rss>
