require once adds a new line to response
<p>I have the following class code in PHP:</p>

<pre><code>&lt;?php

require_once CUSTOM_PATH . DIRECTORY_SEPARATOR . 'myneighborlists.php'; 

class Action_Get_route extends Frapi_Action implements Frapi_Action_Interface
{

    /**
     * Required parameters
     * 
     * @var An array of required parameters.
     */
    protected $requiredParams = array();

    /**
     * The data container to use in toArray()
     * 
     * @var A container of data to fill and return in toArray()
     */
    private $data = array();

    /**
     * To Array
     * 
     * This method returns the value found in the database 
     * into an associative array.
     * 
     * @return array
     */
    public function toArray()
    {
        //$this-&gt;data['origin'] = $this-&gt;getParam('origin', self::TYPE_OUTPUT);
        //$this-&gt;data['destination'] = $this-&gt;getParam('destination', self::TYPE_OUTPUT);
        return $this-&gt;data;
    }

    /**
     * Default Call Method
     * 
     * This method is called when no specific request handler has been found
     * 
     * @return array
     */
    public function executeAction()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }

    /**
     * Get Request Handler
     * 
     * This method is called when a request is a GET
     * 
     * @return array
     */
    public function executeGet()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }

    /**
     * Post Request Handler
     * 
     * This method is called when a request is a POST
     * 
     * @return array
     */
    public function executePost()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }

    /**
     * Put Request Handler
     * 
     * This method is called when a request is a PUT
     * 
     * @return array
     */
    public function executePut()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }

    /**
     * Delete Request Handler
     * 
     * This method is called when a request is a DELETE
     * 
     * @return array
     */
    public function executeDelete()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }

    /**
     * Head Request Handler
     * 
     * This method is called when a request is a HEAD
     * 
     * @return array
     */
    public function executeHead()
    {
        $valid = $this-&gt;hasRequiredParameters($this-&gt;requiredParams);
        if ($valid instanceof Frapi_Error) {
            return $valid;
        }

        return $this-&gt;toArray();
    }


}
</code></pre>

<p>This is basically a class template for a REST API and when I call the get method the response I got always has an extra new line in it. When I remove the require_once, that extra new line is gone. How do I avoid this extra new line? <a href="http://api.smartrekmobile.com/getroute.json" rel="nofollow">This is</a> what I meant by a new line.</p>
