简体   繁体   English

寻找将RETS集成到php网站的示例或帮助

[英]Looking for examples or help on integrating RETS into a php website

I'm tasked with integrating RETS I to a php based website. 我的任务是将RETS I集成到基于php的网站。 I've heard that phrets is a good library to use. 我听说phrets是一个很好用的库。 The site is on a shared hosting platform (godaddy). 该网站位于共享托管平台(godaddy)上。 I thought I could build a page with some search fields and have it do a query and display the results on a second page? 我以为我可以用一些搜索字段构建一个页面并让它进行查询并在第二页上显示结果? Other places I've read name it sound more like I will still need to run a local server that copies the data and stores it locally. 我读过的其他地方名称听起来更像我仍然需要运行复制数据并在本地存储的本地服务器。 Now I'm not sure what to do. 现在我不知道该怎么做。 Any suggestions or help would be greatly appreciated. 任何建议或帮助将不胜感激。

First of all...get off your shared server and someplace where you can get root access. 首先......下载您的共享服务器以及可以获得root访问权限的位置。 RETS requires access to port 6103 and a shared server is going to block access to it. RETS需要访问端口6103,共享服务器将阻止访问它。 Second, PHP is a perfectly good processing tool for RETS. 其次,PHP是一个非常好的RETS处理工具。 VieleRETS is built in PHP and it's a great piece of software built by the center for realtor technology...the same people that created the RETS standard. VieleRETS是用PHP构建的,它是由中心为房地产经纪人技术构建的一个很棒的软件......与创建RETS标准的人相同。

RETS IQ using java is better way to Implement rather then PHRETS 使用java的RETS IQ是实现而不是PHRETS的更好方法

Create Good Data feed Arch for RETS using RETS IQ java then Push that one in database better solution for you 使用RETS IQ java为RETS创建良好的数据提要Arch然后在数据库中推送一个更好的解决方案

I looked at the product from RETS DEVELOPEMENT GROUP and I guarantee if you follow the guidelines outlined by the developer you will not understand RETS or IDX because the terminology being used on that site is just wrong on most levels. 我查看了RETS DEVELOPEMENT GROUP的产品,我保证如果您遵循开发人员概述的指导原则,您将无法理解RETS或IDX,因为该网站上使用的术语在大多数级别上都是错误的。 I'd stick with vieleRETS or another product. 我会坚持使用vieleRETS或其他产品。

Actually it will work using PHP on a shared server if: 实际上,如果符合以下条件,它将在共享服务器上使用PHP:

  • You have a host that allows access to port 6103. As other people have pointed out this is not the norm and definitely not with Godaddy, but there are a few out there. 你有一个主机允许访问端口6103.正如其他人已经指出这不是常态,绝对不是与Godaddy,但有一些在那里。
  • You are covering a market that is not huge. 你正在覆盖一个不大的市场。
  • You optimize and optimize again your requests from the RETS server to only pull changes. 您再次优化并优化来自RETS服务器的请求,以仅提取更改。

So if you have a limited budget (which seems to be common with realtors) you can: 因此,如果您的预算有限(这似乎与房地产经纪人相同),您可以:

  • Use a shared host (on an accommodating hosting service). 使用共享主机(在容纳主机服务上)。
  • You will need to create a local database for displaying your results. 您需要创建一个本地数据库来显示结果。
  • Set up a cron job to pull down changes from the RETS server say every 24 hours preferably when the server is likely to not be under load, like at night. 设置一个cron作业来从RETS服务器下拉更改说每24小时一次,最好是服务器可能没有负载,比如在晚上。
  • Construct a RETS query to only pull listings from the area you care about. 构造RETS查询以仅从您关注的区域中提取列表。
  • Query the server for changes and only pull changed/new listings. 查询服务器以查找更改,并仅提取已更改/新列表。
  • Save on bandwidth and server load if your RETS service has an image hosting service, rather than download them to your server. 如果您的RETS服务具有映像托管服务,而不是将其下载到您的服务器,请节省带宽和服务器负载。

But you are playing with fire - pulling a lot of records and images takes time and could lead to the hosting account being disabled. 但是你正在玩火 - 拉大量记录和图像需要时间,并可能导致托管帐户被禁用。

NB: I would not necessarily rely on the change list from the RETS server. 注意:我不一定要依赖RETS服务器的更改列表。 I have been burnt before by it giving invalid data. 我之前因为提供无效数据而被烧毁。

Don't try to work with RETS using PHP, even if you're a master PHP developer, you will fail miserably because PHP is so not the tool for RETS processing. 不要尝试使用PHP使用RETS,即使你是一个主要的PHP开发人员,你也会失败,因为PHP不是RETS处理的工具。

That said. 那就是说。 The defacto tool for RETS is libRETS and it has compatible swig bindings to Ruby, Python, and I believe C# as well as a native C++ implementation. RETS的defacto工具是libRETS,它具有与Ruby,Python兼容的swig绑定,我相信C#以及本机C ++实现。

Lastly, its technically possible to have a web request fire off a RETS query, get the results back, and then transform the data for presentation, but its very possible for a relatively simple query to take upwards of 15-30 seconds due to load on the remote RETS server. 最后,技术上可以让一个Web请求触发RETS查询,获取结果,然后转换数据以进行演示,但是由于加载,相对简单的查询很可能需要花费15-30秒。远程RETS服务器。 So its usually better to build or find software to replicate all or some of an MLS's active listings. 因此,通常更好地构建或查找软件来复制MLS的所有或部分活动列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM