Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

php output explanation

Posted on 2011-03-04
4
Medium Priority
?
345 Views
Last Modified: 2012-05-11
Hello experts.
I'm using the swfupload plugin (http://demo.swfupload.org/v220/index.htm).I'm using coldfusion server language and unfortunately i get the error:500 using my cfm upload page.
Testing with upload.php page (look below) i have no errors.
Can you please explain what the php page is returning or what is the output so that i can find where the problem is?

<?php
	if (isset($_POST["PHPSESSID"])) {
		session_id($_POST["PHPSESSID"]);
	}
	session_start();

	// The Demos don't save files


	// In this demo we trigger the uploadError event in SWFUpload by returning a status code other than 200 (which is the default returned by PHP)
	if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) {
		// Usually we'll only get an invalid upload if our PHP.INI upload sizes are smaller than the size of the file we allowed
		// to be uploaded.
		header("HTTP/1.1 500 File Upload Error");
		if (isset($_FILES["Filedata"])) {
			echo $_FILES["Filedata"]["error"];
		}
		exit(0);
	}
	
	echo "Make sure Flash Player on OS X works";
?>

Open in new window

0
Comment
Question by:Panos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
mattibutt earned 2000 total points
ID: 35034782
Hi
The coldfusion may require some additional configuration or something why don't you try to debug your coldfusion if your ultimatum goal is to make it work on coldfusion
0
 
LVL 2

Author Comment

by:Panos
ID: 35034817
Hi mattibutt
I have an error handler that is reporting errors from the upload.cfm page but i get there no errors.
Is the php page outputing something for the upload script?
0
 
LVL 2

Author Closing Comment

by:Panos
ID: 35034919
Thank you for your help
The problem was in the upload cfm page
0
 
LVL 11

Expert Comment

by:mattibutt
ID: 35035179
you welcome
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question