Quick way to test the contents of a mult

Posted on 2011-04-22
Last Modified: 2012-08-13
I want to test this script:

if(isset($_FILES['mp3_file']['tmp_name'])&& !empty($_FILES['mp3_file']['tmp_name']))
echo "yes";

It works find on my local server, but it's not for some reason on my real time server.

When I go to test it, because of it uploading an mp3 file, it takes a good five minutes to figure out if my code is "seeing" the contents.

Is there quicker way to check the presence of data in the kind of code I'm using so I don't have to wait so long?
Question by:brucegust
    1 Comment
    LVL 82

    Accepted Solution

    Use a smaller MP3.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now