Phrets - multiple cities

asked 2018-10-22 11:12:19 -0600

$rets_login_url = ""; $rets_username = "ChasonWachter";

Using Phrets, pulling multiple cities, data and photo urls, but getting a time out error. Script works fine with one city. Any suggestions? Is there a way to up the time allowed?

edit retag flag offensive close merge delete


Are you using the older 1.0 PHRETS or 2.0?
You might need to change some settings to keep your client from timing out.

bwolven gravatar imagebwolven ( 2018-10-22 11:50:58 -0600 )edit

By the way your profile doesn't allow access to CM_6 class.
If you need access you will need to go through the MLS.

bwolven gravatar imagebwolven ( 2018-10-22 13:43:26 -0600 )edit

Were you able to get this working?

bwolven gravatar imagebwolven ( 2018-10-22 15:02:16 -0600 )edit

no, I was not.

wildgoose gravatar imagewildgoose ( 2018-10-22 21:03:28 -0600 )edit

I may have to break it down to multiple files and calls....(getting a city at a time. Bummer)

wildgoose gravatar imagewildgoose ( 2018-10-22 21:06:51 -0600 )edit

I see requests coming though just fine searching 2 cities and they only seem to take a few seconds.
What exactly is not working?
Have you tried updating to PHRETS 2.0?

bwolven gravatar imagebwolven ( 2018-10-23 08:58:54 -0600 )edit

Yes, but the script doesn't seem to end. (i.e., I display a summary at the end with a record count and it doesn't always appear.. leaving me to wonder if the downloaded files are complete. They seem to be, as there is no partial record, But often the summary does not appear. I have not tried updating to phrets 2.0 yet, and don't know if it requires changes to my code. Not sure if it is just interchangeable. Researching that. Thanks for asking.

wildgoose gravatar imagewildgoose ( 2018-10-27 14:58:13 -0600 )edit

Did you ever remove your search of the CM_6 class that isn't enabled in your profile?
If not, it would return an error and could be causing your script issues.

bwolven gravatar imagebwolven ( 2018-10-31 09:11:39 -0600 )edit

Were you able to get the multiple city search working?

bwolven gravatar imagebwolven ( 2018-11-20 15:59:51 -0600 )edit

Yes, but I had to break the process up to avoid the 2 minute timeout imposed by my hosting company. I do have a question however... Is there a manual somewhere that I don't have access to? the MD document you referred me to and which I downloaded solved the lookup problem.... but nowhere can I find things like this: LM_Bit_34 is the Named waterfront indicator, and it comes across as 0 or 1. The agent entry for Paragon is Y/N. I can assume the 0 is N, but WHERE DOES IT ACTUALLY SAY THAT?

wildgoose gravatar imagewildgoose ( 2018-11-21 09:17:49 -0600 )edit

Here is a link to some resources:
On the RESO.ORG site, you can find developer resources.
The most important of which is RETS specification documents that outline data types etc.

bwolven gravatar imagebwolven ( 2018-11-21 09:30:39 -0600 )edit