helpmenow Posted June 12, 2006 Share Posted June 12, 2006 I'm trying to add file upload form to one of my pages using phpyou 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 Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/ Share on other sites More sharing options...
d_barszczak Posted June 12, 2006 Share Posted June 12, 2006 [!--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 phpyou 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. Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44612 Share on other sites More sharing options...
helpmenow Posted June 12, 2006 Author Share Posted June 12, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44629 Share on other sites More sharing options...
litebearer Posted June 12, 2006 Share Posted June 12, 2006 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 Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44643 Share on other sites More sharing options...
helpmenow Posted June 13, 2006 Author Share Posted June 13, 2006 [!--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] Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44846 Share on other sites More sharing options...
redarrow Posted June 13, 2006 Share Posted June 13, 2006 [!--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. Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44848 Share on other sites More sharing options...
helpmenow Posted June 13, 2006 Author Share Posted June 13, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44849 Share on other sites More sharing options...
redarrow Posted June 13, 2006 Share Posted June 13, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]is my absolute path in config.php correct?kg[/quote]change to this okconfig.php[code]$absolute_path = "http://www.kgportraits.com/uploads"; //Absolute path to where files are uploaded[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44857 Share on other sites More sharing options...
helpmenow Posted June 13, 2006 Author Share Posted June 13, 2006 [!--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 okconfig.php[code]$absolute_path = "http://www.kgportraits.com/uploads"; //Absolute path to where files are uploaded[/code][/quote]nope Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44858 Share on other sites More sharing options...
redarrow Posted June 13, 2006 Share Posted June 13, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/11760-help-with-file-upload-utility/#findComment-44869 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.