require_once('/recaptcha/recaptchalib.php'); was in the correct place
を与えたが、エラーは言う:のrequire_once()は私にエラー
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(C:\/recaptcha/recaptchalib.php) is not within the allowed path(s): (C:\Inetpub\vhosts\xxx.com\httpdocs\) in C:\Inetpub\vhosts\xxx.com\httpdocs\wp-content\themes\xxx\download.php on line 5
ラインのrequire_onceに5ポイントを。私はなぜそれがエラーを与えたのか分からない、地元の開発でそれは不平を言うことはありません。
EDIT#2 警告:タッチ()[function.touch]:ファイルCを作成できません:\ INETPUB \バーチャルホスト\ xxx.com \をhttpdocs/CSV /パンフレット-list.csvそのようなファイルのためまたはCでのディレクトリ:\ INETPUB \バーチャルホスト\ xxx.com \をhttpdocs \ WP-コンテンツ\テーマ\ mta2013 \ downbrochure.phpライン上の161
コード:
$filename= ABSPATH. 'csv/list.csv';
$isNew = (file_exists($filename) || is_file($filename)) ? false : true ;
touch($filename); //Sets access and modification time of file and If the file does not exist, Create it.
$fp = fopen($filename, 'a+');
forceHeader($columns,$filename);
fputcsv($fp, $formData);
fclose($fp);
私はここで何かを見下ろすことがあります。 ABSPATHを追加してもエラーは解決されません。ディレクトリが許可に設定するか、または「認識」されなかったので、私はそれを解決し
EDIT#3
よし。助けてくれてありがとう。
許可問題? – GoodSp33d
あなたのルートフォルダにrecaptchaを置くのは良いことではありません。それをドキュメントルートのどこかに置きます。 –
@Not_a_Golfer - wp-content/themes/new-theme – joe