473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

error uploading a script

Hi all when using a very simple upload script that I know has worked in
the past i get this errror on a server:

Warning: move_uploaded_file(/home/folder/public_html/image/advert.jpg):
failed to open stream: Permission denied in
/home/folder/public_html/admin/edit.php on line 68

Warning: move_uploaded_file(): Unable to move '/tmp/phpNzNVd5' to
'/home/folder/public_html/image/advert.jpg' in
/home/pronta/public_html/admin/edit.php on line 68

Here is the function:

move_uploaded_file($file_upload_tmpname,
"/home/folder/public_html/image/$file_upload_filename");

Any ideas on what might cause this?

May 8 '06 #1
1 1222
"monomaniac21" <mc******@googlemail.com> writes:
Hi all when using a very simple upload script that I know has worked in
the past i get this errror on a server:

Warning: move_uploaded_file(/home/folder/public_html/image/advert.jpg):
failed to open stream: Permission denied in
/home/folder/public_html/admin/edit.php on line 68

Warning: move_uploaded_file(): Unable to move '/tmp/phpNzNVd5' to
'/home/folder/public_html/image/advert.jpg' in
/home/pronta/public_html/admin/edit.php on line 68

Here is the function:

move_uploaded_file($file_upload_tmpname,
"/home/folder/public_html/image/$file_upload_filename");

Any ideas on what might cause this?


Read the error?

failed to open stream: Permission denied in
/home/folder/public_html/admin/edit.php on line 68

Do the webserver have access to the directory you are putting the file?
--
Henrik Hansen
May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nikhil | last post by:
I have a VBscript that I use to upload files onto the server. The script works fine on IIS 5.0 but on IIS 6.0 on Windows 2003 I get an error when uploading certain files. I believe its because the...
2
by: John Morgan | last post by:
I am trying out a simple aspx uploading page for uploading and Access database. It appears to work alright with smaller files but with larger files I am getting the following error: Request...
3
by: J055 | last post by:
Hi How do I tell the user he has tried to upload a file which is too big... 1. when the httpRuntime.maxRequestLength has been exceeded and 2. when the uploaded file is under then...
1
by: tom_burrow | last post by:
hi, i am hoping that someone may be able to help me... i have been writing vb.net pages using visual web developer. they all work fine locally however when i upload to the server i get the...
3
chunk1978
by: chunk1978 | last post by:
hi there... i have the following codes (HTML and PHP) on my Apache Localhost: HTML: titled "Form.html" <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input...
0
by: pere | last post by:
hi everybody, I have a script that inserts .csv data into a table; I want different users to insert their data in the same table. To differenciate them I make them fill a name (called "nom")...
2
by: Jinx08 | last post by:
I am probably an itermediate user when it comes to flash however I am at a loss with this problem. I have posted numerous flash files to the internet and never had this problem however the key there...
1
by: jimmylee | last post by:
Hi All, Please help me . I am getting aspSmartUploadfile error while uploading file I have already instrall aspSmartUpload.dll and aspSmartUploadutil.dll. how to solve this error. thanks....
1
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
4
rahulephp
by: rahulephp | last post by:
i think i am missing something in the below script: It shows error an do not upload files to destination: Let me know how to solve this: <?php if (isset($_POST)) { $uploadArray=...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.