473,378 Members | 1,368 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,378 software developers and data experts.

problem with move_uploaded_file



I have created a form wich makes it possible to send the information on the
form by e-mail with an attachment. After clicking the button i receive the
following error

Warning: SAFE MODE Restriction in effect. The script whose uid is 528 is not
allowed to access / owned by uid 0 in
/customers/meander/www/werken_leren/sollform/upload.php on line 43

this is line 43:

move_uploaded_file($_FILES['file']['tmp_name'], $filepath);

what can be the problem

thanks for helping me.

regards

roy

Holland
Jul 17 '05 #1
1 2141
Why would you need to move the uploaded file when you're going to send it by
email? Moving a file to / would probably never work, since that's owned
exclusively by root (I think--no *nix expert here).

Just open the temp file and send its content.

Uzytkownik "Roy G. Vervoort" <ro**********@rojaal.nl> napisal w wiadomosci
news:40*********************@news.xs4all.nl...


I have created a form wich makes it possible to send the information on the form by e-mail with an attachment. After clicking the button i receive the
following error

Warning: SAFE MODE Restriction in effect. The script whose uid is 528 is not allowed to access / owned by uid 0 in
/customers/meander/www/werken_leren/sollform/upload.php on line 43

this is line 43:

move_uploaded_file($_FILES['file']['tmp_name'], $filepath);

what can be the problem

thanks for helping me.

regards

roy

Holland

Jul 17 '05 #2

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

Similar topics

1
by: James Jiao | last post by:
Hi all I am having a little trouble uploading files (html form with post) with php... I am trying to copy the file from its temporary upload directory to the destination directory, however,...
1
by: Paul Lamonby | last post by:
Hi, I am using Mac os10.3.3, running Apache and PHP 4.3.6 I am just starting to use my local Sites folder to test php for my sites, but I cannot seem to get move_uploaded_file() or copy() to...
1
by: sa | last post by:
Trying to upload a file using win xp/iis/php. I've given full access to all accounts trying to get this to work? Yet I'm still getting read errors. Simplified the script below to the bare...
6
by: Stijn Goris | last post by:
HI all, I have created a script that allows a user to upload a picture. I have an IIS server runing on my own pc but the actual site runs an Apache server. The upload script worked perfectly on...
6
by: Nik Coughin | last post by:
Hi, I am getting: Warning: move_uploaded_file(../images/aqua.jpg): failed to open stream: Permission denied in /masterpiece/manage/manageImages.php on line 46 Warning: move_uploaded_file():...
2
by: Randy Jackson | last post by:
Hello, Running into a problem doing file uploads with Safe Mode enabled. Can anyone point me to some example code or anything along those lines? I keep running into this problem: QUOTE...
3
by: bizt | last post by:
Hi, I am trying to carry out an upload and save file in directory operation using move_uploaded_file(). However, when I run the script it give me the following error: Warning:...
5
by: bill | last post by:
I can validate that the file uploaded because is_uploaded_file() returns true. --------- if (is_uploaded_file($_FILES)) { echo "File ". $_FILES ." uploaded successfully.<br />"; }...
3
by: kujtim | last post by:
i got html code file name html <html> <head> <title></title> </head> <body>
2
by: swethak | last post by:
Hi, i wrote a code to upload a image.In my local it works fine. When i place this code in website through FTP. In that it will not works. i am giving the upload path ../upload . When i try to...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.