Jump to content

Help with file upload utility


helpmenow

Recommended Posts

[!--quoteo(post=382720:date=Jun 12 2006, 04:24 AM:name=helpmenow)--][div class=\'quotetop\']QUOTE(helpmenow @ Jun 12 2006, 04:24 AM) [snapback]382720[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I'm trying to add file upload form to one of my pages using php

you can view it at [a href=\"http://www.kgportraits.com/upload.php\" target=\"_blank\"]http://www.kgportraits.com/upload.php[/a]

there is a problem with the "copy" function if you notice. What is the problem here?

Thx.
[/quote]

Have you got the correct CHMOD settings for the folder you are wanting to upload to.

I believe they should be 777 and can be set from a basic FTP client such as SmartFTP.
[!--quoteo(post=382848:date=Jun 12 2006, 09:43 AM:name=scripts2go.co.uk)--][div class=\'quotetop\']QUOTE(scripts2go.co.uk @ Jun 12 2006, 09:43 AM) [snapback]382848[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Have you got the correct CHMOD settings for the folder you are wanting to upload to.

I believe they should be 777 and can be set from a basic FTP client such as SmartFTP.
[/quote]

yes...the permissions are set to allow writing by anyone. 777.

Does a PHP program have to be installed on the server? I'm not sure how PHP works...does "something" have to be installed on the server for this to work?

kg

[!--quoteo(post=382879:date=Jun 12 2006, 11:22 AM:name=litebearer)--][div class=\'quotetop\']QUOTE(litebearer @ Jun 12 2006, 11:22 AM) [snapback]382879[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Since the script is being parsed, you apparently have php on your server.

Perhaps if you showed us the code you are using we would be in a better position to assist.

Lite...
[/quote]

its not letting me post the code.

its from www.zachwhite.com - [a href=\"http://www.zachwhite.com/dl/download.pl?file=winadvuploader.zip\" target=\"_blank\"]http://www.zachwhite.com/dl/download.pl?fi...advuploader.zip[/a]
[!--quoteo(post=383088:date=Jun 13 2006, 04:36 AM:name=helpmenow)--][div class=\'quotetop\']QUOTE(helpmenow @ Jun 13 2006, 04:36 AM) [snapback]383088[/snapback][/div][div class=\'quotemain\'][!--quotec--]
its not letting me post the code.

its from www.zachwhite.com - [a href=\"http://www.zachwhite.com/dl/download.pl?file=winadvuploader.zip\" target=\"_blank\"]http://www.zachwhite.com/dl/download.pl?fi...advuploader.zip[/a]
[/quote]

i tried the download but curupt lol, copy and past the upload.php and rename it to upload.inc ok then give us the link then i think we can read it.
[!--quoteo(post=383090:date=Jun 12 2006, 11:47 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 12 2006, 11:47 PM) [snapback]383090[/snapback][/div][div class=\'quotemain\'][!--quotec--]
i tried the download but curupt lol, copy and past the upload.php and rename it to upload.inc ok then give us the link then i think we can read it.
[/quote]

Thanks! The paths to view both files "upload.php" and "config.php" (they work together) are here:

[a href=\"http://www.kgportraits.com/upload.inc\" target=\"_blank\"]www.kgportraits.com/upload.inc[/a]

[a href=\"http://www.kgportraits.com/config.inc\" target=\"_blank\"]www.kgportraits.com/config.inc[/a]

Thanks so much - hopefully you can figure this out. Also...I have put in this for you to look at:

[a href=\"http://www.kgportraits.com/phpinfo.php\" target=\"_blank\"]www.kgportraits.com/phpinfo.php[/a]

is my absolute path in config.php correct?

kg
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]

is my absolute path in config.php correct?

kg
[/quote]

change to this ok
config.php
[code]
$absolute_path = "http://www.kgportraits.com/uploads"; //Absolute path to where files are uploaded
[/code]
[!--quoteo(post=383100:date=Jun 13 2006, 12:20 AM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 13 2006, 12:20 AM) [snapback]383100[/snapback][/div][div class=\'quotemain\'][!--quotec--]
change to this ok
config.php
[code]
$absolute_path = "http://www.kgportraits.com/uploads"; //Absolute path to where files are uploaded
[/code]
[/quote]

nope
It is defently the config.php line for the upload file directory ok.

Try it this way then, becouse i get in your upload folder so try it ok.

[code]

http://www.kgportraits.com/uploads/

[/code]

or

[code]

www.kgportraits.com/uploads/

[/code]

or

[code]

uploads/

[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.