Text Highlight PHP:TextHighlighter PEAR CSS File
Recently I had a problem with the Text Highlighter obtained from the PHP PEAR repository. I thought I was following all the instructions but it seemed the code was not highlighting the text with color i.e. beautifying it. Here are the steps I took to get the Text_Highlighter working on this site:
1 First you need to install the PEAR TEXT_HIGHLIGHTER. Google ‘pear php.’ Then search for ‘text highlighter.’
Type this: pear install Text_Highlighter0.7.1 or whatever is the latest stable version and replace with the appropriate numbers. I had a problem with Bluehost.com where I currently host some of my websites. I ran this pear install Text_Highlighter0.7.1 via PuTTY;however I received an error that the Text Highlighter files could not be found. So I attempted to change the php.ini file on the line include_path but it didn’t work. So I used the PHP set_include_path function as so:
lt;?php
path = “path/to/PEAR”;
set = set_include_pathget_include_path . PATH_SEPARATOR . path;
?gt;
2 Then I set a require_once function to the Text Highlighter file. I placed the following code right after my body tags:
lt;?php
require_once “Text/Highlighter.php”;
require_once “Text/Highlighter/Renderer/Html.php”;
renderer = new Text_Highlighter_Renderer_Htmlarray”numbers” =gt; HL_NUMBERS_LI “tabsize” =gt; 4;
?gt;
The render object set by Text_Highlighter_Renderer_Html sets numbers for each line of code and the othe r option sets the tabs for easier reading. I haven’t quite figured out how the tab works though. When I figure this out I’ll post the solution. Right after the above code I set all the variables for each specific programming language as so:
lt;?php
hiHtml =amp; Text_Highlighter::factory”HTML”;
hiHtmlgt;setRendererrenderer;
hiCss =amp; Text_Highlighter::factory”CSS”;
hiCssgt;setRendererrenderer;
hiPhp =amp; Text_Highlighter::factory”PHP”;
hiPhpgt;setRendererrenderer;
hiDtd =amp; Text_Highlighter::factory”DTD”;
hiDtdgt;setRendererrenderer;
hiJava =amp; Text_Highlighter::factory”Java”;
hiJavagt;setRendererrenderer;
hiJavascript =amp; Text_Highlighter::factory”Javascript”;
hiJavascriptgt;setRendererrenderer;
hiMySql =amp; Text_Highlighter::factory”MySQL”;
hiMySqlgt;setRendererrenderer;
hiPerl =amp; Text_Highlighter::factory”Perl”;
hiPerlgt;setRendererrenderer;
hiPython =amp; Text_Highlighter::factory”Python”;
hiPythongt;setRendererrenderer;
hiRuby =amp; Text_Highlighter::factory”Ruby”;
hiRubygt;setRendererrenderer;
hiSql =amp; Text_Highlighter::factory”SQL”;
hiSqlgt;setRendererrenderer;
hiVbScript =amp; Text_Highlighter::factory”VBSCRIPT”;
hiVbScriptgt;setRendererrenderer;
hiXml =amp; Text_Highlighter::factory”XML”;
hiXmlgt;setRendererrenderer;
?gt;
To implement the highlighting in your code all you need to do is:
lt;?php
echo hiHtmlgt;highlight”lt;pgt;This is a sample of displaying and preformatting HTML code to display properly and that validates under W3C standards.lt;/pgt;
lt;divgt;This is a div tag. I’ve used the character entities for the HTML P tage and in the DIV taglt;/divgt;
lt;divgt;In this div tag I’ve used the numbered entities for the less than and greater than signs. Though you can’t see it displayed in the browser you can check in the source code of the browser.lt;/divgt;”
?gt;
About the writer: TutorialRef.com is a website hosting articles on various tutorials on PHP CSS Javascript AJAX XML other computer languages SEO Search Engine Optimization Internet Marketing software tips and other subject matters. This article is written by Victor Kimura a web developer and SEO expert. PHP Tutorial. Original article for stepbystep PHP Tutorial with highlighted code: Text Highlighter PHP PEAR.
Outsourcing To Bpo Companies – Some Facts
With Business Process Outsourcing BPO companies offering specialized services at competitive costs large companies are increasingly outsourcing the noncore part of their business operations to BPO companies. Even if the BPO services provider is based halfway across the globe from its client company it is able to seamlessly integrate its workflow with that of the client company and thus complete tasks in real time and with assured quality.
The most common outsourced work includes SEO and Web Development services Transcription Services and Data entry Projects software development data and voice call center etc.
Reasons for outsourcing
Outsourcing has witnessed huge rise in popularity in recent times for a variety of reasons; the most common of them are:
Certain processes can be performed at much lower costs from remote locations because of certain local factors such as cheap talent.
An MNC draws customers all over the world. Hiring local people helps the company to ce so to serve them better local talent is required.
Because of budgetary or legal or some other constraint it is not possible nor is to feasible to build up the necessary capacity for expansion.
Certain non core processes are draining significant resources and time which can be gainfully employed to sharpen the core skills.
Benefits of Outsourcing to BPO companies
- Access to latest technology without heavy capital investment
- Access to wide range of talent at very economical cost.
- Specific supplier benefits. For example better network security continuity etc.
- Higher quality service due to focus of the BPO company
- Less strain on precious internal resources
- Save on time effort infrastructure and resources
- Large volume of work can be finished on time as good BPO companies have necessary scale and expertise to handle such jobs.
Right way to outsource
Streamline the process: Before outsourcing any process companies should streamline it with active involvement of the BPO service providers. This will ensure that there are no delays in implementing the process. If there are problems because of inconsistencies between the implemented process and the desired one then clear understanding of the controls and parameters is necessary to achieve business objectives.
Outsource the right process: Admittedly all the processes cannot be outsourced for various reasons. Find out the process to be outsourced by asking yourself following questions:
Has the process to be outsourced been streamlined and is there a proper documentation to define various stages of the process?
Have the parameters to control the outcome quality of the process been identified and documented?
Will the BPO company execute service level agreement SLA and will it be able to provide right real time monitoring.
Choose the right BPO partner: Choosing the right BPO service provider will reduce the risk time and expense involved in the commissioning running and implementing an outsourced process. The best BPO partner is the one whose business process management BPM closely parallels yours. In this case there wont be any problems in transferring and implementing the process at BPO end because of close resemblance in management and control procedures
About the writer: Cyrus Bilimoria is a consultant on BPO companies and has written several write ups on outsourcing and BPO services.
Some Important Tips On Seo!
Are your seo efforts at a standstill while everyone else seems to be getting results? Maybe it’s time to take some tips from the guys that know the limits of optimization and the benefits of playing in the grey area.
So let’s see what black hats do to get traffic:
1. Go for the long tail black hats do this because it’s easier to rank for a 45 or even 6 keyword search that has no direct competition than it is to rank for a search phrase that has hundreds of thousands or millions of results.
Of course spam sites have the advantage of massive numbers of pages for more details visit to www.the20seotools.com so even if that page only brings one visitor per month it’s still enough spam sites are created in only a couple of hours and usually have from 30 000 pages and up.
But if you keep writing daily or even more than once a day it will add up. This brings us to the next point:
2. The money’s in the archives although some visitors will first see the main page of your site many more will first see one of the inside pages as these will be the ones that come up for specific long tail searches.
With each page you publish you increase your chances that at least one more visitor will find your site and more importantly if it’s a good resource for more details visit to www.offlinepromotion.com it will more than pay for itself by getting backlinks from many different sites that will diversify your inbound links profile.
3. Small degrees of separation this is one of the best methods for writing new content: if you have a page on a certain subject just write another that has some differences.
For example: you’ve just written an article on how to promote a site on Digg now write another on how to promote on Del.icio.us and yet another on how to promote your site on Slashdot of course don’t just change the names and URLs you actually have to change the article a little bit.
Please understand this: if you have a 30 page site don’t put up 10 pages that resemble each other very much. By doing this you’ll surely trip a duplicate content filter.
4. Comment spam but without the spam let’s face it: black hats are synonymous with spammers. They rely on comment and guestbook spamming to get their huge websites indexed and this proves one thing that i’ve tested and found to be true: even “nofollow” links have the power to rank and index your site although most optimizers say these are useless.
What to do: find 10 or 15 blogs that are on the same subject as your site and start contributing with valuable information. Don’t spam don’t say “Nice blog!” every time just to get a link! You must actually participate.
5. Create legitimate doorway pages this is a great method for link building and actually getting customers while your site is in the sandbox or not ranking very good.
A very good example is Squidoo.com: it’s a very powerful site with lots of link juice that lets you create pages on almost any subject. Start by creating 10 or 12 pages with unique content on various subjects that match your site and then place various links to your site on the Squidoo pages you have created.
Even better you can actually create a very big network of pages which you can logically structure as a homepage with categories and product pages it’s allowed encouraged and in the end very good for you.
Now think of other powerful sites on which you can put your content: Blogger Google Base Wordpress.com Xanga Livespace and many more.
6. Blog and ping this is very simple and yet a very good method to get indexed fast. Each time you write a new article go to Pingoat.com put in the name of the article and the url and ping away. You’ll be indexed in no time!
About the writer:nbsp;nbsp;www.sitemapmakers.com
www.keywordswipe.com
