
May 25th, 2003, 04:01 PM
|
|
Contributing User
|
|
Join Date: Apr 2002
Location: Anchorage
Posts: 118
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!
|