Jump to content


Photo

Help with file upload utility


  • Please log in to reply
9 replies to this topic

#1 helpmenow

helpmenow
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 12 June 2006 - 03:24 AM

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.

#2 d_barszczak

d_barszczak
  • Members
  • PipPipPip
  • Advanced Member
  • 188 posts
  • LocationBradford - UK

Posted 12 June 2006 - 02:43 PM

[!--quoteo(post=382720:date=Jun 12 2006, 04:24 AM:name=helpmenow)--][div class=\'quotetop\']QUOTE(helpmenow @ Jun 12 2006, 04:24 AM) View Post[/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.

When all else fails - Try reading the manual.

Integrated IT Systems Ltd


#3 helpmenow

helpmenow
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 12 June 2006 - 03:31 PM

[!--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) View Post[/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



#4 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 12 June 2006 - 04:22 PM

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...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#5 helpmenow

helpmenow
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 June 2006 - 04:36 AM

[!--quoteo(post=382879:date=Jun 12 2006, 11:22 AM:name=litebearer)--][div class=\'quotetop\']QUOTE(litebearer @ Jun 12 2006, 11:22 AM) View Post[/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]

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 13 June 2006 - 04:47 AM

[!--quoteo(post=383088:date=Jun 13 2006, 04:36 AM:name=helpmenow)--][div class=\'quotetop\']QUOTE(helpmenow @ Jun 13 2006, 04:36 AM) View Post[/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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#7 helpmenow

helpmenow
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 June 2006 - 05:02 AM

[!--quoteo(post=383090:date=Jun 12 2006, 11:47 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 12 2006, 11:47 PM) View Post[/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

#8 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 13 June 2006 - 05:20 AM

[!--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
$absolute_path = "http://www.kgportraits.com/uploads"; //Absolute path to where files are uploaded

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#9 helpmenow

helpmenow
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 June 2006 - 05:25 AM

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

nope

#10 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 13 June 2006 - 05:59 AM

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.


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


or


www.kgportraits.com/uploads/


or


uploads/


Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users