GetDotted Domains

Viewing Thread:
"Uploads (in PHP)"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 30/11/01 at 01:21
Regular
Posts: 787
Hey im working on my site and i just wanted to know dose freeola support file uploads and if they do is there a limit on how big the file can be?
Sun 02/12/01 at 14:21
Posts: 0
Also did you chmod the htdocs folder?
Sun 02/12/01 at 14:18
Posts: 0
Ah maybe they just dont let you upload into htdocs to stop people from uploading there site who are not connected to freeola.

Add this before line10 again
$File_Dir = "/freeola/users/*/*/sr*******/upload";

then just create a folder called upload in the root of your site. Then chmod and tick all
Sat 01/12/01 at 17:22
Regular
"It goes so quickly"
Posts: 4,083
/freeola/users/*/*/sr*******/htdocs

where * is the numbers from My Freeola ID.
Sat 01/12/01 at 16:32
Posts: 0
just before line 10 add...
echo $File_Dir;

and tell me what it says please
Sat 01/12/01 at 16:22
Regular
"It goes so quickly"
Posts: 4,083
I tried them both, but it still won't have any of it.

copy($fupload, "$File_Dir/$fupload_name") or die("Upload to $File_Dir/$fupload_name Not Completed.");

that is the line of code it says it's having a problem with (Line 10) ... can you see anything wrong with it?
Sat 01/12/01 at 16:11
Regular
"Eff, you see, kay?"
Posts: 14,156
666: Read/write all
777: Read/write/execute all
Sat 01/12/01 at 16:00
Regular
"It goes so quickly"
Posts: 4,083
Which combination of Ticks would that be though Rob?? I'm using IE to Upload files, and it only has the tickbox way of CHMOD-ing files.
Sat 01/12/01 at 15:27
Regular
"Eff, you see, kay?"
Posts: 14,156
Try 666. If not, 777.
Sat 01/12/01 at 15:16
Posts: 0
Wow i thought it be loads of lines turns out its only Copy() anyway it works heres the code for any1 who wants it

To use just create a folder in your Root DIR call it upload(or what ever you like later) chmod the folder to full permission Aslo you gotta change /freeola/users/6/5/sr0123456/ to your root dir


Testing a upload script

Upload script



if (($Submit != "") && ($img1 != "")) {
@copy("$img1", "/freeola/users/6/5/sr0123456/upload/$img1_name") or die("Sorry Error while trying to upload");
echo "Uploaded: $img1_name($img1_size)";
exit;
}
?>

File to upload:





Sat 01/12/01 at 14:17
Regular
"It goes so quickly"
Posts: 4,083
Which CHMOD should I use Rob???

When I try to execute the Script now, I'm told that permision is denied.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Excellent support service!
I have always found the support staff to provide an excellent service on every occasion I've called.
Ben
Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.