CGIを作成し、昨日からサーバ上でテストをしています。 ブラウザ上に何かを書き出すような物ではなく、約1時間に1度実行し、指定ディレクトリを読み、ファイルの名前と更新日などを別ファイルに出力するという物です。 無事に動いているように見えるのですが(必要なデータも取れるので)error.logを見ると「Premature end of script headers:〜」というエラーが必ず出力されます。 どういうものが理由として考えられますか?
before header.ttに <html> 〜〜〜〜〜〜〜〜 </htmlとか書いて、全ttに [%- WRAPPER header.tt -%]とかいちいち書く after wrapper.ttを作成、 [%- app_name = 'アプリの名前' -%] [%- IF template.name.match('^/admin') %] [% base_title = 'uriが/adminから始まるのでここは管理画面的です' %] [%- INCLUDE admin/default/header.tt %] [%- ELSE %] [% base_title = 'ユーザ画面です' %] [%- INCLUDE header.tt %] [%- END %]header.ttには [% content -%]と書いて、各ttでは何も書かずに済むようになった。この[% conte
Given a module name, this service will show you its dependencies along with a summary of their test results from the CPAN testers. The idea is that if you have a choice of several modules to use, this will show you which is the most reliable. Search Module Please note: this site is a tool to analyse the dependencies of modules written in the Perl programming language. I can not help you with any p
PATH_INFOと相対パス(リンク) おまえのブログさんのエントリーCGI::Application::Dispatch勉強中その2で でも、CGI::Application::Dispatchを使う場合は、PATH_INFO形式を利用することが前提なうえ、URIが全部、 http://example.com/dispatch.cgi/モジュール名/Runモード な感じになります。階層が全部一緒です。こうなると、今までの「URIの階層=ファイルのありか」という方法でテンプレートを並べて、リンクURIを相対パスで書く、というのが不便になりました。URIたびたび間違うし…。 これは僕も悩みました。あとでPATHが変更になりそうなときには絶対パス・リンクは使いづらいですし、Dreamweaverでも作成しにくい。なので最近作ったCGI::Application::Dispatchを利用したアプ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く