Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
Well .. i'm stumped (upload to site)
« previous
next »
+
Print
Pages: [
1
]
Go Down
Well .. i'm stumped (upload to site)
4 Replies
439 Views
bron
Well .. i'm stumped (upload to site)
«
on:
June 14, 2003, 04:37:04 AM »
Well, thanks to advice off others and a long RTFM incident I have managed to get e-smith functioning on my server. However, now i've moved my site onto it i've found that I can't upload any files any more.
(pardon my poor coding skills ...)
I have this in a form on one page:
On the next page I have:
$upfile = "/home/e-smith/files/primary/files/preupload/".$Photo_name;
if ( !copy($Photo, $upfile))
{
echo "Problem: Could not move file into directory, please go back and try again.";
exit;
}
Which gives the error shown above when try and use it. The path exists so i'm not sure how to trouble shoot this problem. It works on the old server I have just fine. Any advice would be appreciated.
Bron
Logged
Terry
Re: Well .. i'm stumped (upload to site)
«
Reply #1 on:
June 14, 2003, 06:19:23 AM »
I'm not a pro with www stuff but...if this is a web app (as apposed to someone ftp'ing into the server) the path would be from the root of the webserver, not from the root directory of the server itself.
I think your line should read more like:
$upfile = "//files/preupload/".$Photo_name;
or something like that...
Terry
Logged
bron
Re: Well .. i'm stumped (upload to site)
«
Reply #2 on:
June 14, 2003, 02:15:31 PM »
It works the way I described it on the version of eSmith i had before as well as in the ibays of 5.6, it's just in the primary files directory where I can't seem to write the files.
Anyone have any suggestions?
Logged
Terry
Re: Well .. i'm stumped (upload to site)
«
Reply #3 on:
June 14, 2003, 02:26:24 PM »
What was theold version? Is this a php page? Is this script running from the primary site and trying to put something in the primary site? As of 5.5 "php sandboxing" has been turned on, it will only allow an ibay access to that ibay and so on. Just grasping at straws here, please provide as much details as you can.
Logged
bron
Re: Well .. i'm stumped (upload to site)
«
Reply #4 on:
June 15, 2003, 03:25:55 PM »
Hi Terry, I got around it by making an i-bay for the uploads, works a charm
.
Bron
Logged
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Legacy Forums
General Discussion (Legacy)
Topic:
Well .. i'm stumped (upload to site)