<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1378707667030856533</atom:id><lastBuildDate>Mon, 07 Oct 2024 05:01:38 +0000</lastBuildDate><category>WordPress</category><category>Feedburner</category><category>PHP</category><category>Tips</category><title>Hornet Labs</title><description>Hornet Labs is a tech blog. Here I will write about things that I will work or simply that I come across.</description><link>http://hornet-labs.blogspot.com/</link><managingEditor>noreply@blogger.com (Software Pics)</managingEditor><generator>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1378707667030856533.post-6997813795401894976</guid><pubDate>Mon, 19 Mar 2012 20:56:00 +0000</pubDate><atom:updated>2012-03-20T02:31:22.026+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips</category><title>Do you visit Free premium logins giveaway sites? Then you should use these</title><description>&lt;p&gt;Do you frequently visit premium login giveaway sites for free working premium logins? If yes, then you should probably consider installing Ditto and Fight Ads Greasemonkey script which could help you out in checking the logins really quickly. Let’s see how these two will save you time and effort.&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt; &lt;h2&gt;Ditto keeps copied usernames and passwords at your finger tips:&lt;/h2&gt; &lt;p&gt;These premium logins giveaway sites do not provide users with feature that lets you check logins instantly. It becomes very difficult when you have lot of logins to check. So here &lt;strong&gt;&lt;a class="pink" href="http://ditto-cp.sourceforge.net/" target="_blank"&gt;Ditto (Windows clipboard manager)&lt;/a&gt;&lt;/strong&gt; becomes very useful tool. See the video below.&lt;/p&gt; &lt;p&gt;&lt;iframe height="347" src="http://www.screenr.com/embed/ZAB8" frameborder="0" width="570"&gt;&lt;/iframe&gt;&lt;/p&gt; &lt;p&gt;If you cant understand the video read below.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;First of all install &lt;strong&gt;Ditto&lt;/strong&gt;.  &lt;li&gt;Now open the premium logins giveaway site.  &lt;li&gt;First copy the password separately then the username separately.  &lt;li&gt;Go to the site where you want to use username and password.  &lt;li&gt;Place the cursor in the &lt;strong&gt;Username&lt;/strong&gt; field and press &lt;strong&gt;Ctrl + ~&lt;/strong&gt; (shortcut for Ditto menu).  &lt;li&gt;Small menu will appear, the first one will be your username, click on it to paste it in the &lt;strong&gt;Username&lt;/strong&gt; field.  &lt;li&gt;Place the cursor in the &lt;strong&gt;Password&lt;/strong&gt; field and press &lt;strong&gt;Ctrl + ~&lt;/strong&gt; (shortcut for Ditto menu).  &lt;li&gt;Now select the second menu item to paste the password in the &lt;strong&gt;Password&lt;/strong&gt; field.  &lt;li&gt;Click Login button. Enjoy.&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Skip Adf.ly ads completely using Greasemonkey script:&lt;/h2&gt; &lt;p&gt;I myself visit these sites, I know how it will be like clicking on Adf.ly links and waiting for 5 seconds to click the SKIP button, see the username and password. Here we will use &lt;strong&gt;&lt;a class="green" href="http://userscripts.org/scripts/show/89322" target="_blank"&gt;Fight Ads script&lt;/a&gt; for Greasemonkey (&lt;a class="orange" href="https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/" target="_blank"&gt;Firefox addon&lt;/a&gt;, &lt;a class="blue" href="https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo" target="_blank"&gt;Chrome extension&lt;/a&gt;) &lt;/strong&gt;to automatically forward to the destination link. Now you don't have to wait for 5 seconds to see the&amp;nbsp; Adf.ly SKIP button. See the video.&lt;/p&gt;&lt;iframe height="347" src="http://www.screenr.com/embed/vAB8" frameborder="0" width="570"&gt;&lt;/iframe&gt; &lt;p&gt;Comments are always allowed.&lt;/p&gt;  </description><link>http://hornet-labs.blogspot.com/2012/03/do-you-visit-free-premium-logins.html</link><author>noreply@blogger.com (Software Pics)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1378707667030856533.post-8116633700360315411</guid><pubDate>Sun, 18 Mar 2012 13:45:00 +0000</pubDate><atom:updated>2012-03-18T19:47:27.786+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">WordPress</category><title>Login into remote website using PHP cURL</title><description>&lt;p&gt;First let me tell you I am not a programmer, but I am able to understand a little bit of code to edit the code. I have a WordPress website and I wanted a code that can login to remote website and tell the user if the login credentials are correct or not.&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt; &lt;p&gt;I found a working PHP cURL script here on this &lt;a href="http://www.knowledgesutra.com/forums/topic/38162-automatic-login-using-curl/" target="_blank"&gt;site&lt;/a&gt;. The script has all the needed explanation, so it should make it easy to understand even for novice. I changed code a little to suit my needs. Here is the code after changing. &lt;/p&gt;&lt;pre style="padding-bottom: 10px; background-color: #898888; padding-left: 10px; padding-right: 10px; padding-top: 10px"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Test&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;$username='off2oz'; &lt;br /&gt;$password='auntiem'; &lt;br /&gt;$postdata = 'user='.$username.'&amp;amp;pass='.$password;&lt;br /&gt;&lt;br /&gt;// INIT CURL&lt;br /&gt;$ch = curl_init();&lt;br /&gt;&lt;br /&gt;// SET URL FOR THE POST FORM LOGIN&lt;br /&gt;curl_setopt($ch, CURLOPT_URL, 'http://www.hotfile.com/login.php');&lt;br /&gt;&lt;br /&gt;// ENABLE HTTP POST&lt;br /&gt;curl_setopt ($ch, CURLOPT_POST, 1);&lt;br /&gt;&lt;br /&gt;// SET POST PARAMETERS : FORM VALUES FOR EACH FIELD&lt;br /&gt;curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);&lt;br /&gt;&lt;br /&gt;// IMITATE CLASSIC BROWSER'S BEHAVIOUR : HANDLE COOKIES&lt;br /&gt;curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');&lt;br /&gt;&lt;br /&gt;# Setting CURLOPT_RETURNTRANSFER variable to 1 will force cURL&lt;br /&gt;# not to print out the results of its query.&lt;br /&gt;# Instead, it will return the results as a string return value&lt;br /&gt;# from curl_exec() instead of the usual true/false.&lt;br /&gt;curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;&lt;br /&gt;// EXECUTE 1st REQUEST (FORM LOGIN)&lt;br /&gt;$store = curl_exec ($ch);&lt;br /&gt;&lt;br /&gt;// CLOSE CURL&lt;br /&gt;curl_close ($ch); &lt;br /&gt;&lt;br /&gt;if ($store=='') {&lt;br /&gt;&lt;br /&gt;//username and password are valid&lt;br /&gt;//if login is valid, hotfile website returns nothing&lt;br /&gt;echo '&amp;lt;br&amp;gt;&amp;lt;i&amp;gt;Login Works!! Enjoy.&amp;lt;/i&amp;gt;';&lt;br /&gt;&lt;br /&gt;} else {&lt;br /&gt;&lt;br /&gt;//username and password are not valid&lt;br /&gt;//if username or password is invalid, the website returns &lt;br /&gt;//invalid username or password page&lt;br /&gt;echo '&amp;lt;br&amp;gt;&amp;lt;i&amp;gt;Login does not work anymore. Try another one.&amp;lt;/i&amp;gt;';&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Code worked quite well. But then I thought of limited number of login attempt one can have on the remote website. So I never actually used this code on my website. I have posted this code here because this could help people like me who are in need of this functionality.&lt;/p&gt;&lt;br /&gt;&lt;h2&gt;Edit to make code work for you (this section is for novice):&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;Here in the code you will need to edit the POST FORM LOGIN URL.&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color="#00ff00"&gt;// SET URL FOR THE POST FORM LOGIN&lt;br&gt;&lt;/font&gt;curl_setopt(&lt;font color="#0080ff"&gt;$ch&lt;/font&gt;, CURLOPT_URL, '&lt;font color="#c0c0c0"&gt;http://www.hotfile.com/login.php&lt;/font&gt;')&lt;font color="#0000ff"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;br /&gt;&lt;p&gt;Here I have used Hotfile post form login. Where you will find URL that is used to login into Hotfile website. Open &lt;a href="http://www.hotfile.com"&gt;www.hotfile.com&lt;/a&gt;, Look at the login form on the site. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Hotfile.com login form" border="0" alt="Hotfile.com login form" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66_R-I-P2wZPp-6Sj2LcNL4SyHQPxRSSXY9tTgorMqnMbkUXQkSYpPlCh0TMCfaFU18ZqMStd4SPxh1m5IwGNo_Q-Duw0AzedyX4KTlprHp-VCF3MIt-8rkMwzSJULwknJ1-PguAcMr0/?imgmax=800" width="256" height="216"&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now, if you are on Firefox go to &lt;strong&gt;Tools &amp;gt; Web Developer &amp;gt; Page Source&lt;/strong&gt;. Find &lt;strong&gt;Username: &lt;/strong&gt;and look for &lt;font face="Courier New"&gt;form&lt;/font&gt; tag before and after &lt;strong&gt;Username:&lt;/strong&gt;. See the screenshot below.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Hotfile post login form code" border="0" alt="Hotfile post login form code" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi41YhjwaGolMGIiDXZk1unhcsFNGtNKuD4RYPjBt-EvVfJsR8Sk_8IKZkibVzH3zUCCg3dkTdIWDeBrNx2LoPDYwTRyJTwQmTFL0ELEhsPjVNvo6WKCwpge0tJYW6K4KDDEbbG5OtSqYY/?imgmax=800" width="568" height="153"&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now take note of value of &lt;font face="courier new"&gt;action=”/login.php”&lt;/font&gt; in the code, that value is used is in code below.&lt;/p&gt;&lt;font face="Courier New"&gt;&lt;font color="#00ff00"&gt;// SET URL FOR THE POST FORM LOGIN&lt;br&gt;&lt;/font&gt;curl_setopt(&lt;font color="#0080ff"&gt;$ch&lt;/font&gt;, CURLOPT_URL, '&lt;font color="#c0c0c0"&gt;http://www.hotfile.com/login.php&lt;/font&gt;')&lt;font color="#0000ff"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now we need to look at &lt;font face="Courier New"&gt;$postdata = 'user='.$username.'&amp;amp;pass='.$password;&lt;/font&gt; where &lt;font face="Courier New"&gt;user&lt;/font&gt; is taken from &lt;font face="Courier New"&gt;name&lt;/font&gt; value in the &lt;font face="Courier New"&gt;input&lt;/font&gt; tag.&lt;/p&gt;&lt;pre&gt;&amp;lt;p&amp;gt; &amp;lt;label&amp;gt;Username:&amp;lt;/label&amp;gt; &amp;lt;input name="user" type="text" class="textfield" /&amp;gt; &amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;This will be different for different sites so the same &lt;font face="Courier New"&gt;user&lt;/font&gt; is placed in &lt;font face="Courier New"&gt;$postdata = 'user='.$username.'&amp;amp;pass='.$password;&lt;/font&gt; And similar goes for &lt;font face="Courier New"&gt;pass&lt;/font&gt; in the code. It is taken from &lt;font face="Courier New"&gt;name&lt;/font&gt; value in the &lt;font face="Courier New"&gt;input&lt;/font&gt; tag.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;After adding the required values run this code.&lt;/p&gt;  </description><link>http://hornet-labs.blogspot.com/2012/03/login-into-remote-website-using-php.html</link><author>noreply@blogger.com (Software Pics)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66_R-I-P2wZPp-6Sj2LcNL4SyHQPxRSSXY9tTgorMqnMbkUXQkSYpPlCh0TMCfaFU18ZqMStd4SPxh1m5IwGNo_Q-Duw0AzedyX4KTlprHp-VCF3MIt-8rkMwzSJULwknJ1-PguAcMr0/s72-c?imgmax=800" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1378707667030856533.post-2546034985236561788</guid><pubDate>Sun, 18 Mar 2012 08:26:00 +0000</pubDate><atom:updated>2012-03-18T13:56:18.109+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Feedburner</category><category domain="http://www.blogger.com/atom/ns#">WordPress</category><title>Feed Validation Error: Feedburner unable to burn Rss Feed of my WordPress Blog</title><description>&lt;p&gt;This is the common error encountered in WordPress blogs. Most common error messages will look like “Error on line 34: XML document structures must start and end within the same entity.”, when you try to burn feed in Feedburner. You can directly validate feed there in Feedburner the other option you have go to this site &lt;a title="http://feedvalidator.org/" href="http://feedvalidator.org/"&gt;http://feedvalidator.org/&lt;/a&gt; and check if your WordPress blog had any errors in it. &lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt; &lt;p&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Feed Validator: Feed error" border="0" alt="Feed Validator: Feed error" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg712ZDahzJPb9eBSnP7HNZzQPA9dKQsUpR8nHtAN6Jwn-5Aj3IUkbnmrTXqaVnfq8JzjW7daojodz9y7p84bCgJJZ-HHaIVn5wBhbqZ5wpfstBKz0fBKGsxPA0nlNPM6e9ufPDzZuBNY/?imgmax=800" width="570" height="367"&gt; &lt;/p&gt; &lt;h2&gt;Deactivate Plugin or Change the Theme:&lt;/h2&gt; &lt;p&gt;If your blog feed contain errors it is mainly due to buggy plugins. Check your feed carefully where the error occured and also check the installed plugins in your WordPress blog. Deactivate the plugin that you think responsible for causing error in feed and check if feedburner burns it. If it burns your blog feed. Hurray! you have found out the buggy plugin. Else repeat the step, go check deactivate the plugin another plugin and check with feedburner.&lt;/p&gt; &lt;p&gt;Sometimes errors are caused due to the PHP lines in post where you want to execute those PHP lines to achieve additional functionality, for example voting system, where you want users to vote for each item in a single post. &lt;/p&gt; &lt;p&gt;If it’s not the plugin then go change your blog theme. Try another WordPress theme, it should work.&lt;/p&gt;  </description><link>http://hornet-labs.blogspot.com/2012/03/feed-validation-error-feedburner-unable.html</link><author>noreply@blogger.com (Software Pics)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg712ZDahzJPb9eBSnP7HNZzQPA9dKQsUpR8nHtAN6Jwn-5Aj3IUkbnmrTXqaVnfq8JzjW7daojodz9y7p84bCgJJZ-HHaIVn5wBhbqZ5wpfstBKz0fBKGsxPA0nlNPM6e9ufPDzZuBNY/s72-c?imgmax=800" width="72"/><thr:total>1</thr:total></item></channel></rss>