Re: Making REST Requests to a web-server like yahoo

2007-04-11 Thread digital spaghetti

That's cool, but you do realise your breaking Yahoo's TOS (and
probably google's too) by saving the geocode data to the db?

Your better to make the call, and then cache the view, since that
complies with their TOS.  Plus at the moment, the granulaity of yahoo
can sometimes be off - only giving you zip or city level view - if you
cache you have a better chance of the data being more accurate in the
future as the service improves.

Also I'd be happy to provide any code to the mashup project. I'll be
working on my upcomming.org code sometime this week.

Tane


On 4/11/07, nate [EMAIL PROTECTED] wrote:

 Hey Tane,

 Sorry man, I beat you to the punch!
 http://bakery.cakephp.org/articles/view/332

 We're actually starting a Mashup API project on CakeForge, so if
 you've got other stuff that integrates with Yahoo!'s web services, we
 might be interested in adding it if you want to join.

 On Apr 10, 2:20 pm, digital spaghetti
 [EMAIL PROTECTED] wrote:
  Just on a wee side note, tonight or tommorow (whenever I get a chance)
  I'll be releasing the first in a set of small components that deal
  with Yahoo REST services.
 
  The first one isYahooGeo, which takes an address you pass to the
  component, and returns a simple array with the latitude and longitude
  data, handy for geocoding data and any microformats you may have on
  your site.  I'll probably release 0.1, which will be without the
  mapping methods, but I intend to have a method that you can pass this
  data in to and it will generate a yahoo map.
 
  I'll be releasing an Yahoo Upcomming.org REST component later in the
  month, and I'll be looking at other useful services.
 
  All of them *should* be PHP4 compatable, as they mainly use SimpleXML
  for returned data, but Yahoo can also provide serialised PHP (which I
  haven't looked at yet, so I'm not to sure on that yet).
 
  Keep an eye out on the bakery for it!
 
  Tanehttp://webrocket.wordpress.com
 
  On 4/10/07, Tonyz [EMAIL PROTECTED] wrote:
 
 
 
   Chris I will be confused as a newbie not you :-)
 
   I no need cookie so I will use file_get_contents but I read that curl
   is more performant so I need to find a host who supports it.
 
   Ciao
   Tonyz
 
   On 8 Apr, 19:36, Chris Hartjes [EMAIL PROTECTED] wrote:
I'm confused now, what do cookies and sessions have to do with
connecting to a REST service?
 
I also use another web client library called HttpClient (don't have
the URL handy) for things like this, but sometimes file_get_contents
because it's simpler.
 
On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:
 
 Hi Chris
 I need to handle session and cookie this is why I will use the pear
 class.
 
 I found also this classhttp://sourceforge.net/projects/snoopy/
 
 Tonyz
 
 On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
  On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:
 
   I have no need to parse xml as the response is in php
 serialized. My
   only concern is doing in php the http request and after some
   searches
   I think will use the pear package html client as my host has no
   curl.
 
  Why can't you use file_get_contents?
 
  --
  Chris Hartjes
 
  My motto for 2007:  Just build it, damnit!
 
  rallyhat.com - digital photo scavenger hunt
  @TheBallpark -http://www.littlehart.net/attheballpark
  @TheKeyboard -http://www.littlehart.net/atthekeyboard
 
--
Chris Hartjes
 
My motto for 2007:  Just build it, damnit!
 
rallyhat.com - digital photo scavenger hunt
@TheBallpark -http://www.littlehart.net/attheballpark
@TheKeyboard -http://www.littlehart.net/atthekeyboard


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-11 Thread nate

On Apr 11, 2:41 am, digital spaghetti
[EMAIL PROTECTED] wrote:
 That's cool, but you do realise your breaking Yahoo's TOS (and
 probably google's too) by saving the geocode data to the db?

Heh, interesting, I didn't know that.  Of course, it's sort of like
how the FBI said I can't copy VHS tapes: they'd never suspect anything
unless they searched my apartment, and they would never search my
apartment unless they suspected something.  Both in the case of the
FBI and of Yahoo!, no one has any way of knowing.  And actually,
Google encourages caching.  Yet another reason to favor them over
Yahoo! I guess.

 Your better to make the call, and then cache the view, since that
 complies with their TOS.

But that sort of negates half the purpose, since you can't do custom
searching on your own data.

 Plus at the moment, the granulaity of yahoo
 can sometimes be off - only giving you zip or city level view - if you
 cache you have a better chance of the data being more accurate in the
 future as the service improves.

Yeah, cache expiration might be beneficial.  Good call.

 Also I'd be happy to provide any code to the mashup project. I'll be
 working on my upcomming.org code sometime this week.

Sweet.  Looking forward to seeing it.

 Tane

 On 4/11/07, nate [EMAIL PROTECTED] wrote:



  Hey Tane,

  Sorry man, I beat you to the punch!
 http://bakery.cakephp.org/articles/view/332

  We're actually starting a Mashup API project on CakeForge, so if
  you've got other stuff that integrates with Yahoo!'s web services, we
  might be interested in adding it if you want to join.

  On Apr 10, 2:20 pm, digital spaghetti
  [EMAIL PROTECTED] wrote:
   Just on a wee side note, tonight or tommorow (whenever I get a chance)
   I'll be releasing the first in a set of small components that deal
   with Yahoo REST services.

   The first one isYahooGeo, which takes an address you pass to the
   component, and returns a simple array with the latitude and longitude
   data, handy for geocoding data and any microformats you may have on
   your site.  I'll probably release 0.1, which will be without the
   mapping methods, but I intend to have a method that you can pass this
   data in to and it will generate a yahoo map.

   I'll be releasing an Yahoo Upcomming.org REST component later in the
   month, and I'll be looking at other useful services.

   All of them *should* be PHP4 compatable, as they mainly use SimpleXML
   for returned data, but Yahoo can also provide serialised PHP (which I
   haven't looked at yet, so I'm not to sure on that yet).

   Keep an eye out on the bakery for it!

   Tanehttp://webrocket.wordpress.com

   On 4/10/07, Tonyz [EMAIL PROTECTED] wrote:

Chris I will be confused as a newbie not you :-)

I no need cookie so I will use file_get_contents but I read that curl
is more performant so I need to find a host who supports it.

Ciao
Tonyz

On 8 Apr, 19:36, Chris Hartjes [EMAIL PROTECTED] wrote:
 I'm confused now, what do cookies and sessions have to do with
 connecting to a REST service?

 I also use another web client library called HttpClient (don't have
 the URL handy) for things like this, but sometimes file_get_contents
 because it's simpler.

 On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:

  Hi Chris
  I need to handle session and cookie this is why I will use the pear
  class.

  I found also this classhttp://sourceforge.net/projects/snoopy/

  Tonyz

  On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
   On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:

I have no need to parse xml as the response is in php
  serialized. My
only concern is doing in php the http request and after some
searches
I think will use the pear package html client as my host has no
curl.

   Why can't you use file_get_contents?

   --
   Chris Hartjes

   My motto for 2007:  Just build it, damnit!

   rallyhat.com - digital photo scavenger hunt
   @TheBallpark -http://www.littlehart.net/attheballpark
   @TheKeyboard -http://www.littlehart.net/atthekeyboard

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digital photo scavenger hunt
 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-10 Thread Tonyz

Chris I will be confused as a newbie not you :-)

I no need cookie so I will use file_get_contents but I read that curl
is more performant so I need to find a host who supports it.

Ciao
Tonyz

On 8 Apr, 19:36, Chris Hartjes [EMAIL PROTECTED] wrote:
 I'm confused now, what do cookies and sessions have to do with
 connecting to a REST service?

 I also use another web client library called HttpClient (don't have
 the URL handy) for things like this, but sometimes file_get_contents
 because it's simpler.

 On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:





  Hi Chris
  I need to handle session and cookie this is why I will use the pear
  class.

  I found also this classhttp://sourceforge.net/projects/snoopy/

  Tonyz

  On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
   On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:

I have no need to parse xml as the response is in php serialized. My
only concern is doing in php the http request and after some searches
I think will use the pear package html client as my host has no curl.

   Why can't you use file_get_contents?

   --
   Chris Hartjes

   My motto for 2007:  Just build it, damnit!

   rallyhat.com - digital photo scavenger hunt
   @TheBallpark -http://www.littlehart.net/attheballpark
   @TheKeyboard -http://www.littlehart.net/atthekeyboard

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digital photo scavenger hunt
 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-10 Thread digital spaghetti

Just on a wee side note, tonight or tommorow (whenever I get a chance)
I'll be releasing the first in a set of small components that deal
with Yahoo REST services.

The first one is YahooGeo, which takes an address you pass to the
component, and returns a simple array with the latitude and longitude
data, handy for geocoding data and any microformats you may have on
your site.  I'll probably release 0.1, which will be without the
mapping methods, but I intend to have a method that you can pass this
data in to and it will generate a yahoo map.

I'll be releasing an Yahoo Upcomming.org REST component later in the
month, and I'll be looking at other useful services.

All of them *should* be PHP4 compatable, as they mainly use SimpleXML
for returned data, but Yahoo can also provide serialised PHP (which I
haven't looked at yet, so I'm not to sure on that yet).

Keep an eye out on the bakery for it!

Tane
http://webrocket.wordpress.com


On 4/10/07, Tonyz [EMAIL PROTECTED] wrote:

 Chris I will be confused as a newbie not you :-)

 I no need cookie so I will use file_get_contents but I read that curl
 is more performant so I need to find a host who supports it.

 Ciao
 Tonyz

 On 8 Apr, 19:36, Chris Hartjes [EMAIL PROTECTED] wrote:
  I'm confused now, what do cookies and sessions have to do with
  connecting to a REST service?
 
  I also use another web client library called HttpClient (don't have
  the URL handy) for things like this, but sometimes file_get_contents
  because it's simpler.
 
  On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:
 
 
 
 
 
   Hi Chris
   I need to handle session and cookie this is why I will use the pear
   class.
 
   I found also this classhttp://sourceforge.net/projects/snoopy/
 
   Tonyz
 
   On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:
 
 I have no need to parse xml as the response is in php serialized. My
 only concern is doing in php the http request and after some
 searches
 I think will use the pear package html client as my host has no
 curl.
 
Why can't you use file_get_contents?
 
--
Chris Hartjes
 
My motto for 2007:  Just build it, damnit!
 
rallyhat.com - digital photo scavenger hunt
@TheBallpark -http://www.littlehart.net/attheballpark
@TheKeyboard -http://www.littlehart.net/atthekeyboard
 
  --
  Chris Hartjes
 
  My motto for 2007:  Just build it, damnit!
 
  rallyhat.com - digital photo scavenger hunt
  @TheBallpark -http://www.littlehart.net/attheballpark
  @TheKeyboard -http://www.littlehart.net/atthekeyboard


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-10 Thread nate

Hey Tane,

Sorry man, I beat you to the punch!
http://bakery.cakephp.org/articles/view/332

We're actually starting a Mashup API project on CakeForge, so if
you've got other stuff that integrates with Yahoo!'s web services, we
might be interested in adding it if you want to join.

On Apr 10, 2:20 pm, digital spaghetti
[EMAIL PROTECTED] wrote:
 Just on a wee side note, tonight or tommorow (whenever I get a chance)
 I'll be releasing the first in a set of small components that deal
 with Yahoo REST services.

 The first one isYahooGeo, which takes an address you pass to the
 component, and returns a simple array with the latitude and longitude
 data, handy for geocoding data and any microformats you may have on
 your site.  I'll probably release 0.1, which will be without the
 mapping methods, but I intend to have a method that you can pass this
 data in to and it will generate a yahoo map.

 I'll be releasing an Yahoo Upcomming.org REST component later in the
 month, and I'll be looking at other useful services.

 All of them *should* be PHP4 compatable, as they mainly use SimpleXML
 for returned data, but Yahoo can also provide serialised PHP (which I
 haven't looked at yet, so I'm not to sure on that yet).

 Keep an eye out on the bakery for it!

 Tanehttp://webrocket.wordpress.com

 On 4/10/07, Tonyz [EMAIL PROTECTED] wrote:



  Chris I will be confused as a newbie not you :-)

  I no need cookie so I will use file_get_contents but I read that curl
  is more performant so I need to find a host who supports it.

  Ciao
  Tonyz

  On 8 Apr, 19:36, Chris Hartjes [EMAIL PROTECTED] wrote:
   I'm confused now, what do cookies and sessions have to do with
   connecting to a REST service?

   I also use another web client library called HttpClient (don't have
   the URL handy) for things like this, but sometimes file_get_contents
   because it's simpler.

   On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:

Hi Chris
I need to handle session and cookie this is why I will use the pear
class.

I found also this classhttp://sourceforge.net/projects/snoopy/

Tonyz

On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
 On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:

  I have no need to parse xml as the response is in php serialized. My
  only concern is doing in php the http request and after some
  searches
  I think will use the pear package html client as my host has no
  curl.

 Why can't you use file_get_contents?

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digital photo scavenger hunt
 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard

   --
   Chris Hartjes

   My motto for 2007:  Just build it, damnit!

   rallyhat.com - digital photo scavenger hunt
   @TheBallpark -http://www.littlehart.net/attheballpark
   @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-08 Thread Tonyz

Hi Chris
I need to handle session and cookie this is why I will use the pear
class.

I found also this class http://sourceforge.net/projects/snoopy/

Tonyz

On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
 On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:



  I have no need to parse xml as the response is in php serialized. My
  only concern is doing in php the http request and after some searches
  I think will use the pear package html client as my host has no curl.

 Why can't you use file_get_contents?

 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digital photo scavenger hunt
 @TheBallpark -http://www.littlehart.net/attheballpark
 @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-08 Thread Chris Hartjes

I'm confused now, what do cookies and sessions have to do with
connecting to a REST service?

I also use another web client library called HttpClient (don't have
the URL handy) for things like this, but sometimes file_get_contents
because it's simpler.



On 4/8/07, Tonyz [EMAIL PROTECTED] wrote:

 Hi Chris
 I need to handle session and cookie this is why I will use the pear
 class.

 I found also this class http://sourceforge.net/projects/snoopy/

 Tonyz

 On 7 Apr, 19:24, Chris Hartjes [EMAIL PROTECTED] wrote:
  On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:
 
 
 
   I have no need to parse xml as the response is in php serialized. My
   only concern is doing in php the http request and after some searches
   I think will use the pear package html client as my host has no curl.
 
  Why can't you use file_get_contents?
 
  --
  Chris Hartjes
 
  My motto for 2007:  Just build it, damnit!
 
  rallyhat.com - digital photo scavenger hunt
  @TheBallpark -http://www.littlehart.net/attheballpark
  @TheKeyboard -http://www.littlehart.net/atthekeyboard


 



-- 
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-07 Thread Tonyz

I have no need to parse xml as the response is in php serialized. My
only concern is doing in php the http request and after some searches
I think will use the pear package html client as my host has no curl.

Thanks for your response.

I was wondering if cake 1.2 has or will have included classes for web
modelling from external websites.

gOOD eASTER

On 7 Apr, 00:03, Eric C Blount [EMAIL PROTECTED] wrote:
 After searching for a couple of minutes, I found the XML class Kjell is
 speaking of:http://keithdevens.com/software/phpxml

 In case anyone else was as interested as I was...

 HTH,
 Eric

 On 4/6/07, Kjell Bublitz [EMAIL PROTECTED] wrote:



  Chris, i think you switched something here.

  file_get_contents is available since PHP 4.3.0.
  It is file_put_contents which is only available in PHP5.

  I second that XML parsing sucks in PHP4. There is a wonderful class
  available i used in many projects already. It's a xml class from Keith
  Devens (google). But it is strictly for PHP4, because it uses a method
  which is deprecated in PHP5, so watch it.

  Hope this helps.

  On 4/6/07, Chris Hartjes [EMAIL PROTECTED] wrote:

   I second what Kjell said:  file_get_contents is your easiest solution
   if using PHP 5, otherwise use the curl functions.  XML parsing sucks
   in PHP 4, so I hope you can use PHP 5.

   Give me SimpleXML or give me death! :)

   On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:

I read this article on yahoo developer network because I would like in
my cake app to display search results from yahoo. The article is at
   http://developer.yahoo.com/php/howto-reqRestPhp.html

There is some built in class of cake who can perform rest request to a
webserver with curl or file_get_contents?

   --
   Chris Hartjes

   My motto for 2007:  Just build it, damnit!

   rallyhat.com - digital photo scavenger hunt
   @TheBallpark -http://www.littlehart.net/attheballpark
   @TheKeyboard -http://www.littlehart.net/atthekeyboard

  --
  Regards, Kjell
 www.m3nt0r.de


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-07 Thread Chris Hartjes

On 4/7/07, Tonyz [EMAIL PROTECTED] wrote:

 I have no need to parse xml as the response is in php serialized. My
 only concern is doing in php the http request and after some searches
 I think will use the pear package html client as my host has no curl.


Why can't you use file_get_contents?

-- 
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-06 Thread Kjell Bublitz

There might be some class you could add thru vendor to ease using CURL.

Using file_get_contents is as direct as using echo. Besides creating a
shortcut there is not much to make it easier using cake or anything
else for that matter.

$xml = file_get_contents( http://api ... );

If you can choose, then use CURL, because it has features like
request-timeouts etc. Pretty much like using sockets for
server-to-server communication.

Hope this helps.

On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:

 I read this article on yahoo developer network because I would like in
 my cake app to display search results from yahoo. The article is at
 http://developer.yahoo.com/php/howto-reqRestPhp.html

 There is some built in class of cake who can perform rest request to a
 webserver with curl or file_get_contents?


 



-- 
Regards, Kjell
www.m3nt0r.de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-06 Thread Chris Hartjes

I second what Kjell said:  file_get_contents is your easiest solution
if using PHP 5, otherwise use the curl functions.  XML parsing sucks
in PHP 4, so I hope you can use PHP 5.

Give me SimpleXML or give me death! :)


On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:

 I read this article on yahoo developer network because I would like in
 my cake app to display search results from yahoo. The article is at
 http://developer.yahoo.com/php/howto-reqRestPhp.html

 There is some built in class of cake who can perform rest request to a
 webserver with curl or file_get_contents?


 



-- 
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-06 Thread Kjell Bublitz

Chris, i think you switched something here.

file_get_contents is available since PHP 4.3.0.
It is file_put_contents which is only available in PHP5.

I second that XML parsing sucks in PHP4. There is a wonderful class
available i used in many projects already. It's a xml class from Keith
Devens (google). But it is strictly for PHP4, because it uses a method
which is deprecated in PHP5, so watch it.

Hope this helps.

On 4/6/07, Chris Hartjes [EMAIL PROTECTED] wrote:

 I second what Kjell said:  file_get_contents is your easiest solution
 if using PHP 5, otherwise use the curl functions.  XML parsing sucks
 in PHP 4, so I hope you can use PHP 5.

 Give me SimpleXML or give me death! :)


 On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:
 
  I read this article on yahoo developer network because I would like in
  my cake app to display search results from yahoo. The article is at
  http://developer.yahoo.com/php/howto-reqRestPhp.html
 
  There is some built in class of cake who can perform rest request to a
  webserver with curl or file_get_contents?
 
 
  
 


 --
 Chris Hartjes

 My motto for 2007:  Just build it, damnit!

 rallyhat.com - digital photo scavenger hunt
 @TheBallpark - http://www.littlehart.net/attheballpark
 @TheKeyboard - http://www.littlehart.net/atthekeyboard

 



-- 
Regards, Kjell
www.m3nt0r.de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-06 Thread Chris Hartjes

My bad, you're absolutely right about file_get_contents.

The more I work with PHP 5 the more I grow to dislike having to do all
sorts of hacks and kludges to do the same thing in PHP 4.



On 4/6/07, Kjell Bublitz [EMAIL PROTECTED] wrote:

 Chris, i think you switched something here.

 file_get_contents is available since PHP 4.3.0.
 It is file_put_contents which is only available in PHP5.

 I second that XML parsing sucks in PHP4. There is a wonderful class
 available i used in many projects already. It's a xml class from Keith
 Devens (google). But it is strictly for PHP4, because it uses a method
 which is deprecated in PHP5, so watch it.

 Hope this helps.

 On 4/6/07, Chris Hartjes [EMAIL PROTECTED] wrote:
 
  I second what Kjell said:  file_get_contents is your easiest solution
  if using PHP 5, otherwise use the curl functions.  XML parsing sucks
  in PHP 4, so I hope you can use PHP 5.
 
  Give me SimpleXML or give me death! :)
 
 
  On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:
  
   I read this article on yahoo developer network because I would like in
   my cake app to display search results from yahoo. The article is at
   http://developer.yahoo.com/php/howto-reqRestPhp.html
  
   There is some built in class of cake who can perform rest request to a
   webserver with curl or file_get_contents?
  
  
   
  
 
 
  --
  Chris Hartjes
 
  My motto for 2007:  Just build it, damnit!
 
  rallyhat.com - digital photo scavenger hunt
  @TheBallpark - http://www.littlehart.net/attheballpark
  @TheKeyboard - http://www.littlehart.net/atthekeyboard
 
  
 


 --
 Regards, Kjell
 www.m3nt0r.de

 



-- 
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Making REST Requests to a web-server like yahoo

2007-04-06 Thread Eric C Blount
After searching for a couple of minutes, I found the XML class Kjell is
speaking of:
http://keithdevens.com/software/phpxml

In case anyone else was as interested as I was...

HTH,
Eric


On 4/6/07, Kjell Bublitz [EMAIL PROTECTED] wrote:


 Chris, i think you switched something here.

 file_get_contents is available since PHP 4.3.0.
 It is file_put_contents which is only available in PHP5.

 I second that XML parsing sucks in PHP4. There is a wonderful class
 available i used in many projects already. It's a xml class from Keith
 Devens (google). But it is strictly for PHP4, because it uses a method
 which is deprecated in PHP5, so watch it.

 Hope this helps.

 On 4/6/07, Chris Hartjes [EMAIL PROTECTED] wrote:
 
  I second what Kjell said:  file_get_contents is your easiest solution
  if using PHP 5, otherwise use the curl functions.  XML parsing sucks
  in PHP 4, so I hope you can use PHP 5.
 
  Give me SimpleXML or give me death! :)
 
 
  On 4/6/07, Tonyz [EMAIL PROTECTED] wrote:
  
   I read this article on yahoo developer network because I would like in
   my cake app to display search results from yahoo. The article is at
   http://developer.yahoo.com/php/howto-reqRestPhp.html
  
   There is some built in class of cake who can perform rest request to a
   webserver with curl or file_get_contents?
  
  
   
  
 
 
  --
  Chris Hartjes
 
  My motto for 2007:  Just build it, damnit!
 
  rallyhat.com - digital photo scavenger hunt
  @TheBallpark - http://www.littlehart.net/attheballpark
  @TheKeyboard - http://www.littlehart.net/atthekeyboard
 
  
 


 --
 Regards, Kjell
 www.m3nt0r.de

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---