この機能がファイルをまったくコピーしていない理由を誰に教えてもらえますか? ($ urldest)へPHP 'コピー'が動作しない
私はそれが($ pluginfile)にファイルをコピーする必要があります。このファイルは/public_html/wp-admin/plugins.php
から実行される
$pluginfile = get_bloginfo('template_url') . '/wp-content/plugins/supersqueeze/supersqueeze.php';
$urlparts = get_bloginfo('template_url');
$homeurl = home_url();
$urlstrip = str_replace($homeurl, '..', $urlparts);
$urldest = $urlstrip . '/supersqueeze.php';
function copyemz(){
global $pluginfile; global $urldest;
if([email protected]($pluginfile,$urldest)) {
$errors= error_get_last();
}
}
/public_html/wp-content/plugins/supersqueeze/supersqueeze.php
は/public_html/wp-content/themes/[active wordpress theme]
- もちろんで[アクティブなWordPressのテーマ]を交換しますテーマのディレクトリ。
'$ errors'とは何ですか? – ajreal
@を取り除き、何が得られるのかを教えてください – meze
これはエラー抑制 '@'演算子を使用したくない場所の1つです。あなたがsuexec/fastcgi-phpを持つプロホスティングを持っていない限り、それはおそらく許可の問題です。 – mario