By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

Dummy rights problems with Plesk

P: n/a
Hi guys, I've an hosting in media temple (appliance-server) with plesk
7.5.1. I'm trying to bring make a CMS I did in another server to work
there. The issues is related the file uploading, in fact a dummy script
like that:

$newname="ciro.jpg";
$uploaddir="test_folder/";
copy($file, $uploaddir.$newname);
unlink($file);

in media temple doesn't work, it seems it arrives no file from the
upload html page. Obviously this script works fine in the other server.
At the beginning they told me that was an issue related to the safe_mode
that was ON. So I turned it off and restarted the machine. From the
phpinfo it seems I did correct:

http://www.delete-uk.com/info.php

Their assistance, very weak, can't help me further... does anyway have
an idea on how to upload files in that bloody server?
Thanks a lot, chr
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The ftp functions seem to work fine. Since I never used them, does
anyone has some reccomandation on use them?

Thanks a lot, chr
Jul 17 '05 #2

P: n/a
> The ftp functions seem to work fine. Since I never used them, does
anyone has some reccomandation on use them?


also with the ftp the file upload doesn't work in my media temple hosting:

<?php
$remote_file = 'httpdocs/test_folder/ciro.jpg';

// set up basic connection
$conn_id = ftp_connect("ftp.mysite.com");

// login with username and password
$login_result = ftp_login($conn_id, "xxx", "xxx");

// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_BINARY)) {
echo "successfully uploaded $file\n";
} else {
echo "There was a problem while uploading $file\n";
}

// close the connection
ftp_close($conn_id);
?>

the file is empty, a kind of 0 bites file. There should be for sure some
restriction from media temple, but which ones???
thx, chr
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.