Category: Web

[SOLVED] “417 – Expectation Failed” in PHP curl while submitting multi-part forms

April 14th, 2011 Permalink

I am using PHP Curl extension for a project which requires uploading file to a server I had no control over. However, I was getting HTTP Status 417 with error message Expectation Failed. I don’t know what this is supposed to do and why curl sends it, so I tried removing it by overriding it [...]

I am using PHP Curl extension for a project which requires uploading file to a server I had no control over. However, I was getting HTTP Status 417 with error message Expectation Failed. I don’t know what this is supposed to do and why curl sends it, so I tried removing it by overriding it with the following code: Continue Reading

[SOLVED] Selenium server not working in Netbeans 6.9.1

March 1st, 2011 Permalink

I am using Fedora Core 14 and have installed Selenium Module for PHP. I was not able to run PHPUnit tests on Yii Framework. I tried running Selenium server 1.0.1 and upgrade to 1.0.3 solved the problem.

I am using Fedora Core 14 and have installed Selenium Module for PHP. I was not able to run PHPUnit tests on Yii Framework. I tried running Selenium server 1.0.1 and upgrade to 1.0.3 solved the problem.

Continue Reading

PHP Error while running newly created Yii Application

February 27th, 2011 Permalink

If you are using PHP 5.3 and have created a new Yii! Framework 1.1 application, you will get the following error:

If you are using PHP 5.3 and have created a new Yii! Framework 1.1 application, you will get the following error: Continue Reading

[HOWTO] Enable cross-domain upload with uploadify jQuery plugin

February 24th, 2011 Permalink

I have used uploadify v2.1.4 in one of my client’s website. According to the requirements, a form in a website had to submit data to another website. The form also contained file uploads for which uploadify was being used. But uploadify does not support uploading from another site as it uses relative url. Also, flash [...]

I have used uploadify v2.1.4 in one of my client’s website. According to the requirements, a form in a website had to submit data to another website. The form also contained file uploads for which uploadify was being used. But uploadify does not support uploading from another site as it uses relative url. Also, flash does not support sending/receiving data to/from another site by default for security reasons.

Continue Reading

[HOWTO] Configure Netbeans 6.9 to debug PHP files using xdebug in Fedora 14

February 21st, 2011 Permalink

I am using Netbeans 6.9 on Fedora 14 for Web development. I have enabled PHP debugging for making PHP development easier. Here is how you can do it too.

I am using Netbeans 6.9 on Fedora 14 for Web development. I have enabled PHP debugging for making PHP development easier. Here is how you can do it too.

Continue Reading

Create Fake Facebook Status and Comments

February 20th, 2011 Permalink

You can create fake Facebook Status and Comments using FakeBookStatus. Check it out.

You can create fake Facebook Status and Comments using FakeBookStatus. Check it out.

[SOLVED] PHP Fatal error: Call to undefined method Zend_Http_Client::setRawDataStream() in /path/Zend/Gdata/App.php on line X

February 7th, 2011 Permalink

I am trying to use Zend Gdata Library for uploading videos to YouTube. I was trying to test the example provided, but got into a problem running the example. Here was the error:

I am trying to use Zend Gdata Library for uploading videos to YouTube. I was trying to test the example provided, but got into a problem running the example. Here was the error: Continue Reading

[HOWTO] Increase your ibibo TeenPatti Cash by stealing/hacking from others

December 22nd, 2010 Permalink

Ibibo Teen patti is a widely played online card game. It is flash game available as Facebook application. It can also be played directly from ibibo.com.

Ibibo Teen patti is a widely played online card game. It is flash game available as Facebook application. It can also be played directly from ibibo.com.

Continue Reading

[HOWTO] Make disqus comments do-follow in WordPress

December 17th, 2010 Permalink

I am using Disqus Comment System v2.61 and it shows comments as nofollow. This is a concern for several WordPress users as their commentators may not be interested to comment if they get no link love via comment url. The disqus comments are later generated by Javascript but it also contains the basic comments for [...]

I am using Disqus Comment System v2.61 and it shows comments as nofollow. This is a concern for several WordPress users as their commentators may not be interested to comment if they get no link love via comment url. The disqus comments are later generated by Javascript but it also contains the basic comments for browsers without Javascript. While I have not yet figured out how the Javascript later inserts “nofollow” attribute later when regenerating the comments with Javascript, I have figured out how to remove the ‘rel=”nofollow”‘ from the link of the basic page, which should work for search engine robots. In the version of Disqus Comment System I am using, the comment_author_url() seems to not work. So, I replaced it with get_comment_author_url() and it seems to work. Following is the new comments.php which shows the links as do-follow. Continue Reading

[HOWTO] Install Greasemonkey Firefox Addon in Firefox 4

November 27th, 2010 Permalink

I have installed Firefox 4 in my Debian Testing installation from Launchpad PPA. It is quite stable and I have decided to use it instead of Firefox 3. Most of the addons I used is compatible with Firefox 4 by now. However, the version of Greasemonkey available in Mozilla Firefox Addons Site is not compatible [...]

I have installed Firefox 4 in my Debian Testing installation from Launchpad PPA. It is quite stable and I have decided to use it instead of Firefox 3. Most of the addons I used is compatible with Firefox 4 by now. However, the version of Greasemonkey available in Mozilla Firefox Addons Site is not compatible with Mozilla Firefox v4 latest build. To install the latest nightly build of Greasemonkey, I went to Greasemonkey Nightly Download and installed it. However Greasefire is not available, we can install userscripts directly from Userscripts website for now.