Well I have a problem that me and Örjan together can't solve..
function process_copy(){
$location = $_REQUEST['new_location'];
$files = $_REQUEST['new_files'];
$exp = explode("\n", $files);
for($i=0;$i<=count($exp)-2;$i++){
$true = copy($exp[$i], $location);
}
if($true == true){
display_message("success", "<p>File(s) successfully copied to destination folder. <a href='index.php'>Main page</a>.</p>");
}elseif($true == false){
display_message("error", "<p>File(s) were not copied to destination folder. <a href='javascript:history.go(-1);'>Go back</a>.</p>");
}
}
Says:
Quote
Warning: copy(/home/something/public_html/changelog.txt ) [function.copy]: failed to open stream: No such file or directory in /home/something/public_html/demo/fm/includes/fm_class.php on line 677
But this file exists there..
function process_copy(){
$location = $_REQUEST['new_location'];
$files = $_REQUEST['new_files'];
$exp = explode("\n", $files);
for($i=0;$i<=count($exp)-2;$i++){
$content = file_get_contents($exp[$i]);
$open = fopen($location.DIRECTORY_SEPARATOR.basename($exp[$i]), "a");
$true = fwrite($open, $content);
fclose($open);
}
if($true == true){
display_message("success", "<p>File(s) successfully copied to destination folder. <a href='index.php'>Main page</a>.</p>");
}elseif($true == false){
display_message("error", "<p>File(s) were not copied to destination folder. <a href='javascript:history.go(-1);'>Go back</a>.</p>");
}
}
Quote
Warning: file_get_contents(/home/something/public_html/changelog.txt ) [function.file-get-contents]: failed to open stream: No such file or directory in /home/something/public_html/demo/fm/includes/fm_class.php on line 672
Hmm.. But this file is there -.-

It is really important, please help me :(


Sign In
Create Account

Guest_Jaan_*
Back to top











