473,795 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_f ile(/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_f ile(): 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_f ile($file_uploa d_tmpname,
"/home/folder/public_html/image/$file_upload_fi lename");

Any ideas on what might cause this?

May 8 '06 #1
1 1239
"monomaniac 21" <mc******@googl email.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_f ile(/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_f ile(): 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_f ile($file_uploa d_tmpname,
"/home/folder/public_html/image/$file_upload_fi lename");

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
7341
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 file is larger than what is normally uploaded. Average file size is 15KB this file is 490Kb. The error that I get is Request object error 'ASP 0104 : 80004005' Operation not
2
5980
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 timed out. Stack Trace: Is there a timeout property which I can change?
3
4934
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 httpRuntime.maxRequestLength For point 1. it would be good to at least display a nice error page. IE seems to just display a blank page.
1
2062
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 following error: Compiler Error Message: BC30037: Character is not valid. it looks as if some strange characters have been added to the end of every line of code causing the script to error. see the page here:
3
1701
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 type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" />
0
1371
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") field in the html before uploading the .csv. But when another user uploads data, the previous one disappears! I just use a INSERT INTO values, so it should not happen. Sorry if there are big mistakes, but I'm newbie in Perl (the script is not...
2
4735
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 is those were all using older versions of Flash and using windows xp. I now own Flash CS3 and I am running Windows Vista I am not sure if this has anything to do with it. Anyway I used dreamweaver to create and upload the page and file.When I go to...
1
9282
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. I get error this line objFile.saveas(strPath & strSaveAsFilename) Error Type: aspSmartUpload.File (0x80040460) Unable to save file (Error 1120)
1
5459
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 group get automatically re-directed after uploading. However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension. Members from the second group do see the "exceeds max file...
4
4119
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= array();
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10443
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.