473,473 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

move_uploaded_file fails to work in Linux PHP

nallinattu
11 New Member
I have tried PHP script with localhost and PHP 5 and it works ok. But when script is loaded in server (Linux) except for all validations done well, it simply does not carry out move_uploaded_file command and loads a white web page.

Any solution ,,
Nov 17 '06 #1
4 4472
nallinattu
11 New Member
Is it that nobody will reply my questions as I am just a junior member ??
Jan 7 '07 #2
ronverdonk
4,258 Recognized Expert Specialist
It is more possible that nobody in this PHP forum knows the answer to your question. I certainly don't know anything about Linux.

So I will copy this thread slso in the Linux forum, maybe you have more luck.

Ronald :cool:
Jan 7 '07 #3
sashi
1,754 Recognized Expert Top Contributor
I have tried PHP script with localhost and PHP 5 and it works ok. But when script is loaded in server (Linux) except for all validations done well, it simply does not carry out move_uploaded_file command and loads a white web page.

Any solution ,,
Hi there,

Did you grant the proper execute permission to the php script? Check this detail out. Good luck & Take care.
Jan 8 '07 #4
rejitha
1 New Member
I have tried PHP script with localhost and PHP 5 and it works ok. But when script is loaded in server (Linux) except for all validations done well, it simply does not carry out move_uploaded_file command and loads a white web page.

Any solution ,,
Hi !

I had the same problem and i could solve by changing the slashes what i used from "\" to" /" in the path variable specified in move_uploaded_file. Hope it will help you also

Pls get back if u still find a problem.
Feb 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: neo002244 | last post by:
The move_uploaded_file() function is very quirky. I want to allow users to upload images to the Web site. Here is the code: if(!move_uploaded_file($_FILES, $imagefile)) { die("Could not move...
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: Felix Natter | last post by:
hi, I would like to upload a file (via a form), then read that (temporary) file and write the contents into a database. The first problem is that open_basedir=/home/CUSTOMER so I can't just read...
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...
1
by: comp.lang.php | last post by:
Consider my code: if ($this->isSuccessful && is_file($_FILES)) { // STEP 6: MOVE RESUME TO DIRECTORY $uuid = $this->sfug->getUUID(); if (!$uuid) $this->sfug->setUUID(); $uuid =...
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 />"; }...
4
by: Batmanuel | last post by:
Good evening people, little question here... I'm trying to get this file upload script to work but it tells me that move_uploaded_file() fails because it doesn't have permission for the /tmp...
2
by: just_me | last post by:
Hello everybody, I am using move_uploaded_file() in a form to handle image uploading, and it worked just great when I was testing locally in my computer. After uploading the file in my host...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.