467,894 Members | 1,761 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,894 developers. It's quick & easy.

Dummy rights problems with Plesk

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
  • viewed: 1581
Share:
2 Replies
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
> 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.

Similar topics

reply views Thread by Jonathan Fine | last post: by
29 posts views Thread by Steve | last post: by
10 posts views Thread by Tayfun Özdemir | last post: by
reply views Thread by Steve | last post: by
3 posts views Thread by Simon Brooke | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.