MySQL SELECT Statement (Pulling listings from my database)
While loop{...
$photos = $rets->GetObject("Property", "Photo", $Matrix_Unique_ID);
foreach ($photos as $photo) {
$listing = $photo['Content-ID'];
$number = $photo['Object-ID'];
if ($photo['Success'] == true) {
file_put_contents("IDX_images/image-{$listing}-0.jpg", $photo['Data']);
}
else {
echo "({$listing}-{$number}): {$photo['ReplyCode']} = {$photo['ReplyText']}\n";
}
break;} //getting only one photo, image-{$listing}-0.jpg
...} End While loop
I am downloading the photos to my server in a batch rather than downloading them on the fly when needed. How is everyone downloading them? I am running the phrets getObject() and downloading the photos but I always get timed out. I am also setting set_time_limit(0); at the top of my PHP page but that doesn't seem to help.I appreciate any help thrown my way!
--
You received this message because you are subscribed to the Google Groups "PHRETS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phrets+un...@googlegroups.com.
To post to this group, send email to phr...@googlegroups.com.
Visit this group at http://groups.google.com/group/phrets.
For more options, visit https://groups.google.com/d/optout.
When you say it times out every time, does it actually always fail 100% of the time or will some requests succeed? If you punch in your credentials and GetObject request into www.retsmd.com/view_photos.php , do you get the same timeout?
Troy, do you have the source code for view_photos.php? I can get the images for Palm Beach MLS with that program, but my own program (which I've used for other MLS's) fails to get images with the basic call:
[ReplyCode] => 20403
[ReplyText] => No such object available for this resourceFor each call to get images
--
--
You received this message because you are subscribed to a topic in the Google Groups "PHRETS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phrets/Ur83LKUMlBc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phrets+un...@googlegroups.com.