seitaito
フォーラムへの返信
-
フォーラム: 使い方全般
返信が含まれるトピック: ファイルのパーミッションについて上記のコメはアメリカのサーバー
http://www.hostso.com/affordable_web_hosting.phpからのものです。勉強不足ですいません。サーバーの方が何かの制限をしていたのらしく解除しくれたのですがイメージのみへアクセスできない状態です。またADMINパネルから全ての「EDIT」[HEADER][STYLE.CSS][HOTER]等の編集も出来ません。何処かのパーミッション絡みだと思うのですがお手上げです。分かりますでしょうか?
フォーラム: 使い方全般
返信が含まれるトピック: ファイルのパーミッションについて解答がえられました。
Hello,
You can not use file_get_contents php function, as it requires allow_url_fopen enabled.
We have disabled allow_url_fopen php configuration on the server due to its hacking vulnerabilities ,
very few applications require it, and by disabling it we will prevent exploitation of PHP remote include vulnerabilities. Applications that do require it can be modified to use cURL instead.======================================
Please contact your developer and modify the code in your filename.php as follows.
Instead of:
$file_contents = file_get_contents(‘http://example.com/’);
// display file
echo $file_contents;
?>
——————-Use this:
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, ‘http://example.com’);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
echo $file_contents;
?>Don’t hesitate to contact us if you require any further assistance.
Regards,
フォーラム: 使い方全般
返信が含まれるトピック: wordpressmuのマニュアルを探していますデータベース作りましたか?詳細もっとアップすべし。 wp-adminの中の
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘putyourdbnamehere’);/** MySQL database username */
define(‘DB_USER’, ‘usernamehere’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘yourpasswordhere’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);はなんて記入しましたか?