<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>php genious</title>
	
	<link>http://www.phpgenious.com</link>
	<description />
	<lastBuildDate>Wed, 17 Feb 2010 12:56:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PhpGenious" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="phpgenious" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Can’t login into admin panel of Magento (Problem and Solution)</title>
		<link>http://www.phpgenious.com/2010/02/cant-login-into-admin-panel-of-magento-problem-and-solution/</link>
		<comments>http://www.phpgenious.com/2010/02/cant-login-into-admin-panel-of-magento-problem-and-solution/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:56:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Opensource]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=365</guid>
		<description><![CDATA[Hello Friends !!
Yesterday, when I was starting to work on Magento E-commerce. When I was access Magento after installation, I can&#8217;t logged in Admin section.
After long time serching and research in Magento, finally I found the solution and currently I am able to login to admin section. Today I explain you about the problem and [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Yesterday, when I was starting to work on Magento E-commerce. When I was access Magento after installation, I can&#8217;t logged in Admin section.</p>
<p>After long time serching and research in Magento, finally I found the solution and currently I am able to login to admin section. Today I explain you about the problem and the solution.</p>
<p>First of all, what is <a href="http://magentoecommerce.com" target="_blank"><strong>Magento</strong></a> ?</p>
<p>Magento is one of the Opensource for E-commerce Websites. Its a top level opensource in E-commerce category.</p>
<p>Now time to explain the problem and the solution of the problem.<span id="more-365"></span></p>
<h4>Problem</h4>
<p>While installing magento on xampp version 2.5 you have provided admin username and password. After installation finished you no longer login with your admin account.</p>
<p>In fact in the &#8220;Log in to Admin Panel&#8221; window whenever you provide wrong password/username combination it displays &#8220;Invalid Username or Password.&#8221; But whenever you provide correct password it does not show anything.</p>
<p>Though a new url like http://127.0.0.1/magento/index.php/admin/index/index/key/d135be4de664ab83db829120740e058a/</p>
<p>is displayed on the address bar.<br />
Click Here for more details :<script type="text/javascript"><!--
google_ad_client = "pub-7969026041814602";
/* 728x15, created 12/9/09 */
google_ad_slot = "3348511457";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Everytime you do this you can&#8217;t log in to admin panel.</p>
<h4>Reason of the problem</h4>
<p>Do you know why this problem occures ? The problem occurs because magneto could not store cookies. We run it as localhost and localhost is not true domain but to store cookies we need a domain. That&#8217;s why login stops without saying any word.</p>
<p>Now the time comes for solutions. There are two solutions for this problem which are shown below :</p>
<h4>Solutions</h4>
<p><strong><span style="text-decoration: underline;">First Solution</span></strong><br />
In different forums I saw they mentioned connecting as http://localhost/magento/index.php/admin will fail but if you connect as http://127.0.0.1/magento/index.php/admin it will work. But in my case IP address in the URL did not work too.</p>
<p>I made it work into whenever I changed my browser. Suppose I installed magento using google chrome browser and I open admin url into my firefox window and it worked. Though in the firefox the url http://localhost/magento/index.php/admin did not work, but url http://127.0.0.1/magento/index.php/admin worked fine.</p>
<p><strong><span style="text-decoration: underline;">Second Solution</span></strong></p>
<p>Go to <strong>app/code/core/Mage/Core/Model/Session/Abstract/Varien.php</strong> file within your magento directory.</p>
<p>Find the code:</p>
<div class="code">session_set_cookie_params(<br />
$this-&gt;getCookie()-&gt;getLifetime(),<br />
$this-&gt;getCookie()-&gt;getPath(),<br />
$this-&gt;getCookie()-&gt;getDomain(),<br />
$this-&gt;getCookie()-&gt;isSecure(),<br />
$this-&gt;getCookie()-&gt;getHttponly()<br />
);</div>
<p>and replace with</p>
<div class="code">session_set_cookie_params(<br />
$this-&gt;getCookie()-&gt;getLifetime(),<br />
$this-&gt;getCookie()-&gt;getPath()<br />
//$this-&gt;getCookie()-&gt;getDomain(),<br />
//$this-&gt;getCookie()-&gt;isSecure(),<br />
//$this-&gt;getCookie()-&gt;getHttponly()<br />
);</div>
<p>After this save the file. And try to login into the admin.</p>
<p>I think it will work now.</p>
<p>If you like this post or if you have any query or question then feel free to comment.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 627px; width: 1px; height: 1px;">
<p>Hello Friends !!</p>
<p>Yesterday, when I was starting to work on Magento E-commerce. When I was access Magento after installation, I can&#8217;t logged in Admin section.</p>
<p>After long time serching and research in Magento, finally I found the solution and currently I am able to login to admin section. Today I explain you about the problem and the solution.</p>
<p>First of all, what is Magento ?</p>
<p>Magento is one of the Opensource for E-commerce Websites. Its a top level opensource in E-commerce category.</p>
<p>Now time to explain the problem and the solution of the problem.</p>
<p>Problem</p>
<p>While installing magento on xampp version 2.5 you have provided admin username and password. After installation finished you no longer login with your admin account.</p>
<p>In fact in the &#8220;Log in to Admin Panel&#8221; window whenever you provide wrong password/username combination it displays &#8220;Invalid Username or Password.&#8221; But whenever you provide correct password it does not show anything.</p>
<p>Though a new url like http://127.0.0.1/magento/index.php/admin/index/index/key/d135be4de664ab83db829120740e058a/</p>
<p>is displayed on the address bar.</p>
<p>Everytime you do this you can&#8217;t log in to admin panel.</p>
<p>Reason of the problem</p>
<p>Do you know why this problem occures ? The problem occurs because magneto could not store cookies. We run it as localhost and localhost is not true domain but to store cookies we need a domain. That&#8217;s why login stops without saying any word.</p>
<p>Now the time comes for solutions. There are two solutions for this problem which are shown below :</p>
<p>Solutions</p>
<p>First Solution</p>
<p>In different forums I saw they mentioned connecting as http://localhost/magento/index.php/admin will fail but if you connect as http://127.0.0.1/magento/index.php/admin it will work. But in my case IP address in the URL did not work too.</p>
<p>I made it work into whenever I changed my browser. Suppose I installed magento using google chrome browser and I open admin url into my firefox window and it worked. Though in the firefox the url http://localhost/magento/index.php/admin did not work, but url http://127.0.0.1/magento/index.php/admin worked fine.</p>
<p>Second Solution</p>
<p>Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.</p>
<p>Find the code:</p>
<p>session_set_cookie_params(<br />
$this-&gt;getCookie()-&gt;getLifetime(),<br />
$this-&gt;getCookie()-&gt;getPath(),<br />
$this-&gt;getCookie()-&gt;getDomain(),<br />
$this-&gt;getCookie()-&gt;isSecure(),<br />
$this-&gt;getCookie()-&gt;getHttponly()<br />
);</p>
<p>and replace with</p>
<p>session_set_cookie_params(<br />
$this-&gt;getCookie()-&gt;getLifetime(),<br />
$this-&gt;getCookie()-&gt;getPath()<br />
//$this-&gt;getCookie()-&gt;getDomain(),<br />
//$this-&gt;getCookie()-&gt;isSecure(),<br />
//$this-&gt;getCookie()-&gt;getHttponly()<br />
);</p>
<p>After this save the file. And try to login into the admin.</p>
<p>I think it will work now.</p>
<p>If you like this post or if you have any query or question then feel free to comment.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/02/cant-login-into-admin-panel-of-magento-problem-and-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Opencart Admin</title>
		<link>http://www.phpgenious.com/2010/01/how-to-use-opencart-admin/</link>
		<comments>http://www.phpgenious.com/2010/01/how-to-use-opencart-admin/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:02:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[opencart]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=363</guid>
		<description><![CDATA[Hello Friends !!
I have make two sites in Opencart. Opencart is a opensource shopping cart. This is very user friendly and very easy to use.
Today, it is become very famous to make e-commerce sites. Because its very easy to install and very user friendly to use it.
In any Open source, admin is the main part. And if you [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>I have make two sites in Opencart. Opencart is a opensource shopping cart. This is very user friendly and very easy to use.</p>
<p>Today, it is become very famous to make e-commerce sites. Because its very easy to install and very user friendly to use it.</p>
<p>In any Open source, admin is the main part. And if you understand that how to use admin then you can manage your stie easily.</p>
<p>So for new users of Opencart, I have make one document which gives you the steps for how to use the admin. So please download this document and follow the instructions given in this document.</p>
<p><a href="http://www.phpgenious.com/test/opencart_admin_manual1.doc" target="_blank"><strong>DOWNLOAD</strong></a></p>
<p>Feel free to post comments.</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/01/how-to-use-opencart-admin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New Short URL service</title>
		<link>http://www.phpgenious.com/2010/01/new-short-url-service/</link>
		<comments>http://www.phpgenious.com/2010/01/new-short-url-service/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 09:27:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=360</guid>
		<description><![CDATA[Hello Friend !!
You all are aware that in twitter when we have to do tweets, we have to make out URL short. Normally users use http://bit.ly for make short URL.
But I fond one new short URL service couple of hours ago. And from my point of view, It is also good. You can use this [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friend !!</p>
<p>You all are aware that in twitter when we have to do tweets, we have to make out URL short. Normally users use http://bit.ly for make short URL.</p>
<p>But I fond one new short URL service couple of hours ago. And from my point of view, It is also good. You can use this new short URL service.</p>
<p>The URL of this service website is <strong><a href="http://frd.im/" target="_blank">http://frd.im/</a></strong></p>
<p>I think this information and this short URL service become very useful to you my friends.</p>
<p>Feel free to give comments on this post.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/01/new-short-url-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL to RSS feed(XML)-Used in Google Product Search</title>
		<link>http://www.phpgenious.com/2010/01/mysql-to-rss-feedxml-used-in-google-product-search/</link>
		<comments>http://www.phpgenious.com/2010/01/mysql-to-rss-feedxml-used-in-google-product-search/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 10:03:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Import/Export data]]></category>
		<category><![CDATA[MySQL to RSS feed]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=353</guid>
		<description><![CDATA[Hello Friends !!
In my last post, I explain you how to export data from MySQL to tab formatted TXT file.
I think you all aware about Google Product Search.
In Google Product Search, which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.
For store data in [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>In my last post, I explain you how to export data from MySQL to tab formatted TXT file.</p>
<p>I think you all aware about Google Product Search.</p>
<p>In Google Product Search, which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.</p>
<p>For store data in google product search, Google supports txt and xml (RSS) file.</p>
<p>Now I make one another script which used to export data from MySQL to RSS (XML). Actually google product also preffer RSS feed.</p>
<p>For this you have to create one <strong>datafeed.xml</strong> and save this file where PHP script file is stored. Here I give you code :<br />
Click Here for more details :<script type="text/javascript"><!--
google_ad_client = "pub-7969026041814602";
/* 728x15, created 12/9/09 */
google_ad_slot = "3348511457";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<span id="more-353"></span></p>
<div class="code">&lt;?php $conn = mysql_connect(&#8216;hostname&#8217;, &#8216;username&#8217;, &#8216;password&#8217;) or die (&#8216;Error connecting to mysql&#8217;);</p>
<p>mysql_select_db(&#8216;DB name&#8217;, $conn) or die (&#8216;Error connecting to database&#8217;);?&gt;</p>
<p>&lt;?php function getXML($sql=&#8221;Default Query&#8221;)<br />
{<br />
$results = mysql_query($sql);</p>
<p>$count = 0;</p>
<p>$data = array();</p>
<p>while ( $row = mysql_fetch_array($results))</p>
<p>{</p>
<p>$result[$count] = $row;</p>
<p>$count++;</p>
<p>}</p>
<p>$columns=&#8221;;</p>
<p>for($i=0;$i &lt; count($result);$i++)<br />
{</p>
<p>$columns.=&#8217;&lt;item&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;title&gt;&#8217;;<br />
$columns.=$result[$i]['name'];<br />
$columns.=&#8217;&lt;/title&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;link&gt;&#8217;;<br />
$columns.=&#8221;http://www.example.com/&#8221;.$result[$i]['link'];<br />
$columns.=&#8217;&lt;/link&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;description&gt;&#8217;;<br />
$columns.=$result[$i]['Description'];<br />
$columns.=&#8217;&lt;/description&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;g:image_link&gt;&#8217;;<br />
$columns.=&#8221;http://www.example.com/&#8221;.$result[$i]['image'];<br />
$columns.=&#8217;&lt;/g:image_link&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;g:price&gt;&#8217;;<br />
$columns.=$result[$i]['Price'];<br />
$columns.=&#8217;&lt;/g:price&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;g:condition&gt;&#8217;;<br />
$columns.=&#8217;new&#8217;;<br />
$columns.=&#8217;&lt;/g:condition&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;g:id&gt;&#8217;;<br />
$columns.=$result[$i]['id'];<br />
$columns.=&#8217;&lt;/g:id&gt;&#8217;;</p>
<p>$columns.=&#8217;&lt;/item&gt;&#8217;;</p>
<p>}<br />
$content=&#8217;&lt;?xml version=&#8221;1.0&#8243;?&gt;&lt;rss version=&#8221;2.0&#8243; xmlns:g=&#8221;http://base.google.com/ns/1.0&#8243;&gt;&#8217;;<br />
$content.=&#8217;&lt;channel&gt;&#8217;;<br />
$content.=&#8217;&lt;title&gt;hootofloot&lt;/title&gt;&#8217;;<br />
$content.=&#8217;&lt;link&gt;http://www.example.com&lt;/link&gt;&#8217;;<br />
$content.=&#8217;&lt;description&gt;Example&lt;/description&gt;&#8217;;<br />
$content.=$columns;<br />
$content.=&#8217;&lt;/channel&gt;&#8217;;<br />
$content.=&#8217;&lt;/rss&gt;&#8217;;</p>
<p>$res = update_xml_file($content);</p>
<p>}<br />
getXML(&#8220;SELECT id,name,description,price,link,image FROM tablename&#8221;);</p>
<p>function update_xml_file($content)<br />
{<br />
global $HTTP_POST_VARS;<br />
$filename = &#8216;datafeed.xml&#8217;;</p>
<p>if (is_writable($filename))<br />
{<br />
if (!$handle = fopen($filename, &#8216;w&#8217;)) {<br />
echo &#8220;Cannot open file ($filename)&#8221;;<br />
exit;<br />
}<br />
// Write $somecontent to our opened file.<br />
if (fwrite($handle, $content) == FALSE) {<br />
$action_msg = &#8220;ER&#8221;;<br />
}</p>
<p>$action_msg = &#8220;SC&#8221;;<br />
fclose($handle);<br />
$handle=fopen($filename,&#8221;r&#8221;);<br />
}<br />
else<br />
{<br />
echo &#8220;The file $filename is not writable&#8221;;<br />
}</p>
<p>}</p>
<p>?&gt;
</p></div>
<p>I hope this post become helpful to you my friends. If you have any problem or any query then feel free to comment me.</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/01/mysql-to-rss-feedxml-used-in-google-product-search/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MySQL to tab formatted TXT(datafeed) converter script-PHP</title>
		<link>http://www.phpgenious.com/2010/01/mysql-to-tab-formatted-txtdatafeed-converter-script-php/</link>
		<comments>http://www.phpgenious.com/2010/01/mysql-to-tab-formatted-txtdatafeed-converter-script-php/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 09:11:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[MySQL to TXT(datafeed)]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=345</guid>
		<description><![CDATA[MySQL to Google Based Datafeed Converter PHP Script
Hello Friends !!
Currently I am working on one project in which I have to store data in Google Merchant Center.
This is a Google Product Search which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.
For store data [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL to Google Based Datafeed Converter PHP Script</p>
<p>Hello Friends !!</p>
<p>Currently I am working on one project in which I have to store data in Google Merchant Center.</p>
<p>This is a Google Product Search which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.</p>
<p>For store data in google product search, Google supports txt file with tab seperated.</p>
<p>After some reserch I have made one PHP script which store data from MySQL table to txt file with tab seperated.<!--adsense#link--><br />
<span id="more-345"></span><br />
Here is the code for this :</p>
<div class="code">&lt;?php<br />
if (!$_POST['submit']){<br />
show_form();<br />
}else{$table = $_POST['mytable'];</p>
<p>if (!eregi(&#8220;[a-z0-9_]{1,64}&#8221;,$table)){<br />
show_form();<br />
die(&#8220;disallowed_table name. if your tables names contain other characters, consider renaming them.&#8221;);<br />
}//end if</p>
<p>if (!($conn2=mysql_connect(&#8216;localhost&#8217;, &#8216;root&#8217;, &#8221;)))  {<br />
printf(&#8220;error connecting to DB by user = $username and pwd=$pwd&#8221;);<br />
exit();<br />
}</p>
<p>$db2=mysql_select_db(&#8216;edward_hootofloot&#8217;,$conn2) or die(&#8220;Unable to connect to local database&#8221;);<br />
$sql = &#8220;select * from $table&#8221;;<br />
$result = mysql_query($sql) or die (&#8220;Can&#8217;t complete query because &#8220;.mysql_error());</p>
<p>if (($result) &amp;&amp; (mysql_num_rows($result)&gt;0)){</p>
<p>//set the path and file name<br />
//$dir=&#8221;/path/to/file/&#8221;;<br />
$filename = &#8220;Ad_Details_&#8221;.date(&#8220;d_M_Y&#8221;);</p>
<p>if (!$handle = fopen($filename, &#8216;w&#8217;)) {<br />
echo &#8220;Cannot open file ($filename)&#8221;;<br />
exit;<br />
}</p>
<p>while ($rows = mysql_fetch_array($result)){<br />
$fields = mysql_num_fields($result);<br />
$content = &#8220;&#8221;;<br />
//calc the length of the line (number of elements)<br />
for($x = 0; $x &lt; $fields-1; $x++){</p>
<p>$content .= $rows[$x] . &#8220;    &#8220;;</p>
<p>}//next<br />
echo &#8220;&lt;br&gt;&#8221;;<br />
$content = substr($content, 0, strlen($content)-2). &#8220;\n&#8221;; //remove the last pipe as its not needed and adds the new line character</p>
<p>// Write $content to our opened file.<br />
if (fwrite($handle, $content) === FALSE) {<br />
echo &#8220;Cannot write to file ($filename)&#8221;;<br />
exit;<br />
}<br />
}//end while</p>
<p>fclose($handle);</p>
<p>//call the function to force the download the users computer<br />
force_download($filename);</p>
<p>}//end if</p>
<p>}//end if<br />
function force_download($file)<br />
{<br />
//$dir=&#8221;/path/to/file/&#8221;;<br />
if (isset($file)) {<br />
header(&#8220;Content-type: application/force-download&#8221;);</p>
<p>header(&#8220;Content-Transfer-Encoding: Binary&#8221;);<br />
header(&#8220;Content-length: &#8220;.filesize($file));<br />
header(&#8216;Content-Type: application/octet-stream&#8217;);<br />
//header(&#8220;Content-disposition: attachment; filename=&#8221;".basename($file).&#8221;"&#8221;);<br />
header(&#8216;Content-Disposition: attachment; filename=&#8221;&#8216; . $file . &#8216;&#8221;.txt&#8217;);<br />
readfile(&#8220;$file&#8221;);<br />
} else {<br />
echo &#8220;No file selected&#8221;;<br />
} //end if</p>
<p>}//end function</p>
<p>function show_form()<br />
{<br />
echo &#8220;&lt;html&gt;&lt;body&gt;&lt;h2&gt; Table Data Exporter &lt;/h2&gt;<br />
&lt;h4&gt;Creates a pipe delimited file of the table contents.&lt;/h4&gt;<br />
&lt;br&gt;&lt;br&gt;&lt;form name=myform method=post&gt;<br />
Table Name:&lt;input type=text name=mytable&gt;<br />
&lt;input type=submit name=submit value=Submit&gt;<br />
&lt;/form&gt;&lt;/body&gt;&lt;/html&gt;&#8221;;</p>
<p>}<br />
?&gt;﻿</p>
</div>
<p>click here for more details :<br />
<!--adsense#link--><br />
<strong>Note</strong> : TXT file is stored at that location where this script is stored.</p>
<p>If you have any question or any query regarding this, please comment on this.</p>
<p>Thank you !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/01/mysql-to-tab-formatted-txtdatafeed-converter-script-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem Solving Of Authorize.net Payment Integration</title>
		<link>http://www.phpgenious.com/2009/12/problem-solving-of-authorize-net-payment-integration/</link>
		<comments>http://www.phpgenious.com/2009/12/problem-solving-of-authorize-net-payment-integration/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 07:01:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[authorize.net]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=327</guid>
		<description><![CDATA[Hello Friends,
Today I will explain you about authorize.net payment gateway. Since last two months, I was working on authorize.net payment gateway integration with PHP. And I was getting so much difficulties at the time of integration.

I was use API(Application Programming Interfaces) and ARB (Automated Recurring Billing) and I got lots of error.
But I tried so [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends,</p>
<p>Today I will explain you about <strong>authorize.net</strong> payment gateway. Since last two months, I was working on <strong>authorize.net</strong> payment gateway integration with <strong>PHP. </strong>And I was getting so much difficulties at the time of integration.<br />
<span id="more-327"></span><br />
I was use API(Application Programming Interfaces) and ARB (Automated Recurring Billing) and I got lots of error.</p>
<p>But I tried so hard and I got success. So if authorize.net, If you have any query, any confusion or you want to know any settings of authorize.net, then feel free to contact me. I will surely help you to solve any problem with <strong>authorize.net</strong>.<br />
<!--adsense#newblock--><br />
My next post is on <strong>authorize.net</strong> security settings.</p>
<p>If you like my blog then please comment on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/12/problem-solving-of-authorize-net-payment-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Cron Job in cPanel</title>
		<link>http://www.phpgenious.com/2009/12/set-cron-job-in-cpanel/</link>
		<comments>http://www.phpgenious.com/2009/12/set-cron-job-in-cpanel/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 13:07:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cron Job]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=319</guid>
		<description><![CDATA[Hello Friends !!
Today I will share with you about cPanel and its advanced feature Cron Job.
First of all what is cPanel ?
CPanel is a fully featured web-based control panel that allows you to manage your domain through a web interface. The idea is to transfer as much of the control and responsibility of managing your [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Today I will share with you about cPanel and its advanced feature Cron Job.<br />
First of all what is <strong>cPanel</strong> ?</p>
<p>CPanel is a fully featured web-based control panel that allows you to manage your domain through a web interface. The idea is to transfer as much of the control and responsibility of managing your web site to you. You have the ability to manage all aspects of e-mail, files, backup, FTP, CGI scripts, and web site statistics.</p>
<p>Now what is <strong>Cron Job</strong> ?</p>
<p>A cron job allows you to run a certain command at times set by the job. For example, if you want to execute one file at midnight 12.00 then you can set time using cron job. There is an advanced feature in cPanel from where you have to write only one command and full path of the file whcih want to execute.</p>
<p><span id="more-319"></span></p>
<p>Don&#8217;t be confused. I give you support step by step.</p>
<p>When you login in cPanel, Please click on the icon for cronjob. (See below image).</p>
<p><img class="alignnone size-full wp-image-320" title="cron" src="http://www.phpgenious.com/wp-content/uploads/2009/12/cron.JPG" alt="cron" width="465" height="191" /></p>
<p>Then there are two modes for Cron Job.<br />
<!--adsense#cronjob--><br />
<strong>1) Standard Cron Manager<br />
2) Advanced (UNIX Style) Cron Jobs Mod</strong><br />
click here for more details.</p>
<h2>Standard Cron Manager</h2>
<p>The Standard mode provides a range of pre-set options that you can choose. This is the simplest method and is recommended. See below image.</p>
<p><img class="alignnone size-full wp-image-321" title="standard" src="http://www.phpgenious.com/wp-content/uploads/2009/12/standard.jpg" alt="standard" width="560" height="300" /></p>
<h3>Adding a cron job in standard mode</h3>
<ul>
<li>To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.</li>
<li>Click on Standard to access the Standard Cron Manager.</li>
<li>Enter the email address where the cron output will be sent to in the corresponding field.</li>
<li>Enter the command you wish the cron job to run in the blank field next to the Command to run label.</li>
<li>Select how often you wish the command to be run by selecting an option in each of the boxes.</li>
<li>Click on Save Crontab to save your changes and set up your cron job.</li>
</ul>
<p>Thats it. Your cron job is added.</p>
<h3>Deleting a cron job in standard mode</h3>
<p>When a cron job is no longer needed, you should delete it so the command will not continue to run.</p>
<ul>
<li>To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.</li>
<li>Click on Standard to access the Standard Cron Manager.</li>
<li>Click on the Delete button next to the cron job you wish to remove.</li>
</ul>
<p>Above all prtocess for <strong>Standard Cron Manager</strong>. Now I explain you about <strong>Advanced (UNIX Style) Cron Jobs Mod</strong>.<br />
click here for more details.<br />
<!--adsense#cronjob--></p>
<h2>Advanced (UNIX Style) Cron Jobs Mod</h2>
<p>This provides the regular UNIX style cron options. It is recommended only for users, who are used to this method of setting cron entries. See below Image.</p>
<p><img class="alignnone size-full wp-image-322" title="unixtype" src="http://www.phpgenious.com/wp-content/uploads/2009/12/unixtype.jpg" alt="unixtype" width="560" height="300" /></p>
<h3>Adding a cron job in advanced mode</h3>
<ul>
<li>To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.</li>
<li>Click on Advanced (Unix Style) to access the Cron Manager.</li>
<li>Enter the email address you wish the output of the command run by the cron job to be sent to in the corresponding field.</li>
<li>Enter the command you wish the cron job to run in the blank field below the Command label.</li>
<li>Select how often you wish the command to be run by placing a number or asterisk (*) in each of the boxes.</li>
<li>Click on Save Crontab to save your changes and set up your cron job.</li>
</ul>
<p><strong>Note : </strong> An asterisk (*) denotes to run the command at every possible time for that box. For example, a * in the month box would run the command every month.</p>
<h3>Deleting a cron job in advanced mode</h3>
<p>When a cron job is no longer needed, you should delete it so the command will not continue to run.</p>
<ul>
<li>To access the Cron Jobs Menu, click on the corresponding icon located on the main screen of your cPanel interface.</li>
<li>Click on Advanced (Unix Style) to access the Cron Manager.</li>
<li>Click on the Remove icon next to the cron job you wish to delete.</li>
</ul>
<p>Thats it. I think this tutorial become very helpful to you.</p>
<p>If you have any query or any suggestion please comment on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/12/set-cron-job-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Use JQuery and Prototype at the Same Time ?</title>
		<link>http://www.phpgenious.com/2009/06/how-to-use-jquery-and-prototype-at-the-same-time/</link>
		<comments>http://www.phpgenious.com/2009/06/how-to-use-jquery-and-prototype-at-the-same-time/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 07:50:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery ans Prototype]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=316</guid>
		<description><![CDATA[Hello Friends!
Today i want to share with you some important topic.
I think you don&#8217;t know that jQuery and Prototype both will not work at same page. if you are using jquery with prototype with default settings than it will create  a problem and not work according to our requirement.
I already face this problem. After [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends!</p>
<p>Today i want to share with you some important topic.</p>
<p>I think you don&#8217;t know that <strong>jQuery</strong> and <strong>Prototype</strong> both will not work at same page. if you are using jquery with prototype with default settings than it will create  a problem and not work according to our requirement.</p>
<p>I already face this problem. After long research, i have found the solution and which is working fine for me.<br />
So The solution Read it Carefully because the arrangement is very important.<span id="more-316"></span></p>
<p>First Define jQuery in your webpage.<br />
Click on below links for more:<br />
<!--adsense#link--></p>
<p><strong>&lt;script language=&#8221;javascript&#8221;  src=&#8221;js/jquery.js&#8221;&gt;&lt;/script&gt;</strong> (Define jQuery)<br />
<strong><br />
// After Defining jquery file  you must asign a new variable to jQuery here i have used it as &#8220;hoot&#8221;<br />
// The  reason to use this is &#8220;$&#8221; is used in both the js Jquery and Prototype and its  conflicting one another.<br />
// Prototype uses$ for id based selection<br />
//  jQuery $ uses CSS based selection<br />
// so here &#8220;$&#8221; would be replaced with  &#8220;hoot&#8221;<br />
// so the conflict with prototype $ will be  removed.</strong></p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var hoot =  jQuery.noConflict();<br />
&lt;/script&gt;</p>
<p><strong>// Define prototype js </strong><br />
&lt;script language=&#8221;javascript&#8221;  src=&#8221;js/prototype/prototype.js&#8221;&gt;&lt;/script&gt;</p>
<p>=====================================<br />
<strong>In  Normal use of jQuery syntax will  be</strong><br />
=====================================<br />
&lt;script  type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function()<br />
{<br />
// Your  code;<br />
}<br />
&lt;/script&gt;<br />
Click on below links for more:<br />
<!--adsense#link--><br />
=====================================<br />
<strong>In  jQuery+Prototype together syntax will  be</strong><br />
=====================================<br />
&lt;script  type=&#8221;text/javascript&#8221;&gt;<br />
hoot(document).ready(function()<br />
{<br />
//Your  Code<br />
}<br />
&lt;/script&gt;</p>
<p>So use this technique, and definitely your code starts working.</p>
<p>If you like this post then please comment. If you have any query or confusion then also comment me.</p>
<p>Thanks &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/06/how-to-use-jquery-and-prototype-at-the-same-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set Cookies in PHP</title>
		<link>http://www.phpgenious.com/2009/04/set-cookies-in-php/</link>
		<comments>http://www.phpgenious.com/2009/04/set-cookies-in-php/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 13:15:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=305</guid>
		<description><![CDATA[Hello Friends !!
Today i will show you hiw to use Cookie in PHP.
First of all Cookies are small pieces of text, stored by a user&#8217;s web browser, that contain the user&#8217;s settings, shopping cart contents, or other data used by websites.
In PHP we can set cookies by inbuilt function setcookie().
setcookie(&#8216;username&#8217;, $name);
It is very easy to [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Today i will show you hiw to use Cookie in PHP.</p>
<p>First of all Cookies are small pieces of text, stored by a user&#8217;s web browser, that contain the user&#8217;s settings, shopping cart contents, or other data used by websites.</p>
<p>In PHP we can set cookies by inbuilt function setcookie().</p>
<div class="code">setcookie(&#8216;username&#8217;, $name);</div>
<p>It is very easy to use and understand. First parameter is the name of the cookie and second one is the value you want to store in cookie.</p>
<p>By above code you can set simple cookie and this cookie will be deleted when user close their browser.</p>
<p>We can also set the time how long we want the cookie.</p>
<div class="code">$cookie_life = time() + 31536000;<br />
setcookie(&#8216;username&#8217;, $name, $cookie_life);</div>
<p>Above example create cookie for 1 year. Yes 31536000 seconds means 1 year.Remember, cookies must be deleted with the same parameters they were set with.If users clear their history from browser then cookies will be deleted.<br />
<span id="more-305"></span></p>
<p>We can also use a forth parameter, the fourth parameter is the cookie path.</p>
<div class="code">$cookie_life = time() + 31536000;<br />
$path = &#8216;/folder/&#8217;;<br />
setcookie(&#8216;username&#8217;, $name, $cookie_life, $path);</div>
<p>The fourth parameter defines a path from which the cookie can be accessed. In the above example only scripts inside /folder/ will be able to access the cookie ($username), in scripts outside this folder the cookie will be unavailable.</p>
<p>Thereâ€™s also a fifth parameter, the fifth parameter defines a hostname that can retrieve the cookie.</p>
<div class="code">$cookie_life = time() + 31536000;<br />
$path = &#8216;/folder/&#8217;;<br />
$hostname = &#8216;your host address&#8217;;<br />
setcookie(&#8216;username&#8217;, $name, $cookie_life, $path, $hostname);</div>
<p>The fifth parameter is the domain which can retrieve this cookie. Normally a cookie can only be accessed by the domain that set it, otherwise sites would be able to get private information from cookies set by other sites. With this parameter we can define another domain which can retrieve the cookie we are setting.</p>
<p>Click on below links for more:<br />
<!--adsense#link--></p>
<p><strong>Now How to Retrive Cookie ?</strong></p>
<p>Once you have set a cookie on a user&#8217;s system, it is only avialable when they load the next page. The cookie can be accessed very easily:</p>
<div class="code">// Our cookie would be contained in $HTTP_COOKIE_VARS['username']<br />
// or $_COOKIE['username']</div>
<p>When the cookie is set the value is automatically URL encoded, when the script retrieves a cookie, it automatically decodes the value, so you don&#8217;t have to worry about that.</p>
<p>Always remember, a limitation of cookies is that you have to set it before you can send the HTTP headers. In other words, always do all your cookie setting BEFORE you output any HTML, otherwise the cookie will not be set and your page will have an ugly error stuck on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/04/set-cookies-in-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Security in PHP – Tutorial</title>
		<link>http://www.phpgenious.com/2009/04/security-in-php-tutorial/</link>
		<comments>http://www.phpgenious.com/2009/04/security-in-php-tutorial/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:04:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=302</guid>
		<description><![CDATA[Hello Friends !!
Today I found one PDF file about PHP Security. Here I will give you that tutorial.
In this tutorial all the PHP security issues are explained in easu language.
Document is about worth 15 pages so i can&#8217;t write it in my blog.
Simply click on link shown below and you can see that PDF file. [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Today I found one PDF file about PHP Security. Here I will give you that tutorial.</p>
<p>In this tutorial all the PHP security issues are explained in easu language.</p>
<p>Document is about worth 15 pages so i can&#8217;t write it in my blog.</p>
<p>Simply click on link shown below and you can see that PDF file. But first you have to install Adobe PDF reader.</p>
<p><a href="http://www.phpgenious.com/test/phpsecurity.pdf">CLICK HERE</a> to see tutorial.</p>
<p>If you like this tutorial then please comment on this post. If you have any query then also tell me.</p>
<p>Click below links for more tutorials:<br />
<!--adsense#link--></p>
<p>I will try my best to solve your problem.</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2009/04/security-in-php-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
