こんにちは、神崎です。 以前、英語の文献を読もうという記事を書きましたが、 その具体的なコードについて、今回は書きます。 YoutubeAPIで動画の公開範囲を設定できるのですが YoutubeのAPIとしては、公開、非公開、限定公開というものを設定できます。 しかし、Zend Framework(ver.1.11)の Zend_Gdata_Youtubeでは 公開(public)、非公開(private)の設定は出来るのですが、限定公開(unlisted)の設定ができません。 以前書いたように、英語のforum内ではこの件に関してやりとりがされていて 下記のようなclassを書くとよいです。 /** * my_Zend_Gdata_YouTube_VideoEntry * * @uses Zend * @uses _Gdata_YouTube_VideoEntry * @pack
今まで、PHPからPOSTリクエストを送信する方法は、fsockopen関数を使って書く方法しか知らなかったが、調べてみると意外といろいろな方法があった。 fsockopen関数を使う方法 →参考:PHP TIPS Vol.3 ソケット拡張モジュールを使う方法 →参考:HTTPリスエストをそのまま返すPHPサーバ | Shin x blog ストリーム関数+ファイルシステム関数を使う方法 →参考:cURLを使わずに、PHPでPOSTリクエストを送信する - PHPプロ!ニュース HTTP拡張モジュールを使う方法 CURL関数を使う方法 →参考:php curlをつかったオリジナルクラス (myCurlRequest) - hiyuzawa.jpn.org Zend_Http_Clientを使う方法 →参考:【PHP TIPS】 51. ス
PHP is the most widely used web based programming language that powers millions of websites including some of the most popular ones like Facebook. Here are 21 really useful and handy PHP code snippets that every type of PHP developer will find useful. 1. Human Readable Random String This code will create a human readable string that will look more close to dictionary words, useful for captchas. /*
The html blog | 10 code snippets for PHP developers I've compiled a small list of some useful code snippets which might help you when writing your PHP scripts PHP開発者が便利に使える10のスニペット集が紹介されていました。 メールアドレスチェック簡単化 php-email-address-validation クラスを使ったメールアドレスチェック http://code.google.com/p/php-email-address-validation/ include('EmailAddressValidator.php'); $validator = new EmailAddressValidator; if ($valida
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く