| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2004
Lives in Tennessee, USA
Hosted on Pass56
43 posts
Gave thanks: 1
Thanked 2 times
|
file_get_contents problem? (Amazon API + PHP)
Hi,
I'm dipping my feet into some custom stuff with the Amazon store API, and have hit a snag. I'm messing with the following code to generate a list of ASINs related to a given product. That's all it does. Here's the code (it may be a bit inelegant...I'm just learning!) PHP Code:
(Sorry I can't reproduce it fully here without adding in my Amazon ID and key.) When I put it in a web page on the server, though, it doesn't work. I can echo the $request string, but when I try to echo the $response, it comes up empty. Could this have something to do with file_get_contents on my server? Or is it probably something else? Thanks for any suggestions! Jeff. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Super #1
|
You could try using cURL instead.
PHP Code:
__________________
fury™ - not helping the situation since 1987 robmonroe.net | Twitter | Foursquare |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Super #1
|
Glad I could help!
__________________
fury™ - not helping the situation since 1987 robmonroe.net | Twitter | Foursquare |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|