UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 31st December 2002, 08:06 PM   #21 (permalink)
squawkBOX
Registered User
 
Join Date: Oct 2002
Location: Falkirk, Scotland
Posts: 53
Re:Looking for a php upload script

Still getting the:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, billyfinlay@blueyonder.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
__________________
Note: there = 1. at or in that place; 2. toward, to, or into that place; 3. used in impersonal constructions in which the real subject follows the verb. their = The possessive form of they. they're = The contracted form of they are.
squawkBOX is offline   Reply With Quote
Old 31st December 2002, 08:19 PM   #22 (permalink)
Rocky
Registered User
 
Join Date: Dec 2002
Location: Scotland
Posts: 139
Send a message via ICQ to Rocky
Re:Looking for a php upload script

It looks okay, here's mine - you can see I left the return html page blank in mine, you might want to try that, seeing as how we are getting desperate now.

$Data = "/home/sites/site2/web/upload";
#   On your server, create a directory where this program will write the files
#   to. Make sure you CHMOD this directory to 777. If you do NOT specify a $Data
#   directory, the program will attempt to write to the web root directory.
#   NOTE: YOU SHOULD ALWAYS SPECIFY A DIRECTORY TO STORE THE UPLOAD

@good_extensions = ();
#   If you want to limit the types of extension that can be uploaded, specify them
#   here by adding them to the array. For example, if you wanted to permit only
#   the upload of gif's, jpg's and png's, then you would set the above array to
#   look like this:
#   @good_extensions = ('gif', 'jpg', 'jpeg', 'png');
#

@bad_extensions = ();
#   If you want to permit the upload of all file types with only certain exceptions,
#    then specify those extensins in the bad_extensions array. This means that if set
# this array to contain .exe, .pl, .cgi files, then the program will only store a
#   file if the extension of that file is NOT found in this array.
#   To set the array to exclude these sample extensions, you would set it like this:
#   @bad_extensions = ('exe', 'cgi', 'pl');
#

   #   NOTE: If you specify both @good_extensions and @bad_extensions, then
   #   the settings in @bad_extensions will be ignored and the program will
   #   use @good_extensions as it's refrence.

$redirect = "";
#   When the upload of files is complete, the program must print someting out on the
#   browser screen. Set the $redirect variable to the full URL (don't forget the http://)
#   that you want the person taken to once the program is finished. If you don't specify
#   a URL here, the program will print out a simple upload summary page.

$max_size = 100;
#   Set the maximum size of each file that is permitted. For example, if you only want
#   files to be uploaded that are under 50Kb in size, set the value to:
#   $max_size = 50;
#   If you set the value to zero, remove it or comment it out, then the size of the
#   uploaded file will NOT be checked.

$max_num_files = 2;
#   You must specify the maximum number of files that can be uploaded at one time. You
#   can set this to any number you want but be realistic. The limit before the server
#   times out will depend on the maximum size of the upload. I have tested this program
#   with ASCII files up to 8MB in size successfully but that was on a particularly
#   robust server. I recommend that you set this no higher than 5 if you are going to
#   be using this for larger binary files such as images or executables or word docs, etc.
#   If you remove, comment out or set this value to zero, the program will default the
#   value to 1 file.

$auto_rename = 2;
# This variable tells the program whether or not to over-write or reject like
# named files. Therefore, if you upload a file with a name that already exists
# on the server, set this value for the appropriate following results:
# 0 => Overwrite the existing file
# 1 => Leave existing file in place, serialize the name of the new
# new file (i.e. some_book.doc, some_book1.doc, some_book2.doc, etc)
# 2 => Reject the new file. Leaves the original file in place and rejects
# the new file so that it is not saved.
# The default setting of this var is 0.
__________________
Rocky
GhostRecon.net | Rainbow Six | PSP Guides | Tactical Elite
Rocky is offline   Reply With Quote
Old 31st December 2002, 08:26 PM   #23 (permalink)
Rocky
Registered User
 
Join Date: Dec 2002
Location: Scotland
Posts: 139
Send a message via ICQ to Rocky
Re:Looking for a php upload script

[quote author=squawkBOX link=board=7;threadid=110;start=15#791 date=1041363728]


$Data = "/var/www/html/ftp";

[/quote]

I'm not saying that is wrong, but I couldn't find anywhere at UH where they tell us the absolute paths - I would have hoped to find it in the FAQ beside the perl paths at http://www.unitedhosting.co.uk/support_faq.php but I can't see it...
__________________
Rocky
GhostRecon.net | Rainbow Six | PSP Guides | Tactical Elite
Rocky is offline   Reply With Quote
Old 31st December 2002, 08:29 PM   #24 (permalink)
squawkBOX
Registered User
 
Join Date: Oct 2002
Location: Falkirk, Scotland
Posts: 53
Re:Looking for a php upload script

Does the cgi have to be in cgi-bin ?
__________________
Note: there = 1. at or in that place; 2. toward, to, or into that place; 3. used in impersonal constructions in which the real subject follows the verb. their = The possessive form of they. they're = The contracted form of they are.
squawkBOX is offline   Reply With Quote
Old 31st December 2002, 08:33 PM   #25 (permalink)
Rocky
Registered User
 
Join Date: Dec 2002
Location: Scotland
Posts: 139
Send a message via ICQ to Rocky
Re:Looking for a php upload script

Good question.

The cgi files have to be in a folder called cgi-bin AFAIK.

But UH have a folder structure I am not familiar with - i.e. the cgi-bin has been created outside the public html folder.

I was going to ask UH if a "cgi-bin" inside the "mainwebsite_html" folder would be okay or not.... I'll start a new thread on that.
__________________
Rocky
GhostRecon.net | Rainbow Six | PSP Guides | Tactical Elite
Rocky is offline   Reply With Quote
Old 31st December 2002, 08:36 PM   #26 (permalink)
Rocky
Registered User
 
Join Date: Dec 2002
Location: Scotland
Posts: 139
Send a message via ICQ to Rocky
Re:Looking for a php upload script

For cgi-bin location see http://www.unitedhosting.co.uk/forum...y;threadid=119
__________________
Rocky
GhostRecon.net | Rainbow Six | PSP Guides | Tactical Elite
Rocky is offline   Reply With Quote
Old 31st December 2002, 08:36 PM   #27 (permalink)
squawkBOX
Registered User
 
Join Date: Oct 2002
Location: Falkirk, Scotland
Posts: 53
Re:Looking for a php upload script

If I try to create a cgi-in in the directory that I am using for the upload ( /ftp ) I get the follow message:

Method Not Allowed
The requested method POST is not allowed for the URL /ftp/cgi-bin/upload.cgi.
__________________
Note: there = 1. at or in that place; 2. toward, to, or into that place; 3. used in impersonal constructions in which the real subject follows the verb. their = The possessive form of they. they're = The contracted form of they are.
squawkBOX is offline   Reply With Quote
Old 31st December 2002, 08:38 PM   #28 (permalink)
Rocky
Registered User
 
Join Date: Dec 2002
Location: Scotland
Posts: 139
Send a message via ICQ to Rocky
Re:Looking for a php upload script

You have put the file exactly where I would have put it - in a cgi-bin folder.
__________________
Rocky
GhostRecon.net | Rainbow Six | PSP Guides | Tactical Elite
Rocky is offline   Reply With Quote
Old 4th February 2003, 04:23 AM   #29 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

Did you get the upload script to work? I'm trying to install Dropbox from Pearl Services at the moment. It used to work on my old server but I'm having problems with it here.
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 4th February 2003, 09:10 AM   #30 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:Looking for a php upload script

ozsan

1. Make sure the permissions are correct
2. Make sure CGI goes in CGI-BIn
3. Make sure Perl goes in the Perl directory,
4. Make sure paths are correct.

If you want to paste the path here I can tell you if its correct or not.

Permission needs to be executable for CGI. (755 i think).
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 4th February 2003, 09:55 AM   #31 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

I may have discovered the problem. one of the files is missing. I know I saved all the files that were on my old server so I have no idea where it has gone. I may have to contact Pearl services to see if they can give me the file or I may have to look for a new script.
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 4th February 2003, 09:58 AM   #32 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:Looking for a php upload script

There are loads of good PHP upload scripts:

http://php.resourceindex.com/Complet...ile_Uploading/

These look good:

http://ants-network.co.uk/FileUpload

http://wonderful.frenzied.org/useful.php

__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 8th February 2003, 10:32 PM   #33 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

???I've looked at so many scripts it's sending me crazy, so I've taken a few days away from it and came to my original conclusion that the one I was using before, Drop Box, is the one which suits me best.
Now the headches of installing it begin, I'm not goos with this sort of stuff.
The path it comes with is "#!/usr/bin/perl" is that correct?
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 8th February 2003, 10:37 PM   #34 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:Looking for a php upload script

Yep thats correct.

The FAQ on our support page gives the path to perl
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 9th February 2003, 03:15 AM   #35 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

Ok we are getting there. Now I need to know what the Absolute Path is, how can I find that out?
Thanks
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 9th February 2003, 03:18 AM   #36 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:Looking for a php upload script

"/home/virtual/site43/fst/var/www/html/"

is the absolute path to your html directory.
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 9th February 2003, 03:31 AM   #37 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

Thanks Matt
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 9th February 2003, 03:42 AM   #38 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

??? when I put that in it also wants the absolute path which I put in as http://www.photorenovate.com/uploads/
and I get an error message telling me that it's not a valid directory
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 9th February 2003, 03:45 AM   #39 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

sorry not absolute path I ment full url
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Old 9th February 2003, 03:46 AM   #40 (permalink)
ozsan
Registered User
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 159
Send a message via Yahoo to ozsan
Re:Looking for a php upload script

Don't worry it's ok now my error
__________________
Photo Renovate
We care about your precious
Memories as much as you do.
ozsan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 04:22 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309