473,404 Members | 2,213 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,404 software developers and data experts.

Php method is_uploaded_file() fails without a reason!

Hello,

I have a PHP based site running for 2 years without any problems. The
user can upload images and I run the is_uploaded_file() method to
check if the file was really uploaded via HTTP POST. During the last
week this method fails. I haven't changed anything in my code, I was
on holidays!

Were there any updates that made my code malfunction?
Do you have any other ideas on what is the problem?

PS: I know that PHP is not your responsibility but I'm stuck, so I'm
trying everything.

Thank you
Jul 24 '08 #1
2 1949
yord escribió:
I have a PHP based site running for 2 years without any problems. The
user can upload images and I run the is_uploaded_file() method to
check if the file was really uploaded via HTTP POST. During the last
week this method fails. I haven't changed anything in my code, I was
on holidays!
Things I can think of:

- There's a problem with the temp directory where uploads are stored
- The sysadmin installed or upgraded a security filter like mod_security
- The sysadmin changed the default settings in Apache or PHP that affect
the maximum size of uploads


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Jul 24 '08 #2
On Jul 24, 8:12*am, "Álvaro G. Vicario"
<alvaroNOSPAMTHA...@demogracia.comwrote:
yord escribió:
I have a PHP based site running for 2 years without any problems. The
user can upload images and I run the is_uploaded_file() method to
check if the file was really uploaded via HTTP POST. During the last
week this method fails. I haven't changed anything in my code, I was
on holidays!

Things I can think of:

- There's a problem with the temp directory where uploads are stored
- The sysadmin installed or upgraded a security filter like mod_security
- The sysadmin changed the default settings in Apache or PHP that affect
the maximum size of uploads

--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:http://bits.demogracia.com
-- Mi web de humor al baño María:http://www.demogracia.com
--
Hi,
I agree with this.
Also you might want to check if the safe_mode is turned on by the
admin of the hosting. To my knowledge, if the safe_mode is turned on,
then some functions (i.e. mail, upload, etc) are not applicable. I
once experienced the same thing with mail() function.

Jul 24 '08 #3

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

Similar topics

4
by: Ralph Freshour | last post by:
Is it a good idea to use the is_uploaded_file() function (as a security measure) when I've uploaded a file via Post method? Thanks...
5
by: christopher vogt | last post by:
Hi, i'm wondering if there is something like $this-> to call a method inside another method of the same class without using the classname in front. I actually use class TEST { function...
31
by: Chris S. | last post by:
Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
8
by: rithish | last post by:
I am on IE 6. I was trying out a simple xmlhttp function that send GET/POST requests. However, IE throws an 'unspecified error' when I call the 'setRequestHeader' method. The function that I am...
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 =...
6
exoskeleton
by: exoskeleton | last post by:
good day dear experts... i have a problem about is_uploaded_file function.. it alwayz return false..is this function available in PHP version 5.0.1 or only in later version? im using PHP 5.0.1 ...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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
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,...
0
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...
0
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...

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.