php

macにPECLのpecl_httpをインストール

macでPHPのhttp_parse_headersを使ったら、 Call to undefined function http_parse_headers() と怒られた。sudo pecl install pecl_httpの後、 php.iniにextension=http.soを追加しサーバ再起動でおk

symfonyのcookie保存memo

factory.yamlのsend_http_headersを有効にする response: class: sfWebResponse param: send_http_headers: truesetCookieメソッドの処理の後にsendHttpHeadersメソッドを呼び出さないとcookieに書き込まれなかった getResponse()->setCookie(sfConfig::get(…

apache shindingの環境構築

ソーシャルアプリの開発環境を作るため構築OS ubuntu 10.10 php 5.2.2apache shindigをダウンロード http://www.apache.org/dist/shindig/2.0.0/shindig-2.0.0-php.zip/var/www/shinding配下に展開http://localhost/shindig/index.phpにアクセスcurlがないと…

symfony 404エラーハンドリングではまったのでメモ

http://symfonyframework.blog92.fc2.com/blog-category-1.html を元にsettings.ymlをいじってみたがなぜか上手くいかなくかなり時間を取った。色々調べていたらwebフォルダのindex.php $configuration = ProjectConfiguration::getApplicationConfiguration…