<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a PHP REST API Using the Zend Framework</title>
	<atom:link href="http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/</link>
	<description>Trials and Tribulations of a Software Developer</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:45:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Christophe</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-552</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Sun, 24 Jul 2011 14:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-552</guid>
		<description>Hello, 

I&#039;m new to Zend and installed it in order to write some REST services.

I took your sample project, placed it into the Apache root folder for the Apache installed by Zend Server
C:\Program Files\Zend\Apache2\htdocs\ZendRestExample
and imported it into Zend Studio from there

But i&#039;m not able to get the JSON or XML result from your sample :(

Below, I put the result for the different urls.

Could you please tell me what I&#039;m doing wrong please ?

Thanks in advance for your help.

Best regards,
Christophe

curl.exe http://localhost:8080/ZendRestExample/version


404 Not Found

Not Found
The requested URL /index.php was not found on this server.


=&gt; KO


curl.exe http://localhost:8080/ZendRestExample/public/version
Success: trueVersion: 1.0

=&gt; OK but the url is /public/version so different from your above article

curl.exe http://localhost:8080/ZendRestExample/public/version/format/json



  
  Zend Framework Default Application


  An error occurred
  Page not found





=&gt; KO</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>I&#8217;m new to Zend and installed it in order to write some REST services.</p>
<p>I took your sample project, placed it into the Apache root folder for the Apache installed by Zend Server<br />
C:\Program Files\Zend\Apache2\htdocs\ZendRestExample<br />
and imported it into Zend Studio from there</p>
<p>But i&#8217;m not able to get the JSON or XML result from your sample <img src='http://www.chrisdanielson.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Below, I put the result for the different urls.</p>
<p>Could you please tell me what I&#8217;m doing wrong please ?</p>
<p>Thanks in advance for your help.</p>
<p>Best regards,<br />
Christophe</p>
<p>curl.exe <a href="http://localhost:8080/ZendRestExample/version" rel="nofollow">http://localhost:8080/ZendRestExample/version</a></p>
<p>404 Not Found</p>
<p>Not Found<br />
The requested URL /index.php was not found on this server.</p>
<p>=> KO</p>
<p>curl.exe <a href="http://localhost:8080/ZendRestExample/public/version" rel="nofollow">http://localhost:8080/ZendRestExample/public/version</a><br />
Success: trueVersion: 1.0</p>
<p>=> OK but the url is /public/version so different from your above article</p>
<p>curl.exe <a href="http://localhost:8080/ZendRestExample/public/version/format/json" rel="nofollow">http://localhost:8080/ZendRestExample/public/version/format/json</a></p>
<p>  Zend Framework Default Application</p>
<p>  An error occurred<br />
  Page not found</p>
<p>=> KO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Convert Zend_Rest_Route code to handle 2 params? &#124; deepinphp.com</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-494</link>
		<dc:creator>Convert Zend_Rest_Route code to handle 2 params? &#124; deepinphp.com</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-494</guid>
		<description>[...] on March 22, 2011 by News   I have Zend code from http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/ which looks like [...]</description>
		<content:encoded><![CDATA[<p>[...] on March 22, 2011 by News   I have Zend code from <a href="http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/" rel="nofollow">http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/</a> which looks like [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Correct code structure when providing REST API access using Zend_Rest_Controller &#124; deepinphp.com</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-492</link>
		<dc:creator>Correct code structure when providing REST API access using Zend_Rest_Controller &#124; deepinphp.com</dc:creator>
		<pubDate>Wed, 16 Mar 2011 12:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-492</guid>
		<description>[...] using Chris Danielson&#8217;s article (http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/) as a [...]</description>
		<content:encoded><![CDATA[<p>[...] using Chris Danielson&#8217;s article (<a href="http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/" rel="nofollow">http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/</a>) as a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shashi</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-486</link>
		<dc:creator>shashi</dc:creator>
		<pubDate>Tue, 08 Feb 2011 06:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-486</guid>
		<description>Hi, i have tried this script, and it works perfectly !
However I wanted to generate this xml response through a curl script....

I mean, users will get this xml response when they are authenticated in my site, and then they send request to the REST controller url, through a php curl script, for getting the xml output. How to achieve this?</description>
		<content:encoded><![CDATA[<p>Hi, i have tried this script, and it works perfectly !<br />
However I wanted to generate this xml response through a curl script&#8230;.</p>
<p>I mean, users will get this xml response when they are authenticated in my site, and then they send request to the REST controller url, through a php curl script, for getting the xml output. How to achieve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shashi</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-484</link>
		<dc:creator>shashi</dc:creator>
		<pubDate>Sat, 05 Feb 2011 13:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-484</guid>
		<description>Hi, i have tried this one and it worked awesome.
Now what i want to try is that: 

How can i send a parameter to an xml file using REST, and how to get the response from database in xml format.</description>
		<content:encoded><![CDATA[<p>Hi, i have tried this one and it worked awesome.<br />
Now what i want to try is that: </p>
<p>How can i send a parameter to an xml file using REST, and how to get the response from database in xml format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Kompanez</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-240</link>
		<dc:creator>Andreas Kompanez</dc:creator>
		<pubDate>Wed, 17 Feb 2010 08:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-240</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-229&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-229&quot; rel=&quot;nofollow&quot;&gt;dangtruog&lt;/a&gt; :&lt;/strong&gt;
          Hi Chris Danielson,
I’m newbie ZF, I have a question.
Why we have theses code below:
[code]
$bootstrap = $this-&gt;getInvokeArg(&#039;bootstrap&#039;);
$options = $bootstrap-&gt;getOption(&#039;resources&#039;);
[/code]
Where is used it on your code?
         &lt;/blockquote&gt;

Nowhere actually, but shows nicely how to access your application.ini parameters.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-229"><p>
<strong><a href="#comment-229" rel="nofollow">dangtruog</a> :</strong><br />
          Hi Chris Danielson,<br />
I’m newbie ZF, I have a question.<br />
Why we have theses code below:<br />
[code]<br />
$bootstrap = $this-&gt;getInvokeArg('bootstrap');<br />
$options = $bootstrap-&gt;getOption('resources');<br />
[/code]<br />
Where is used it on your code?
         </p></blockquote>
<p>Nowhere actually, but shows nicely how to access your application.ini parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dangtruog</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-229</link>
		<dc:creator>dangtruog</dc:creator>
		<pubDate>Tue, 02 Feb 2010 02:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-229</guid>
		<description>Hi Chris Danielson,
I&#039;m newbie ZF, I have a question.
Why we have theses code below:
[code]
$bootstrap = $this-&gt;getInvokeArg(&#039;bootstrap&#039;);
$options = $bootstrap-&gt;getOption(&#039;resources&#039;);
[/code]
Where is used it on your code?</description>
		<content:encoded><![CDATA[<p>Hi Chris Danielson,<br />
I&#8217;m newbie ZF, I have a question.<br />
Why we have theses code below:<br />
[code]<br />
$bootstrap = $this-&gt;getInvokeArg('bootstrap');<br />
$options = $bootstrap-&gt;getOption('resources');<br />
[/code]<br />
Where is used it on your code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Danielson</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-157</link>
		<dc:creator>Chris Danielson</dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-157</guid>
		<description>My code is available for you to freely use and distribute.  No limitations, just user beware, know what you are implementing and don&#039;t blame me if you blow up your stack.  :)

Regards,
Chris</description>
		<content:encoded><![CDATA[<p>My code is available for you to freely use and distribute.  No limitations, just user beware, know what you are implementing and don&#8217;t blame me if you blow up your stack.  <img src='http://www.chrisdanielson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier Berger</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-156</link>
		<dc:creator>Olivier Berger</dc:creator>
		<pubDate>Fri, 04 Dec 2009 15:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-156</guid>
		<description>What is the copyright / license on your code ?</description>
		<content:encoded><![CDATA[<p>What is the copyright / license on your code ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Danielson</title>
		<link>http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/comment-page-1/#comment-126</link>
		<dc:creator>Chris Danielson</dc:creator>
		<pubDate>Wed, 28 Oct 2009 20:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=219#comment-126</guid>
		<description>Excellent.  That makes total sense in the Zend paradigm.  Thanks for sharing!
Regards,
Chris</description>
		<content:encoded><![CDATA[<p>Excellent.  That makes total sense in the Zend paradigm.  Thanks for sharing!<br />
Regards,<br />
Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>

