[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

PHP Upload Script Giving New Error

Asked by kyleldi in PHP Scripting Language, PHP Frameworks, Databases Miscellaneous

Tags: PHP Mysql database

I created a script months ago that would upload five different upload fields to our server and posts the filename to our sql database, and all has been working great.  Now all the sudden it's throwing errors saying that the field cannot be empty, which I don't have anything in the script itself telling it that it cannot be.  Here's what the error is specifically.


Warning: copy() [function.copy]: Filename cannot be empty in process.php on line 79

Warning: copy() [function.copy]: Filename cannot be empty in process.php on line 83

Warning: copy() [function.copy]: Filename cannot be empty in process.php on line 87

Warning: copy() [function.copy]: Filename cannot be empty in process.php on line 91

I guess what i'm assuming happened as our server provider probably updated its version of PHP and now part of my code isn't correct.  The script still works, but it throws these errors every time unless all five fields are full.  The end of this script redirects to a thank you page.

Note:  The SQL Database itself does allow null entries into these fields.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
// Uploading File 01 //  // LINE 72 //
$image_part = date("")."".$HTTP_POST_FILES['file01']['name'];
$image_list[14] = $image_part;
copy($HTTP_POST_FILES['file01']['tmp_name'], "$dirname/".$image_part);
// Uploading File 02 //
$image_part = date("")."".$HTTP_POST_FILES['file02']['name'];
$image_list[15] = $image_part;
copy($HTTP_POST_FILES['file02']['tmp_name'], "$dirname/".$image_part);
// Uploading File 03 //
$image_part = date("")."".$HTTP_POST_FILES['file03']['name'];
$image_list[16] = $image_part;
copy($HTTP_POST_FILES['file03']['tmp_name'], "$dirname/".$image_part);
// Uploading File 04 //
$image_part = date("")."".$HTTP_POST_FILES['file04']['name'];
$image_list[17] = $image_part;
copy($HTTP_POST_FILES['file04']['tmp_name'], "$dirname/".$image_part);
// Uploading File 05 //
$image_part = date("")."".$HTTP_POST_FILES['file05']['name'];
$image_list[18] = $image_part;
copy($HTTP_POST_FILES['file05']['tmp_name'], "$dirname/".$image_part);  // LINE 91 //
[+][-]11/04/09 05:39 AM, ID: 25739128Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PHP Scripting Language, PHP Frameworks, Databases Miscellaneous
Tags: PHP Mysql database
Sign Up Now!
Solution Provided By: mikeada
Participating Experts: 2
Solution Grade: A
 
[+][-]11/04/09 06:16 AM, ID: 25739456Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 06:48 AM, ID: 25739807Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 09:31 PM, ID: 25747002Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/14/09 05:35 AM, ID: 25820638Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625