2009-07-29 16 views
0

アムPEARとPHPを使用したグリッド・カレンダーを作成しようとしているが、私は私のブラウザでファイルをプレビューするとき、私は、次を得る:PHP:PEARカレンダーグリッドは、ブラウザでレンダリングされない

*Warning: include(Calendar/Month/Weekdays.php) [function.include]: 
    failed to open stream: No such file or directory 
    in /Users/x/Sites/p/testing pages/Pear_Date.php on line 8 
Warning: include() [function.include]: Failed opening 'Calendar/Month/Weekdays.php' 
    for inclusion (include_path='.:') in /Users/x/Sites/p/testing pages/Pear_Date.php 
    on line 8 
Fatal error: Class 'Calendar_Month_Weekdays' not found 
    in /Users/x/Sites/p/testing pages/Pear_Date.php on line 10* 

は私が固定と思いましたこの前に。 PEARのインストール・ログには、次のように述べています

*Current include path : .: 
Configured directory : /Users/x/PEAR 
Currently used php.ini (guess) : 
Press Enter to continue: 
The 'pear' command is now at your service at /Users/x/bin/pear 
** The 'pear' command is not currently in your PATH, so you need to 
** use '/Users/x/bin/pear' until you have added 
** '/Users/x/bin' to your PATH environment variable.* 

私は、私は私の問題を解決すると思った記事を見つけた - How to set up PEAR on Mac OS X 10.5 Leopard

それは私も更新include_path = ".:/php/includes:/Users/x/bin/pear" を読み込むので、だから私は私のphp.iniファイル内のinclude_path行を編集しました私の.bash_profile文書に記載されているのでのような記事によると

あなたが助けるために十分な情報を提供します。

答えて

1

あなたのinclude_pathは - PHPが指示する通り--include_path = '.:'、つまり現在のパスのみです。あなた、これはまだ問題が解決しない場合は、Apacheの再起動し、Apacheの設定を経由して(sudoを使用して、root /としてLinuxで、私はOS Xのことは知らない)

/etc/init.d/apache2 reload 

をリロードする必要があります(念のため)とすると、 include_pathが(行頭にセミコロンで)コメントされていないことを確認してから、繰り返してください。

[EDIT:]

php.iniの行がコメントである場合、Apacheはそれを解析しません。

はあなたのライン(正しく)です:

include_path = ".:/php/includes:/Users/x/bin/pear" 

などのコメント:

;include_path = ".:/php/includes:/Users/x/bin/pear" 

あなたがphp.iniを編集する必要がある場合は、あなたがdecribedとしてApacheの設定をリロードする必要があります上記。

+0

sudo /etc/init.d/apache2リロードを試しても、コマンドが見つかりませんでしたか? –

+0

OK私はapache2をリロードすることができましたが、元のqに記載されているエラーメッセージが表示されます - "include_path = '.:" " –

+0

include_pathのコメントは外されていますか? – Residuum

関連する問題