<?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"
	>

<channel>
	<title>InderWeb Blog -Inder Singh Blog India PHP Drupal Wordpress Joomla Oscommerce Ajax CURL</title>
	<atom:link href="http://www.blog.inderweb.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.inderweb.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sun, 08 Feb 2009 04:11:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>connecting to Mysql using ODBC windows drivers within ASP code file</title>
		<link>http://www.blog.inderweb.com/archives/2008/11/11/connecting-to-mysql-using-odbc-windows-drivers-within-asp-code-file.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/11/11/connecting-to-mysql-using-odbc-windows-drivers-within-asp-code-file.html#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:26:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[API]]></category>

		<category><![CDATA[ASP Dot Net]]></category>

		<category><![CDATA[CMS(Content management System)]]></category>

		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[SQL Server]]></category>

		<category><![CDATA[asp]]></category>

		<category><![CDATA[Dot net]]></category>

		<category><![CDATA[driver]]></category>

		<category><![CDATA[mysql connector]]></category>

		<category><![CDATA[odbc]]></category>

		<guid isPermaLink="false">http://www.blog.inderweb.com/?p=69</guid>
		<description><![CDATA[Many times in ASP or dot net we may need to connect to a mysql database.For making a connection to mysql database we need to install mysql connector for windows which you can download from:-..]]></description>
			<content:encoded><![CDATA[<p>Many times in ASP or dot net we may need to connect to a mysql database.For making a connection to mysql database we need to install mysql connector for windows which you can download from:-<br />
<a href="http://dev.mysql.com/get/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi/from/pick?file=Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi&amp;mirror=pick&amp;file=Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi&amp;mirror=pick"><br />
http://dev.mysql.com/get/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi/from/pick?file=Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi&amp;mirror=pick&amp;file=Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.5-win32.msi&amp;mirror=pick</a></p>
<p>After downloading this connector just install it.and follow the instructions at mysql site:-<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-windows.html">http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-dsn-windows.html</a></p>
<p>So all is done&#8230;</p>
<p>enjoy mysql databases in ASP code file now <img src='http://www.blog.inderweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/11/11/connecting-to-mysql-using-odbc-windows-drivers-within-asp-code-file.html&title=connecting+to+Mysql+using+ODBC+windows+drivers+within+ASP+code+file&text=Many+times+in+ASP+or+dot+net+we+may+need+to+connect+to+a+mysql+database.For+making+a+connection+to+mysql+database+we+need+to+install+mysql+connector+for+windows+which+you+can+download+from%3A-+...&tags=mysql" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/11/11/connecting-to-mysql-using-odbc-windows-drivers-within-asp-code-file.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>log in mysql from command prompt windows to access database and change passwords grant privialiges Create users</title>
		<link>http://www.blog.inderweb.com/archives/2008/11/07/log-in-mysql-from-command-prompt-windows-to-access-database-and-change-passwords-grant-privialiges-create-users.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/11/07/log-in-mysql-from-command-prompt-windows-to-access-database-and-change-passwords-grant-privialiges-create-users.html#comments</comments>
		<pubDate>Fri, 07 Nov 2008 17:48:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ASP Dot Net]]></category>

		<category><![CDATA[Drupal]]></category>

		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[change]]></category>

		<category><![CDATA[command]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[root]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.blog.inderweb.com/?p=66</guid>
		<description><![CDATA[First of all you should know  how you can add users in mysql databases:-

    * Using CREATE USER and/or GRANT commands
    * Inserting a new record into the mysql.user table

First let's see how to use the CREATE USER command:-

     CREATE USER user [IDENTIFIED BY [PASSWORD] 'password']

e.g   

mysql>CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';


]]></description>
			<content:encoded><![CDATA[<p>First of all you should know  how you can add users in mysql databases:-</p>
<ul>
<li>Using CREATE USER and/or GRANT commands</li>
<li>Inserting a new record into the mysql.user table</li>
</ul>
<p>First let&#8217;s see how to use the CREATE USER command:-</p>
<pre class="programlisting">     CREATE USER <em>user </em>[IDENTIFIED BY [PASSWORD] '<em>password</em>']</pre>
<p>e.g</p>
<pre>mysql&gt;GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO 'myuser'@'localhost';

or
mysql&gt;GRANT ALL ON *.* TO 'myuser'@'localhost';</pre>
<pre class="mysql"><span class="kw1"><strong><strong>
</strong></strong></span><strong></strong></pre>
<pre class="mysql"><span class="kw1">Once user added in databases you need to provide privileges to that user.You can use like:-
<pre>mysql&gt;CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';</pre>
<p></span><br />
<strong>Another way for creating users in mysql is just enter directoly in user table of</p>
<p>mysql and make few entries:-</strong></p>
<p><strong></strong></pre>
<pre class="programlisting">mysql&gt; <strong class="userinput"><code>INSERT INTO user</code></strong> <strong class="userinput"><code>VALUES('localhost','monty',PASSWORD('some_pass'),</code></strong>
     <strong class="userinput"><code>'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');</code></strong>
or
mysql&gt; <strong class="userinput"><code>INSERT INTO user (Host,User,Password)</code></strong> <strong class="userinput"><code>VALUES('localhost','usename','pass');</code></strong>
mysql&gt; <strong class="userinput"><code>FLUSH PRIVILEGES;</code></strong></pre>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/11/07/log-in-mysql-from-command-prompt-windows-to-access-database-and-change-passwords-grant-privialiges-create-users.html&title=log+in+mysql+from+command+prompt+windows+to+access+database+and+change+passwords+grant+privialiges+Create+users&text=First+of+all+you+should+know%26%23160%3B+how+you+can+add+users+in+mysql+databases%3A-++Using+CREATE+USER+and%2For+GRANT+commands+Inserting+a+new+record+into+the+mysql.user+table++First+let%26%238217%3Bs+see+how+to...&tags=mysql%2C+localhost" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/11/07/log-in-mysql-from-command-prompt-windows-to-access-database-and-change-passwords-grant-privialiges-create-users.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>mod_rewrite enabling url reqriting on apache and iss server windows and linux</title>
		<link>http://www.blog.inderweb.com/archives/2008/11/06/mod_rewrite-enabling-url-reqriting-on-apache-and-iss-server-windows-and-linux.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/11/06/mod_rewrite-enabling-url-reqriting-on-apache-and-iss-server-windows-and-linux.html#comments</comments>
		<pubDate>Thu, 06 Nov 2008 06:22:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Drupal]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[OUR web]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[SQL Server]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[iis]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[mod_rewrite]]></category>

		<category><![CDATA[rewriting]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.blog.inderweb.com/?p=62</guid>
		<description><![CDATA[URL reqriting is Simple Rewriting Your URLS (links) Also Redirecting Them To Known URLS.e.g you'll make the link : view_my_profile.html --> Is Redirected to function.php?op=3
so instead of the link "function.php?op=3" Which isn't enough describing itself we'll make the link "view_my_profile.html" Which is very describtive.Why using mod_reqrite?. Now see if your site has more than 10,000 Links (Dynamic Website) , do you think we would make 10,000 html files ??

=>Of course Not , and here's the Use Of Mod-Rewrite. We can achive dynamic pages from code and rewrite their URL using this module.

=>well simply This is Very very useful for search Engines to correctly index Your website and gather keywords, we'll talk about this in details in "Search Engine Optimization Tips"

]]></description>
			<content:encoded><![CDATA[<p>URL reqriting is Simple Rewriting Your URLS (links) Also Redirecting Them To Known URLS.</p>
<p>e.g</p>
<p>you&#8217;ll make the link : view_my_profile.html &#8211;&gt; Is Redirected to function.php?op=3<br />
so</p>
<p>instead of the link &#8220;function.php?op=3&#8243; Which isn&#8217;t enough describing itself we&#8217;ll make the link &#8220;view_my_profile.html&#8221; Which is very describtive.</p>
<p>Why using mod_reqrite?. Now see if your site has more than 10,000 Links (Dynamic Website) , do you think we would make 10,000 html files ??</p>
<p>=&gt;Of course Not , and here&#8217;s the Use Of Mod-Rewrite. We can achive dynamic pages from code and rewrite their URL using this module.</p>
<p>=&gt;well simply This is Very very useful for search Engines to correctly index Your website and gather keywords, we&#8217;ll talk about this in details in &#8220;Search Engine Optimization Tips&#8221;</p>
<p><strong>How to Enable Mod_rewrite:-</strong><br />
how to configure mod_reqrite to work  It Depends On Your Operating System (Server&#8217;s Software) .</p>
<ul>
<li> For Linux It&#8217;s Supported By Default (in Most Of The Servers) - ModRewrite Is An Apache Module You Don&#8217;t Have To Setup Anything And We wont Go On How To Install The Mod-Rewrite On Your Linux Server Cause It&#8217;s little Advanced And Complicated.However you can have mod_rewrite module loaded in apache.</li>
<li>For windows : A lot of developers think that it&#8217;s not supported by windows server but infact it is.I&#8217;ll Describe How You Can Set it Up On windows (Assuming That You Have IIS installed On Your PC/Server).But If You Haven&#8217;t Then You Can Refer To This Post: showthread.php?t=1 (http://www.phpegypt.net/forum/showthread.php?t=1)
<ul>
<li><strong>For Windows XP / 2003 Server</strong>
<ul>
<li>You Must Download The Files From ( http://www.iismods.com/download.htm ) also I Attached It to This Post .. [It's Free Released under the GNU General Public License (v2)](May be this link is not working sometimes.)</li>
<li>Place It Somewhere on your H.D.D let&#8217;s Say &#8220;c:\mod_rewrite&#8221;</li>
<li>Goto Control Panel -&gt; Administrative Tools -&gt; Internet Information Services</li>
<li>You&#8217;ll Find Your Computer name And bet ween 2 Brackets (localhost) Click it -&gt; open &#8220;Web Sites&#8221; -&gt; &#8220;Default Website&#8221;.</li>
<li>Right click on &#8220;Default Website&#8221; Choose &#8220;properties&#8221;.</li>
<li>You&#8217;ll Find Many Tabs At The Top Click &#8220;ISAPI Filters&#8221;.</li>
<li>Click Add, Enter &#8220;MOD_REWRITE&#8221; As The filert name And For The executable Click &#8220;Browse&#8221; And Choose The file &#8220;c:\mod_rewrite\mod_rewrite.dll&#8221; or just choose The file &#8220;mod_rewrite.dll&#8221; Which You Extracted In The Desired Folder.</li>
<li>Now Click &#8220;Ok&#8221; ,Mod Rewrite Should Appear In The List now With Empty Status , and Filername = &#8220;MOD_REWRITE&#8221; and priority *unknown*..</li>
<li>Now You&#8217;re Ready To Run The MOD_REWRITE, Click Start-&gt;Run</li>
<li>Enter the following &#8220;<strong>iisreset</strong>&#8221; and click O.K It&#8217;ll Perform 4 Quick Operations <strong>(restart the iis server) </strong>And The window Will Close After That You&#8217;re Ready To Test Your ModRewriteNow Assuming That Everything Goes Right.</li>
</ul>
</li>
</ul>
</li>
<li><strong>Apache/Wamp PHP based:-</strong>
<ul>
<li>For apache windows WAMP server you can turn the mod_rewrite extension on by
<ul>
<li>Right clicking on wamp icon click on mod_rewrite.</li>
<li>Restart wamp server.</li>
</ul>
</li>
</ul>
</li>
<li><strong>Apache Linux/Windows Without WAMP:-</strong>
<ul>
<li>
<blockquote><p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong>RewriteRule <span style="color: darkred;">Source</span> <span style="color: blue;">Destintion</span> <span style="color: darkorchid;"><em>[options]</em></span></strong></span></span></span></p></blockquote>
<p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: darkorchid;"><span style="color: black;">Description:</span></span></strong></span></span></span></p>
<blockquote><p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="text-decoration: underline;">RewriteRule:</span> <span style="color: black;">Syntax Keyword That Must Exist Before Any Rule</span></strong></span></span></span></p></blockquote>
<blockquote><p><span style="text-decoration: underline;"><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: darkred;">Source: </span></strong></span></span></span></span><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: black;">The Source Link That Will Appear In Browser &amp; For Users</span></strong></span></span></span></p></blockquote>
<blockquote><p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: blue;"><span style="text-decoration: underline;">Destintion:</span> </span></strong></span></span></span><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: black;">The Translated (Replaced) Link That Will Appear To The Server.</span></strong></span></span></span></p></blockquote>
<blockquote><p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: darkorchid;"><em>[options]: </em></span></strong></span></span></span><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: black;">Some Extra Options That Can Be Left Empty </span></strong></span></span></span></p></blockquote>
<blockquote><p><strong><span style="color: seagreen;">e.g. <em><span style="color: darkorchid;">[L]</span></em> To make This Rule The Last And Server Shouldn&#8217;t Continue Fetching Rules After it . . . And many Other Options That Will Come Later</span></strong></p></blockquote>
<p><span style="color: seagreen;"><span style="color: black;"><span style="color: green;"><strong><span style="color: darkorchid;"><span style="color: black;">Now Let&#8217;s Make Our First Example:</span></span></strong></span></span></span></p>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^helloworld.html index.php?module=hello</strong></span></p></blockquote>
</li>
<li>
<blockquote><p><strong>Now You Can Play Around With URLs Like :</strong></p></blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^contactus.html index.php?oper=contactus</strong></span></p></blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^aboutus.html index.php?mod=about</strong></span></p></blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^login.html index.php?op=login</strong></span></p></blockquote>
<blockquote><p><span style="color: green;"><strong>&#8230;&#8230;</strong></span></p></blockquote>
<blockquote><p><strong><span style="color: green;">etc.</span></strong></p></blockquote>
<blockquote><p><strong><span style="color: green;"><span style="color: red;">* Just Remember</span></span></strong></p></blockquote>
<blockquote><p><strong><span style="color: green;"><span style="color: black;">Your .htaccess (apache) should be looking like this : </span></span></strong></p></blockquote>
<blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteEngine On</strong></span></p></blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^login.html index.php?do=login</strong></span></p></blockquote>
</blockquote>
<blockquote><p><strong>Or your mod_rewrite.ini (IIS with mod_rewrite FILTER):</strong></p></blockquote>
<blockquote><p><strong><span style="color: green;">Debug 0 # This Line Isn&#8217;t Important </span></strong></p></blockquote>
<blockquote><p><strong><span style="color: green;">Reload 500 </span></strong><strong><span style="color: green;"># This Line Isn&#8217;t Important </span></strong></p></blockquote>
<blockquote><p><span style="color: green;"><strong>RewriteRule ^login.html index.php?do=login</strong></span></p></blockquote>
</li>
</ul>
</li>
</ul>
<p>=&gt;In Windows Your Rules Will be Written In The file &#8220;c:\mod_rewrite\mod_rewrite.ini&#8221; And In Linux (Apache) Rules Will be written in &#8220;.htaccess&#8221; (A File That Will/May be located on the root of your website).</p>
<p>So Configuring PHP on iss server is simple..!</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/11/06/mod_rewrite-enabling-url-reqriting-on-apache-and-iss-server-windows-and-linux.html&title=mod_rewrite+enabling+url+reqriting+on+apache+and+iss+server+windows+and+linux&text=URL+reqriting+is+Simple+Rewriting+Your+URLS+%28links%29+Also+Redirecting+Them+To+Known+URLS.+e.g+you%26%238217%3Bll+make+the+link+%3A+view_my_profile.html+%26%238211%3B%26gt%3B+Is+Redirected+to+function.php%3Fop%3D3+so...&tags=html+index%2C+the+link%2C+server%2C+mod_rewrite%2C+click%2C+rewriterule%2C+windows%2C+apache%2C+index%2C+website" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/11/06/mod_rewrite-enabling-url-reqriting-on-apache-and-iss-server-windows-and-linux.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Firefox EC2 UI Elasticfox plugin extension for Managing Amazon EC2 Images</title>
		<link>http://www.blog.inderweb.com/archives/2008/11/04/firefox-ec2-ui-elasticfox-plugin-extension-for-managing-amazon-ec2-images.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/11/04/firefox-ec2-ui-elasticfox-plugin-extension-for-managing-amazon-ec2-images.html#comments</comments>
		<pubDate>Mon, 03 Nov 2008 19:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[API]]></category>

		<category><![CDATA[EC2]]></category>

		<category><![CDATA[elastifox]]></category>

		<category><![CDATA[extension]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://www.blog.inderweb.com/?p=59</guid>
		<description><![CDATA[Firefox EC2 UI for Managing Amazon EC2 Images
Firefox provides easy plugin for managing EC2 images in a GUI method.You can download elastiic fox extension from firefox site.
The instructions for creating an Amazon EC2 image walk through the use of command line tools which is really great. Learning how to do it this way is important [...]]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title">Firefox EC2 UI for Managing Amazon EC2 Images</h3>
<p>Firefox provides easy plugin for managing EC2 images in a GUI method.You can download elastiic fox extension from firefox site.<br />
The instructions for creating an Amazon EC2 image walk through the use of command line tools which is really great. Learning how to do it this way is important because it helps you understand more about what you&#8217;re actually doing. But once you understand it all, it can be a headache to have to remember all the commands and options because they&#8217;re all rather similar. So quickly after learning all about Amazon EC2, my buddy Hiram told me about the Firefox  Extension for Amazon EC2.</p>
<p>This Firefox extension is such an incredible time saver for most of the tasks of managing images. Starting and stopping images, grabbing the public DNS name of an image, etc. are as easy as clicking a button. After you&#8217;ve taken the time to understand how to create and work with images from the command line, it is definitely worth using this extension.</p>
<h2>Prerequisites</h2>
<ul>
<li>This extension requires Mozilla Firefox version 1.5.0 or later.</li>
</ul>
<h2>Running the Extension</h2>
<p>Install the extension  by clicking on the following link with Mozilla Firefox:</p>
<p><a href="http://s3.amazonaws.com/ec2-downloads/elasticfox.xpi">http://s3.amazonaws.com/ec2-downloads/elasticfox.xpi</a></p>
<p>Firefox guides you through the installation process. You may need to configure Firefox to install software from this domain.</p>
<h2>Documentation</h2>
<p>Read the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1797">ElasticFox Getting Started Guide</a> for information on using the extension.</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/11/04/firefox-ec2-ui-elasticfox-plugin-extension-for-managing-amazon-ec2-images.html&title=Firefox+EC2+UI+Elasticfox+plugin+extension+for+Managing+Amazon+EC2+Images&text=Firefox+EC2+UI+for+Managing+Amazon+EC2+Images+Firefox+provides+easy+plugin+for+managing+EC2+images+in+a+GUI+method.You+can+download+elastiic+fox+extension+from+firefox+site.&tags=firefox%2C+extension%2C+images" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/11/04/firefox-ec2-ui-elasticfox-plugin-extension-for-managing-amazon-ec2-images.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Getting fields from mysql table using code file drupal,mysql,php</title>
		<link>http://www.blog.inderweb.com/archives/2008/10/27/getting-fields-from-mysql-table-using-code-file-drupalmysqlphp.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/10/27/getting-fields-from-mysql-table-using-code-file-drupalmysqlphp.html#comments</comments>
		<pubDate>Mon, 27 Oct 2008 09:07:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CMS(Content management System)]]></category>

		<category><![CDATA[Drupal]]></category>

		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Programming Technologies]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/?p=38</guid>
		<description><![CDATA[Many times it is needed to get the structure of table in PHP file or drupal module.There may be conditions that you dont have got admin user name and passwords for cpanel/phpmyadmin.In such cases you must have idea how to know the structure using a small PHP code.you can get connection info for mysql from [...]]]></description>
			<content:encoded><![CDATA[<p>Many times it is needed to get the structure of table in PHP file or drupal module.There may be conditions that you dont have got admin user name and passwords for cpanel/phpmyadmin.In such cases you must have idea how to know the structure using a small PHP code.you can get connection info for mysql from code files or if you are using ftp it is sure that u can run a SQl query from code file.So below is the simple script for getting table info</p>
<h2>Simple PHP Mysql</h2>
<p><code><br />
$table_name="node";<br />
$sql=sprintf("SHOW COLUMNS FROM %s",$table_name);<br />
$$rs=mysql_query($sql);<br />
while($col=mysql_fetch_object($rs))<br />
{<br />
  print_r($col);<br />
}<br />
</code></p>
<h2>Drupal And Mysql</h2>
<p><code></p>
<p>$table_name="node";<br />
$sql=sprintf("SHOW COLUMNS FROM %s",$table_name);<br />
$$rs=db_query($sql);<br />
while($col=db_fetch_object($rs))<br />
{<br />
  print_r($col);<br />
}<br />
</code><br />
Once you have checked structure you must be able now to add alter structure of table using same code method:-<br />
<code><br />
mysql_query("ALTER TABLE user_info ADD user_coupon varchar2(50)");<br />
</code></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/10/27/getting-fields-from-mysql-table-using-code-file-drupalmysqlphp.html&title=Getting+fields+from+mysql+table+using+code+file+drupal%2Cmysql%2Cphp&text=Many+times+it+is+needed+to+get+the+structure+of+table+in+PHP+file+or+drupal+module.There+may+be+conditions+that+you+dont+have+got+admin+user+name+and+passwords+for+cpanel%2Fphpmyadmin.In+such+cases+you...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/10/27/getting-fields-from-mysql-table-using-code-file-drupalmysqlphp.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Import module definition blank page error solution DotNetNuke</title>
		<link>http://www.blog.inderweb.com/archives/2008/08/27/import-module-definition-blank-page-error-solution-dotnetnuke.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/08/27/import-module-definition-blank-page-error-solution-dotnetnuke.html#comments</comments>
		<pubDate>Wed, 27 Aug 2008 16:30:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ASP Dot Net]]></category>

		<category><![CDATA[Dot Net Nuke(DNN)]]></category>

		<category><![CDATA[Programming Technologies]]></category>

		<category><![CDATA[SQL Server]]></category>

		<category><![CDATA[dnn]]></category>

		<category><![CDATA[dnn Module]]></category>

		<category><![CDATA[Dot net nuke]]></category>

		<category><![CDATA[dotnetnuke]]></category>

		<category><![CDATA[Module]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/?p=37</guid>
		<description><![CDATA[In Dotnetnuke many time you can get a blank page on Import module definition.For one of my dnn(dot net nuke) site i did Host=>Module definition=>Import module definition and got a blank page.I did a google and found solution applied that and now making that code available here.For making this thing to work you ned to get few SQL commands run from host sql window.]]></description>
			<content:encoded><![CDATA[<p>In Dotnetnuke many time you can get a blank page on Import module definition.For one of my dnn(dot net nuke) site i did Host=&gt;Module definition=&gt;Import module definition and got a blank page.I did a google and found solution applied that and now making that code available here.For making this thing to work you ned to get few SQL commands run from host sql window.<br />
<!--adsensestart--><br />
<span id="dnn_ctr479_MainView_ViewEntry_lblEntry">So, the solution is to run SQL script with Run as Script option, in Host &gt; SQL :</span></p>
<p>So, the solution is to run SQL script with Run as Script option, in Host &gt; SQL :<br />
<code><br />
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'{databaseOwner}[{objectQualifier}GetUserRoles]&#8216;) AND OBJECTPROPERTY(id, N&#8217;IsPROCEDURE&#8217;) = 1)<br />
DROP PROCEDURE {databaseOwner}{objectQualifier}GetUserRoles<br />
GO<br />
</code><br />
<code><br />
CREATE PROCEDURE {databaseOwner}{objectQualifier}GetUserRoles<br />
@PortalId  int,<br />
@UserId    int<br />
AS<br />
SELECT<br />
R.*,<br />
UR.UserRoleID,<br />
U.UserID,<br />
U.DisplayName,<br />
U.Email,<br />
UR.EffectiveDate,<br />
UR.ExpiryDate,<br />
UR.IsTrialUsed<br />
FROM {databaseOwner}{objectQualifier}UserRoles UR<br />
INNER JOIN {databaseOwner}{objectQualifier}Users U ON UR.UserID = U.UserID<br />
INNER JOIN {databaseOwner}{objectQualifier}Roles R ON UR.RoleID = R.RoleID<br />
WHERE<br />
U.UserID = @UserId AND R.PortalID = @PortalId</p>
<p>GO</p>
<p>declare @ModuleDefID int</p>
<p>select @ModuleDefID = ModuleDefID<br />
from   {databaseOwner}{objectQualifier}ModuleDefinitions<br />
where  FriendlyName = 'Module Definitions'<br />
IF NOT EXISTS (SELECT ModuleControlID FROM {databaseOwner}{objectQualifier}ModuleControls WHERE ModuleDefID = @ModuleDefID AND ControlKey = N'Import')<br />
BEGIN<br />
insert into {databaseOwner}{objectQualifier}ModuleControls ( ModuleDefID, ControlKey, ControlTitle, ControlSrc, IconFile, ControlType, ViewOrder, HelpUrl, SupportsPartialRendering )<br />
values ( @ModuleDefID, 'Import', 'Import Module Definition', 'Admin/ModuleDefinitions/ImportModuleDefinition.ascx', NULL, 3, NULL, NULL, 0 )<br />
END<br />
</code><br />
<!--adsensestart--></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/08/27/import-module-definition-blank-page-error-solution-dotnetnuke.html&title=Import+module+definition+blank+page+error+solution+DotNetNuke&text=In+Dotnetnuke+many+time+you+can+get+a+blank+page+on+Import+module+definition.For+one+of+my+dnn%28dot+net+nuke%29+site+i+did+Host%3D%26gt%3BModule+definition%3D%26gt%3BImport+module+definition+and+got+a+blank+page.I...&tags=host+sql%2C+module%2C+import" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/08/27/import-module-definition-blank-page-error-solution-dotnetnuke.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Node List Javascript &#124; Traverse nodes Dom Elements In javascript</title>
		<link>http://www.blog.inderweb.com/archives/2008/08/19/node-list-javascript-traverse-nodes-dom-elements-in-javascript.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/08/19/node-list-javascript-traverse-nodes-dom-elements-in-javascript.html#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:24:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[OUR web]]></category>

		<category><![CDATA[DOM]]></category>

		<category><![CDATA[java script]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[node]]></category>

		<category><![CDATA[node list]]></category>

		<category><![CDATA[nodelist]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/archives/2008/08/19/node-list-javascript-traverse-nodes-dom-elements-in-javascript.html</guid>
		<description><![CDATA[ The NodeList object represents a live collection of Node objects. This means that any alterations to the number or properties of nodes is immediately reflected in the list. This list permits indexed access to individual nodes as well as iteration through the collection. To demonstrate this Object we shall use the following simple XML file 'library.xml'.
]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial,helvetica; font-size: x-small;"> The <strong>NodeList</strong> object represents a live collection of Node objects. This means that any alterations to the number or properties of nodes is immediately reflected in the list. This list permits indexed access to individual nodes as well as iteration through the collection. To demonstrate this Object we shall use the following simple XML file &#8216;library.xml&#8217;.</span></p>
<p class="CODE"><span style="font-family: arial,helvetica; font-size: x-small;">&lt;<span style="color: brown;">library</span>&gt;<br />
&lt;<span style="color: brown;">book</span>&gt;<br />
&lt;<span style="color: brown;">category</span>&gt;<span style="font-weight: bold; color: black;">fiction</span>&lt;/<span style="color: brown;">category</span>&gt;<br />
&lt;<span style="color: brown;">title</span>&gt;<span style="font-weight: bold; color: black;">Eyeless in Gaza</span>&lt;/<span style="color: brown;">title</span>&gt;<br />
&lt;<span style="color: brown;">author</span>&gt;<span style="font-weight: bold; color: black;">Aldous Huxley</span>&lt;/<span style="color: brown;">author</span>&gt;<br />
&lt;/<span style="color: brown;">book</span>&gt;<br />
&lt;<span style="color: brown;">book</span>&gt;<br />
&lt;<span style="color: brown;">category</span>&gt;<span style="font-weight: bold; color: black;">classics</span>&lt;/<span style="color: brown;">category</span>&gt;<br />
&lt;<span style="color: brown;">title</span>&gt;<span style="font-weight: bold; color: black;">John Barleycorn</span>&lt;/<span style="color: brown;">title</span>&gt;<br />
&lt;<span style="color: brown;">author</span>&gt;<span style="font-weight: bold; color: black;">Jack London</span>&lt;/<span style="color: brown;">author</span>&gt;<br />
&lt;/<span style="color: brown;">book</span>&gt;<br />
&lt;/<span style="color: brown;">library</span>&gt;</span></p>
<p><span style="font-family: arial,helvetica; font-size: x-small;">We shall now create a <strong>NodeList</strong> object of all the &#8216;title&#8217;  elements using the document&#8217;s  getElementsByTagName method. The number of nodes in the collection is determined using the <strong>length</strong> property, and their  nodeValue properties are displayed by accessing each in turn through the <strong>item</strong> method.</span></p>
<p><span style="font-family: arial,helvetica; font-size: x-small;">Code (JavaScript):<br />
<span class="CODE">var xml_doc = new ActiveXObject(&#8221;Microsoft.XMLDOM&#8221;);<br />
xml_doc.async = false;<br />
xml_doc.load(&#8221;library.xml&#8221;);</span></span></p>
<p>var title_nodes = xml_doc.getElementsByTagName(&#8221;title&#8221;);<br />
var n_titles = title_nodes.length<br />
for (i = 0; i &lt; n_titles; i++)<br />
document.write(title_nodes.item(i).text + &#8220;&lt;br&gt;&#8221;);</p>
<p><span style="font-family: arial,helvetica; font-size: x-small;">Output:<br />
<span class="OUTPUT">Eyeless in Gaza<br />
John Barleycorn</span></span></p>
<p><span style="font-family: arial,helvetica; font-size: x-small;">There are also Microsoft extensions for this object.<br />
<span class="PROPERTY"><strong>PROPERTIES</strong></span></span></p>
<p><strong><a name="length">length</a> Property</strong><br />
This property returns the number of items in the <strong>NodeList</strong> collection.</p>
<p>Syntax: <strong><span class="OBJECT">NodeList.</span><span class="PROPERTY">length</span></strong></p>
<p><span class="METHOD"><strong>METHODS</strong></span></p>
<p><a name="item"><strong>item Method</strong></a><br />
This method returns the item at the specified index of the Node collection. These are numbered from 0 to one less than the value of the <strong>length</strong> property. Using an invalid index returns <strong>null</strong>.</p>
<p>Syntax: <strong><span class="OBJECT">NodeList.</span><span class="METHOD">item</span><span class="ARGUMENT">(index)</span></strong></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/08/19/node-list-javascript-traverse-nodes-dom-elements-in-javascript.html&title=Node+List+Javascript+%7C+Traverse+nodes+Dom+Elements+In+javascript&text=+The+NodeList+object+represents+a+live+collection+of+Node+objects.+This+means+that+any+alterations+to+the+number+or+properties+of+nodes+is+immediately+reflected+in+the+list.&tags=length%2C+title%2C+collection%2C+nodelist" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/08/19/node-list-javascript-traverse-nodes-dom-elements-in-javascript.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Intro to Flashvars &#124; Passing variables to flash actionscript from the html embed &#124; Tutorial &#124; passing dynamic variable from php file</title>
		<link>http://www.blog.inderweb.com/archives/2008/08/07/intro-to-flashvars-passing-variables-to-flash-actionscript-from-the-html-embed-tutorial-passing-dynamic-variable-from-php-file.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/08/07/intro-to-flashvars-passing-variables-to-flash-actionscript-from-the-html-embed-tutorial-passing-dynamic-variable-from-php-file.html#comments</comments>
		<pubDate>Thu, 07 Aug 2008 12:51:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[flash actionscript]]></category>

		<category><![CDATA[flash and xm]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/?p=35</guid>
		<description><![CDATA[The property “FlashVars” can be used to import root level variables to the flash movie or swf. The flashvars propery is used in codes for embedding flash in the html page. The string of variables passed in as flashvars, will be imported into the top level of the movie when it is first instantiated. Variables are created before the first frame of the SWF is played. The format of the string is a set of name=value combinations separated by ampersand (&#038;) symbols. Here's some sample embed codes, including object and embed tags:

]]></description>
			<content:encoded><![CDATA[<p><strong>Overview</strong></p>
<p>The property “FlashVars” can be used to import root level variables to the flash movie or swf. The flashvars propery is used in codes for embedding flash in the html page. The string of variables passed in as flashvars, will be imported into the top level of the movie when it is first instantiated. Variables are created before the first frame of the SWF is played. The format of the string is a set of name=value combinations separated by ampersand (&amp;) symbols.  Here&#8217;s some sample embed codes, including object and embed tags:</p>
<p><strong></strong> <em><strong>&lt;object width=&#8221;540&#8243; height=&#8221;240&#8243; title=&#8221;sample&#8221;&gt; &lt;param name=&#8221;movie&#8221; value=&#8221;flashvarsTutorial.swf&#8221; /&gt; &lt;param name=&#8221;flashvars&#8221; value=&#8221;var1=here&amp;var2=are&amp;var3=my&amp;var4=flashvars&#8221; /&gt; &lt;embed src=&#8221;flashvarsTutorial.swf&#8221; flashvars=&#8221;var1=here&amp;var2=are&amp;var3=my&amp;var4=flashvars&#8221; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;540&#8243; height=&#8221;240&#8243; &gt;&lt;/embed&gt; &lt;/object&gt;</strong></em> <strong>Actionscript using flashvars</strong> :- <strong><em>txt1.text=var1;</em></strong></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/08/07/intro-to-flashvars-passing-variables-to-flash-actionscript-from-the-html-embed-tutorial-passing-dynamic-variable-from-php-file.html&title=Intro+to+Flashvars+%7C+Passing+variables+to+flash+actionscript+from+the+html+embed+%7C+Tutorial+%7C+passing+dynamic+variable+from+php+file&text=Overview+The+property+%26%238220%3BFlashVars%26%238221%3B+can+be+used+to+import+root+level+variables+to+the+flash+movie+or+swf.+The+flashvars+propery+is+used+in+codes+for+embedding+flash+in+the+html+page.&tags=flashvars" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/08/07/intro-to-flashvars-passing-variables-to-flash-actionscript-from-the-html-embed-tutorial-passing-dynamic-variable-from-php-file.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Changing the DotNetNuke Page Title and Using dnn page titles</title>
		<link>http://www.blog.inderweb.com/archives/2008/07/18/changing-the-dotnetnuke-page-title-and-using-dnn-page-titles.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/07/18/changing-the-dotnetnuke-page-title-and-using-dnn-page-titles.html#comments</comments>
		<pubDate>Fri, 18 Jul 2008 06:14:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ASP Dot Net]]></category>

		<category><![CDATA[CMS(Content management System)]]></category>

		<category><![CDATA[Dnn Tricks]]></category>

		<category><![CDATA[Dot Net Nuke(DNN)]]></category>

		<category><![CDATA[SEO]]></category>

		<category><![CDATA[changing page title]]></category>

		<category><![CDATA[dnn.dotnetnuke]]></category>

		<category><![CDATA[page]]></category>

		<category><![CDATA[page title]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/?p=32</guid>
		<description><![CDATA[Many times in our asp dot net application we need to manipulate page titles and keywords.E.g. You may like to change page title Or to get page title.Sometimes you will need to display as content header in content area of page.In a typical .Net web application you can change the title of a page on the fly by accessing the Page object’s Title property.

Page.Title = "My Custom Page Title";

But from within your DotNetNuke module code you do it in a slightly different way. You first type-cast the Page object into a DotNetNuke.Framework.CDefault variable. Then you read and write the Title member on the CDefault object:....]]></description>
			<content:encoded><![CDATA[<p>In a typical .Net web application you can change the title of a page on the fly by accessing the Page object’s Title property.</p>
<p><strong>protected void Page_Load(System.Object sender,System.EventArgs e)<br />
{<br />
Page.Title = &#8220;My Custom Page Title&#8221;;<br />
}</strong><br />
But from within your DotNetNuke module code you do it in a slightly different way. You first type-cast the Page object into a DotNetNuke.Framework.CDefault variable. Then you read and write the Title member on the CDefault object:<br />
<strong><br />
</strong><strong>protected void Page_Load(System.Object sender,System.EventArgs e)</strong><strong><br />
</strong><strong>{</strong><strong><br />
</strong><strong> DotNetNuke.Framework.CDefault pageVar</strong><strong>= (DotNetNuke.Framework.CDefault)Page;</strong><strong><br />
</strong><strong> </strong><strong>cd.Title</strong><strong>.Title = &#8220;My Custom Page Title&#8221;;//Set page title</strong></p>
<p><strong> titleDiv.innerHTML=&#8221;&lt;b&gt;&#8221;+cd.Title.Title.toString()+&#8221;&lt;/b&gt;&#8221;;//Display Title of page In a Div at Page</strong><strong><br />
</strong><strong> }</strong><strong><br />
</strong><strong><br />
</strong>If you compare Page.Title to CDefault.Title you will notice that Page.Title is a public property and CDefault.Title is a public member and you can use this for getting and setting page titles.</p>
<p>Let’s take a look under the hood of the framework. Inside the CDefault source you will find this code:</p>
<p><strong>Public Class CDefault</p>
<p>Inherits DotNetNuke.Framework.PageBase<br />
Public Comment As String = &#8220;&#8221;<br />
Public Description As String = &#8220;&#8221;<br />
Public KeyWords As String = &#8220;&#8221;<br />
Public Copyright As String = &#8220;&#8221;<br />
Public Generator As String = &#8220;&#8221;<br />
Public Author As String = &#8220;&#8221;<br />
Public Shadows Title As String = &#8220;&#8221;</strong></p>
<p>You will notice that CDefault inherits from DotNetNuke.Framework.PageBase. Let’s take one step further and look at what the PageBase code looks like:</p>
<p><strong>Public MustInherit Class PageBase Inherits System.Web.UI.Page</strong></p>
<p>You can see that PageBase inherits from the System.Web.UI.Page class. What is going on is that CDefault is a descendant of PageBase, and inherently a descendant of the Page class as well. Thus it has all the members and method of those two classes.</p>
<p>However, CDefault defines its own public string called Title which “shadows” the Page.Title property. This essentially hides the Page.Title from Visual Studio’s IntelliSense when you’re viewing the properties and methods of a CDefault object.</p>
<p><strong>Public Shadows Title As String = &#8220;&#8221;</strong></p>
<p>So when you set CDefault.Title you are actually setting a different variable than Page.Title.</p>
<p>The nice thing about having the CDefault object around is that it exposes several other parts of the page for you to work with besides the title.<br />
<strong><br />
Public Description As String = &#8220;&#8221;</p>
<p>Public KeyWords As String = &#8220;&#8221;</p>
<p>Public Copyright As String = &#8220;&#8221;</p>
<p>Public Generator As String = &#8220;&#8221;</p>
<p>Public Author As String = &#8220;&#8221;</p>
<p></strong>These members allow you to set the values of meta-data in your page header.<br />
<strong><br />
cd.Description = &#8220;My Custom Description&#8221;;</p>
<p>cd.KeyWords = &#8220;Coffee, Mojo, Hat&#8221;;</p>
<p>cd.Copyright = &#8220;My Company&#8221;;<br />
cd.Generator = &#8220;Foo Coder&#8221;;<br />
cd.Author = &#8220;Custom Author Name&#8221;;</strong></p>
<p>Note that in the code above, cd is a CDefault object.</p>
<p>Knowing how to set these values can be important for those of you concerned with search engine optimization.<br />
Working With The DotNetNuke Page URL</p>
<p>As you probably already understand, the typical DotNetNuke installation really only has one page, Default.aspx. The Default.aspx page receives the tab id (the id of the page it needs to display) via the query string using URL Rewrite. Inside the SiteURLs.config file in the root folder of your installation there exists the following rule which tells the URL Rewritting Http Module to convert the search engine friendly URL into a URL that passes the tab id to the default.aspx page via the query string:</p>
<p><strong>&lt;RewriterRule&gt;<br />
&lt;LookFor&gt;[^?]*/TabId/(\d+)(.*)&lt;/LookFor&gt;</p>
<p>&lt;SendTo&gt;~/Default.aspx?TabId=$1&lt;/SendTo&gt;</p>
<p>&lt;/RewriterRule&gt;</strong></p>
<p>This is a powerful tool that you can customize in order to make your module more functional.</p>
<p>Just as the DotNetNuke site uses the URL rewriter to reduce the page files down to just one, you can use the URL rewriter to reduce the module instance quantity down to just one. Let me explain.</p>
<p>Let’s say that you have a database table containing 10,000 records, each of which you want to provide individual pages for. Rather than generating 10,000 tabs / pages inside your DotNetNuke installation, you can create a URL rewrite rule like this:<br />
<strong><br />
&lt;RewriterRule&gt;</p>
<p>&lt;LookFor&gt;.*/Products/(.+)/(.+)\.aspx&lt;/LookFor&gt;</p>
<p>&lt;SendTo&gt;~/Default.aspx?TabId=54&amp;amp;brand=$1&amp;amp;item=$2&amp;amp;mode=view&lt;/SendTo&gt;</p>
<p>&lt;/RewriterRule&gt;</p>
<p></strong>In this rule you tell the URL rewriter to look for a regular expression that matches a request that looks like http://www.yourdomain.com/Products/SomeBrand/ProductName.aspx, where SomeBrand can be anything and ProductName can be anything. Those two “anythings” will be the key to one of the records you wish to display from your database table. The rule rewrites the URL to point to a specific tab (tab 54) on which there exists an instance of your module. This allows you to have a unique URL for each of the 10,000 products in your database, but only one tab within DotNetNuke for displaying them.</p>
<p>Now your module can display whatever it pleases based on the friendly URL that was originally requested! Have your module fetch the brand and item parameters through the query string:<br />
<strong><br />
if (Request.QueryString["brand"] != null &amp;&amp; Request.QueryString["item"] != null)<br />
{<br />
string path = Request.QueryString["brand"]+ &#8220;/&#8221; + Request.QueryString["item"];<br />
// now use the path string as a<br />
// key to a record in your database<br />
}</strong></p>
<p>Of course you need to take care not to pass on any old query string data on to your DAL. I usually run the values I get from the query string through some code like this which removes spaces and special characters:<br />
<strong><br />
// remove non [A-Za-z0-9] with spaces<br />
myString = Regex.Replace(myString, &#8220;[^A-Za-z0-9]&#8220;, &#8221; &#8220;);<br />
// remove spaces<br />
myString = myString.Replace(&#8221;  &#8220;, &#8221; &#8220;).Trim();</strong></p>
<p>For the sake of simplicity you might consider passing the numeric id / key of the item in your database rather than the brand and product name text like the example above. By doing so you can keep your data redundancy low inside your database, and eliminate the chance of two items having the same path in the URL. On the other hand the URL containing only text might be considered more optimized for search engines. This is a trade-off you will have to consider on your own.</p>
<p>Final, here is one note regarding URLs for the Asp.Net beginners reading this. You will probably at some point want to advance the browser to one of the product URLs manually. This can be done using the Response.Redirect() method.</p>
<p><strong>Response.Redirect(&#8221;/Products/&#8221;+ path + &#8220;.aspx&#8221;);</strong></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/07/18/changing-the-dotnetnuke-page-title-and-using-dnn-page-titles.html&title=Changing+the+DotNetNuke+Page+Title+and+Using+dnn+page+titles&text=In+a+typical+.Net+web+application+you+can+change+the+title+of+a+page+on+the+fly+by+accessing+the+Page+object%26%238217%3Bs+Title+property.+protected+void+Page_Load%28System.Object+sender%2CSystem.EventArgs+e%29...&tags=string+public%2C+your+database%2C+the+page%2C+title%2C+string%2C+public%2C+cdefault%2C+dotnetnuke%2C+module%2C+object" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/07/18/changing-the-dotnetnuke-page-title-and-using-dnn-page-titles.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>SQL Server commands dot net nuke Getting table structure procedure</title>
		<link>http://www.blog.inderweb.com/archives/2008/07/02/sql-server-commands-dot-net-nuke-getting-table-structure-procedure.html</link>
		<comments>http://www.blog.inderweb.com/archives/2008/07/02/sql-server-commands-dot-net-nuke-getting-table-structure-procedure.html#comments</comments>
		<pubDate>Wed, 02 Jul 2008 09:50:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ASP Dot Net]]></category>

		<category><![CDATA[Dot Net Nuke(DNN)]]></category>

		<category><![CDATA[SQL Server]]></category>

		<category><![CDATA[dnn]]></category>

		<category><![CDATA[Dot net]]></category>

		<category><![CDATA[sql]]></category>

		<category><![CDATA[sql express]]></category>

		<guid isPermaLink="false">http://blog.indiapoly.com/?p=31</guid>
		<description><![CDATA[There are manby things which are considered as basics in dot net nuke.When you are using host sql window from dnn then most definitely you will need to have ideas of basic sql statements to fetch info from db.Few of them are:-
Listing all tables from DataBase:-

SELECT * FROM information_schema.Tables

Get Stored procedure description and Structure:-

select * from information_schema.routines where routine_name = 'Stored Procedure Name'

Querry to fetch all tables in a database:

select * from sysobjects where type=’u’
]]></description>
			<content:encoded><![CDATA[<p>There are manby things which are considered as basics in dot net nuke.When you are using host sql window from dnn then most definitely you will need to have ideas of basic sql statements to fetch info from db.Few of them are:-</p>
<p class="MsoNormal"><strong><span style="font-size: 10pt; font-family: Arial;">Listing all tables from DataBase:-</span></strong></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial;">SELECT * FROM information_schema.Tables</span></p>
<p class="MsoNormal"><strong>Get Stored procedure description and Structure:-</strong></p>
<p class="MsoNormal">select * from information_schema.routines where routine_name = &#8216;Stored Procedure Name&#8217;</p>
<p class="MsoNormal"><strong>Querry to fetch all tables in a database:</strong></p>
<p>select * from sysobjects where type=’u’</p>
<p><strong>Querry to fetch all procedures in a database:</strong></p>
<p>select * from sysobjects where type=’p’</p>
<p><strong>Display Table Creation  And Owner info</strong></p>
<p>sp_help <em>table_name</em></p>
<p><strong>Display Table structure and columns:-</strong></p>
<p>sp_columns @table_name = &#8216;<em>table_name</em>&#8216;</p>
<p>this will show all fields from table <em>table_name<strong> </strong></em>including data type and length information.<em><strong><br />
</strong></em></p>
<h6>Return a list of objects that can be queried in the current environment</h6>
<pre><code>EXEC sp_tables
</code></pre>
<h6>Return information about the syscolumns table in the Company database</h6>
<pre><code>EXEC sp_tables syscolumns, dbo, Company, "'SYSTEM TABLE'"
<strong>
Altering/modifying cloumn Width :-</strong>
alter table <em>table_name</em> ALTER COLUMN <em>column_name</em> varchar(30)</code></pre>
<br/><a href="http://www.socialmarker.com/?link=http://www.blog.inderweb.com/archives/2008/07/02/sql-server-commands-dot-net-nuke-getting-table-structure-procedure.html&title=SQL+Server+commands+dot+net+nuke+Getting+table+structure+procedure&text=There+are+manby+things+which+are+considered+as+basics+in+dot+net+nuke.When+you+are+using+host+sql+window+from+dnn+then+most+definitely+you+will+need+to+have+ideas+of+basic+sql+statements+to+fetch...&tags=table" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.blog.inderweb.com/archives/2008/07/02/sql-server-commands-dot-net-nuke-getting-table-structure-procedure.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
