General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 25th, 2003, 04:01 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
This site Rocks! - Need help with upload...

I just wanted to say thanks to everyone keeping this site running.

I have a question on how to upload a file on a web server. I was successful doing several different uploads on my home server, Easy php, to the local C:drive, but I'm failing to upload to my company web server. Here is what I get:

Warning: copy(/home/company/public_html/Page.html) [function.copy]: failed to create stream: Permission denied in /home/company/public_html/upload1.php on line 2


That line 2 in the form processing script reads:

PHP Code:
<?php
copy 
($file"/home/company/public_html/$file_name"); 
// In this case, I upload the public_html folder 
// In this type of form, PHP automatically understand variable $file_name is the name of the upload file 
?>



I am not checking for anything - file type, anything, a little dangerous but I just want to see if the upload works...but I'm getting "failed to create spream: and Permission denied..." :

Is this a problem with the php.ini file not "on"...

Thanks for all the help over the years.
Robert.
__________________
bow wow!

Reply With Quote
  #2  
Old May 25th, 2003, 06:35 PM
devious_05 devious_05 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Vic, Australia
Posts: 2 devious_05 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to devious_05
Is it possible you dont have access to that folder?

Thats what the permission denied sounds like..

Jenna

Reply With Quote
  #3  
Old May 26th, 2003, 06:34 AM
danjel danjel is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 7 danjel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
have you used chmod ? to set the rights to write to the folder

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > This site Rocks! - Need help with upload...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT