title: Amazon SQS service with Elastic Beanstalk
body: <p>I am fairly new to Amazon SQS and I am having a hard time understanding what is going on. I set the HTTP Path to a file that could handle the requests. but I am not sure if that was the correct thing to do. What is the proper way? Why do the messages go directly to "In Flight"? What happens when the message is sent to the HTTP path? I am using php for my application, so if someone could give me guidance on what I am doing wrong, then I would greatly appreciate it!</p>
  
  <p>When I check for a message with my php script that looks likes this: </p>
  
  <pre><code>$sqs_client = new SqsClient($sqs_credentials);
  
  // Get the queue URL from the queue name.
  $result = $sqs_client-&gt;getQueueUrl(array('QueueName' =&gt; "NormalPoll"));
  $queue_url = $result-&gt;get('QueueUrl');
  
  // Receive a message from the queue
  $result = $sqs_client-&gt;receiveMessage(array(
      'QueueUrl' =&gt; $queue_url
  ));
  
  if ($result['Messages'] == null) {
      die('No Message');
  }
  
  // Get the message information
  $result_message = array_pop($result['Messages']);
  $body = $result_message['Body'];
  print $body;
  </code></pre>
  
  <p>I always get 'No Message' in return when running the program. I inserted a message via the AWS SQS console and I am unable to receive it. The message goes automatically to 'in flight'. </p>
  
  <p>Thanks In Advance!</p>