Recently I had to deal with Twitter avatar upload for a Twitter application. Everything went very well, but when I have prepared everything for the upload query, the only server response I got was Error 417.
Since I used cURL, I tried to deal with different headers, but with no luck at all. I found the solution at MSDN website. The correct string is:
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Expect:’));
You need to add it to your cURL block. This issue is related to Twitter only; I have no idea why they decided to accept only blank Expect header. Hope it saves you some time.
For those who use Godaddy.com, I’d like to share some coupon codes. Here they are:
SAVE 15%* off your purchase of $50 or more. Just use source code gdbb1728
Take 10% off your order. Simply enter gdbba22
SAVE 20%* off your purchase of $65 or more. Just use source code gd9bb
Hope it saves you some money.
Recently I decided to switch to Electronic Funds Transfer for Google Adsense, since it’s more quick and convenient for me. I have already received some checks and I decided to credit them back to receive funds via Western Union Quick Cash. I’ve followed Google advices, and went to the following link. I have tried filling this form about 10 times, trying different values for Payment Amount (Checks are in USD, but my reporting currency is EUR). Every time the response was the same: We are unable to find your check. There are no guidelines or hints on filling the form; Adsense forums are full of messages reporting errors.
Finally I found the solution, that has successfully stopped my check and funds were credited to account balance. Here it is:
All you need is to use another initial URL for the form. Here is the correct URL: https://www.google.com/adsense/support/bin/request.py?contact_type=request_reissue_received. After I filled this form, I got the message that my check was stopped.
Hope it saves you some time, since I spent some hours trying to find the solution.
If you need to work with Russian text in PHP, you may notice that functions that are related to CaSe are not working as expected. I mean strtolower, strtouper, ucwords, and so on. In order to get what you need I suggest to use mb_convert functions. Here is the example:
$string = "Строка";
$string = mb_convert_case($string, MB_CASE_LOWER, "UTF-8");
echo $string;
//output is: строка
?>
You can check reference table for functions, I think you will find more useful functions for you.