<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Search engine script &#187; file</title>
	<atom:link href="http://searchenginescript.biz/tag/file/feed/" rel="self" type="application/rss+xml" />
	<link>http://searchenginescript.biz</link>
	<description></description>
	<lastBuildDate>Tue, 22 May 2012 07:10:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Q&amp;AMP;A: WORD FREQUENCY PHP COUNT ON TEXT FILE?</title>
		<link>http://searchenginescript.biz/qa-word-frequency-php-count-on-text-file/</link>
		<comments>http://searchenginescript.biz/qa-word-frequency-php-count-on-text-file/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 20:11:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Count]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[frequency]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://searchenginescript.biz/qa-word-frequency-php-count-on-text-file/</guid>
		<description><![CDATA[Question by Jamie T: Word frequency PHP Count On Text File? Hi There, I&#8217;m running a search engine for media files and I am trying to script a box with the 50 most popular search terms. My search engine currently has a text file which the site writes to each time someone searches a term.]]></description>
			<content:encoded><![CDATA[<a target="_blank" href="http://your-own-search.com/"  target="_blank"><img src="http://searchenginescript.biz/se.jpg" alt="Search engine" border="0" /></a><p><strong><i>Question by Jamie T</i>: <br />Word frequency PHP Count On Text File?</strong><br />
Hi There,</p>
<p>I&#8217;m running a search engine for media files and I am trying to script a box with the 50 most popular search terms. My search engine currently has a text file which the site writes to each time someone searches a term. So all I need is a code to count the frequency of the terms in the text file and the 50 most popular need to be written (automatically) into the homepage of my site. Any help?</p>
<p><span id="more-1624"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by Paul W</i><br/>You might think about using a db table to do this more efficiently. Each time someone searches you check to see if the term is already in a table, in which case you increment a counter field. If it&#8217;s not there, you add it with the counter field set to initial value of 1. Use an index on the counter field and the time needed to get top 50 is greatly reduced because you will not be processing that text file.</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>What do you think? Answer below!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/qa-word-frequency-php-count-on-text-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;M USING A SCRIPT IN MY .HTACCESS FILE WHICH POINTS ALL LINKS FROM MY &#8220;NON-WWW&#8221; SITE TO MY WWW SITE.</title>
		<link>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site-2/</link>
		<comments>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site-2/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 20:09:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[from]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[nonwww]]></category>
		<category><![CDATA[points]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[using]]></category>

		<guid isPermaLink="false">http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site-2/</guid>
		<description><![CDATA[Question by GSG: I&#8217;m using a script in my .htaccess file which points all links from my &#8220;non-www&#8221; site to my www site. I&#8217;m using: # Start non-www page protection # RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$ 1 [L,R=301] # End non-www page protection # Is this the correct format,]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by GSG</i>: <br />I&#8217;m using a script in my .htaccess file which points all links from my &#8220;non-www&#8221; site to my www site.</strong><br />
I&#8217;m using:</p>
<p># Start non-www page protection #<br />
<IfModule mod_rewrite.c><br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC]<br />
RewriteRule ^(.*)$   http://www.mysite.com/$  1 [L,R=301]<br />
</IfModule><br />
# End non-www page protection #</p>
<p>Is this the correct format, and will all links now point just to the www version just from the time that I do this and upload the new .htaccess file, or will all links (and the page rank boost associated with it) become retrospective? Will I see a boost in rank immediately?</p>
<p>I&#8217;ve also heard that the search engines see a www.mysite.com version and a www.mysite.com/ version. Will my script take care of this as well, or do I have to add something else? (I cannot see whether the script does this or not as I am not a coder!)</p>
<p>For .co.uk domains do I just alternative .co.uk for .com in each case?</p>
<p><span id="more-1576"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by Civic SEO</i><br/>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^yourdomain\.co.uk$   [NC]<br />
RewriteRule ^(.*)$   http://www.yourdomain.co.uk/$  1 [R=301,L] </p>
<p>That above is the only code you need to redirect non-www to www in your .htaccess file. Yes you can change *.com to *.co.uk to get the same results, I made the code already valid for that. Change &#8220;yourdomain&#8221; to your domains name.</p>
<p>Yes, this will prevent duplicate content issues with search engines regarding two URLs having the same content. All non-www requests will be 301 redirected to their www counterpart. Results will take time, you might not even yeild none but a more proper internal link structure.</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>What do you think? Answer below!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CAN SEARCH ENGINE CRAWLERS STILL READ A DOMAINS ROBOTS.TXT FILE IF ITS PERMISSION IS SET TO 600?</title>
		<link>http://searchenginescript.biz/can-search-engine-crawlers-still-read-a-domains-robots-txt-file-if-its-permission-is-set-to-600/</link>
		<comments>http://searchenginescript.biz/can-search-engine-crawlers-still-read-a-domains-robots-txt-file-if-its-permission-is-set-to-600/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 06:11:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[crawlers]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[still]]></category>

		<guid isPermaLink="false">http://searchenginescript.biz/can-search-engine-crawlers-still-read-a-domains-robots-txt-file-if-its-permission-is-set-to-600/</guid>
		<description><![CDATA[Question by Omnis: Can search engine crawlers still read a domains robots.txt file if its permission is set to 600? The domain is running on a linux server, and what I am trying to accomplish is have a robots.txt file that search engine crawlers can read but the any user cannot access/view via the browser.]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by Omnis</i>: <br />Can search engine crawlers still read a domains robots.txt file if its permission is set to 600?</strong><br />
The domain is running on a linux server, and what I am trying to accomplish is have a robots.txt file that search engine crawlers can read but the any user cannot access/view via the browser.<br />
The whole point of using a robots.txt file is to hide folders/files from ending up in search results in google, yahoo, etc, which in turn the public can access. Even though it hides folders/files from search engine crawlers, the actual robots.txt file is still accessible through http://www.domain.com/robots.txt, which displays all the folders/files I am trying to hide, unless you can place robots.txt file in the actual directory your trying to hide? I know you can password directories and thats what I intend to do as well.</p>
<p><span id="more-1374"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by memetrader</i><br/>No they can&#8217;t.</p>
<p>You could however use something like RewriteCond to detect the user-agent string Mozilla and then rewrite robots.txt to some other file. You would have to exclude the two or three bots that include Mozilla in the user-agent string though. Simple enough but why would you want to do this?</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Know better? Leave your own answer in the comments!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/can-search-engine-crawlers-still-read-a-domains-robots-txt-file-if-its-permission-is-set-to-600/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP SCRIPT FOR MAKING A FILE SEARCH ENGINE?</title>
		<link>http://searchenginescript.biz/php-script-for-making-a-file-search-engine-2/</link>
		<comments>http://searchenginescript.biz/php-script-for-making-a-file-search-engine-2/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 17:16:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[making]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://searchenginescript.biz/php-script-for-making-a-file-search-engine-2/</guid>
		<description><![CDATA[Question by Plezops: PHP Script for making a file search engine? I need a PHP script that can search for a specific file (with a box to type in criteria) within a certain web directory (just one directory) on my server. Are there any FREE or cheap search engines that i can use and customize]]></description>
			<content:encoded><![CDATA[<p><strong><i>Question by Plezops</i>: <br />PHP Script for making a file search engine?</strong><br />
I need a PHP script that can search for a specific file (with a box to type in criteria)  within a certain web directory (just one directory) on my server. Are there any FREE or cheap search engines that i can use and customize to fit my needs?</p>
<p><span id="more-1145"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><i>Answer by Mardix</i><br/>I would advocate you to create a table in a database that might have the following fields :<br />
id (unique identifier, you might use it to update data),<br />
url (the location of the file on your server),<br />
title (to identify it),<br />
description (to describe what is in the file),<br />
keywords (words you might use to search the file)<br />
date (date of insertion).</p>
<p>And when you want to search for a file, the search will be made in the database. You will be able to see the details such as description etc.<br />
And when you click on it, you will be able to go to the file you want by using the field URL that is in the DB.</p>
<p>It will be faster this way. All you have to do in the DB is inserting new file, you do not have to make your script do too much for nothing. <img src='http://searchenginescript.biz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>Give your own answer to this question below!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/php-script-for-making-a-file-search-engine-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WORD FREQUENCY PHP COUNT ON TEXT FILE?</title>
		<link>http://searchenginescript.biz/word-frequency-php-count-on-text-file/</link>
		<comments>http://searchenginescript.biz/word-frequency-php-count-on-text-file/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 05:34:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Count]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[frequency]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi There, I&#8217;m running a search engine for media files and I am trying to script a box with the 50 most popular search terms. My search engine currently has a text file which the site writes to each time someone searches a term. So all I need is a code to count the frequency]]></description>
			<content:encoded><![CDATA[<p>Hi There,</p>
<p>I&#8217;m running a search engine for media files and I am trying to script a box with the 50 most popular search terms. My search engine currently has a text file which the site writes to each time someone searches a term. So all I need is a code to count the frequency of the terms in the text file and the 50 most popular need to be written (automatically) into the homepage of my site. Any help?</p>
<p><span id="more-713"></span><!-- pingbacker_start --><!-- pingbacker_end --></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/word-frequency-php-count-on-text-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;M USING A SCRIPT IN MY .HTACCESS FILE WHICH POINTS ALL LINKS FROM MY &#8220;NON-WWW&#8221; SITE TO MY WWW SITE.</title>
		<link>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/</link>
		<comments>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 06:13:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[from]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[nonwww]]></category>
		<category><![CDATA[points]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[using]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m using: # Start non-www page protection # RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] # End non-www page protection # Is this the correct format, and will all links now point just to the www version just from the time that I do this and upload the new .htaccess]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using:</p>
<p># Start non-www page protection #<br />
<IfModule mod_rewrite.c><br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC]<br />
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]<br />
</IfModule><br />
# End non-www page protection #</p>
<p>Is this the correct format, and will all links now point just to the www version just from the time that I do this and upload the new .htaccess file, or will all links (and the page rank boost associated with it) become retrospective? Will I see a boost in rank immediately?</p>
<p>I&#8217;ve also heard that the search engines see a www.mysite.com version and a www.mysite.com/ version. Will my script take care of this as well, or do I have to add something else? (I cannot see whether the script does this or not as I am not a coder!)</p>
<p>For .co.uk domains do I just alternative .co.uk for .com in each case?</p>
<p><span id="more-664"></span><!-- pingbacker_start --><!-- pingbacker_end --></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/im-using-a-script-in-my-htaccess-file-which-points-all-links-from-my-non-www-site-to-my-www-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOW CAN I CREATE A SEARCH ENGINE FOR MY HTML FILE?</title>
		<link>http://searchenginescript.biz/how-can-i-create-a-search-engine-for-my-html-file/</link>
		<comments>http://searchenginescript.biz/how-can-i-create-a-search-engine-for-my-html-file/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 06:42:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[.html]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[it is not linked to the internet]]></description>
			<content:encoded><![CDATA[<p>it is not linked to the internet</p>
<p><span id="more-507"></span><!-- pingbacker_start --><!-- pingbacker_end --></p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/how-can-i-create-a-search-engine-for-my-html-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP SCRIPT FOR MAKING A FILE SEARCH ENGINE?</title>
		<link>http://searchenginescript.biz/php-script-for-making-a-file-search-engine/</link>
		<comments>http://searchenginescript.biz/php-script-for-making-a-file-search-engine/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 19:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[making]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://searchenginescript.biz/php-script-for-making-a-file-search-engine/</guid>
		<description><![CDATA[I need a PHP script that can search for a specific file (with a box to type in criteria) within a certain web directory (just one directory) on my server. Are there any FREE or cheap search engines that i can use and customize to fit my needs?]]></description>
			<content:encoded><![CDATA[<p>I need a PHP script that can search for a specific file (with a box to type in criteria)  within a certain web directory (just one directory) on my server. Are there any FREE or cheap search engines that i can use and customize to fit my needs?</p>
]]></content:encoded>
			<wfw:commentRss>http://searchenginescript.biz/php-script-for-making-a-file-search-engine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

