Posts Tagged ‘Include’

PHP:Change/modify configuration values for ‘include_path’ in php ini configuration runtime

Monday, June 30th, 2008

ini_set(’include_path’, ‘/usr/share/code’ . PATH_SEPARATOR . ini_get(’include_path’));

How to include a file in PHP

Saturday, June 28th, 2008

Include file is a common feature of all Server-side languages and technologies. Include file can be used to include one file into another file. This will simplify the maintenance of a web site.
Syntax:

include(”Path of the file”);

Example

include(”conn.php”);

Importance of Link Building For SEO.

Thursday, June 26th, 2008

Link building is a marketing technique that is difficult to control. Nevertheless your hard work can pay off whenever you see your site at the top of the Search Engines. You should also know that it really is not as difficult as you might think to get these links. All you really have to do is go to the Search Engines and search for other web sites who have keywords that are similar to yours. Once you have done this you can then visit these web sites in search of a link exchange opportunity. If you do not see one present, then you can always email the webmaster. However, you do not want to do this too many times or you can become blacklisted.It is also a good idea to create a page on your web site telling other webmasters that you are willing to exchange links. If you choose to do this though, you need to make sure to include your contact details on this web page. Though recent experiments says that link exchange are dead, they are no longer a sound method of building links. Search engine likes one-way links more.

From there you should begin working on natural back links because these will greatly benefit your web site since they are not forced, they are of higher quality and they are also more valuable to the Search Engines. These can actually be much easier to obtain but be sure to avoid link farms and spamming.

SEO : Include a robots.txt File

Thursday, June 26th, 2008

By far the easiest top 10 SEO tips you will ever do as it relates to search engine optimization is include a robots.txt file at the root of your website. Open up a text editor, such as Notepad and type “User-agent: *”. Then save the file as robots.txt and upload it to your root directory on your domain. This one command will tell any spider that hits your website to “please feel free to crawl every page of my website”.

Here’s one of my best top 10 SEO tips: Because the search engine analyzes everything it indexes to determine what your website is all about, it might be a good idea to block folders and files that have nothing to do with the content we want to be analyzed. You can disallow unrelated files to be read by adding “Disallow: /folder_name/” or “Disallow: /filename.html”. Here is an example of the robots.txt file on this site: