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

发布于 2024-08-19 06:07:04 字数 187 浏览 6 评论 0原文

我的任务是将 RETS I 集成到基于 php 的网站。我听说 phrets 是一个很好用的库。该网站位于共享托管平台(godaddy)上。我想我可以构建一个包含一些搜索字段的页面,并让它执行查询并将结果显示在第二页上?我读过的其他地方名字听起来 更像是我仍然需要运行一个本地服务器来复制数据并将其存储在本地。现在我不知道该怎么办。任何建议或帮助将不胜感激。

I'm tasked with integrating RETS I to a php based website. I've heard that phrets is a good library to use. The site is on a shared hosting platform (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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

毁我热情 2024-08-26 06:07:04

首先...离开你的共享服务器并找到一个可以获得 root 访问权限的地方。 RETS 需要访问端口 6103,而共享服务器将阻止对其的访问。
其次,PHP是一个非常好的RETS处理工具。 VieleRETS 是用 PHP 构建的,它是由房地产经纪人技术中心构建的一款出色的软件……创建 RETS 标准的人也是这些人。

First of all...get off your shared server and someplace where you can get root access. RETS requires access to port 6103 and a shared server is going to block access to it.
Second, PHP is a perfectly good processing tool for 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.

已下线请稍等 2024-08-26 06:07:04

我查看了 RETS DEVELOPMENT GROUP 的产品,我保证如果您遵循开发人员概述的指南,您将无法理解 RETS 或 IDX,因为该网站上使用的术语在大多数级别上都是错误的。我会坚持使用 vieleRETS 或其他产品。

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. I'd stick with vieleRETS or another product.

酒中人 2024-08-26 06:07:04

使用 java 的 RETS IQ 是比 PHRETS 更好的实施方法

使用 RETS IQ java 为 RETS 创建良好的数据源架构,然后将其推送到数据库中,为您提供更好的解决方案

RETS IQ using java is better way to Implement rather then PHRETS

Create Good Data feed Arch for RETS using RETS IQ java then Push that one in database better solution for you

反目相谮 2024-08-26 06:07:04

实际上,如果满足以下条件,则可以在共享服务器上使用 PHP:

  • 您有一个允许访问端口 6103 的主机。
    指出这不是常态,对于 Godaddy 来说绝对不是,但是
    那里有一些。
  • 您所覆盖的市场并不大。
  • 您优化并再次优化来自 RETS 服务器的请求
    只拉变化。

因此,如果您的预算有限(这对于房地产经纪人来说似乎很常见),您可以:

  • 使用共享主机(在宽松的托管服务上)。
  • 您将需要创建一个本地数据库来显示您的结果。
  • 设置一个 cron 作业来从 RETS 服务器中提取更改,例如每个
    最好是 24 小时,当服务器可能没有负载时,例如
    晚上。
  • 构建 RETS 查询以仅从您关心的区域中提取列表
    关于。
  • 查询服务器的更改并仅拉取更改/新的列表。
  • 如果您的 RETS 服务有图像,可节省带宽和服务器负载
    托管服务,而不是将它们下载到您的服务器。

但您正在玩火 - 提取大量记录和图像需要时间,并且可能导致托管帐户被禁用。

注意:我不一定依赖 RETS 服务器的更改列表。我以前曾被它提供无效数据而烧伤过。

Actually it will work using PHP on a shared server if:

  • 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.
  • You are covering a market that is not huge.
  • You optimize and optimize again your requests from the RETS server to
    only pull changes.

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.
  • Construct a RETS query to only pull listings from the area you care
    about.
  • 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.

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. I have been burnt before by it giving invalid data.

薄凉少年不暖心 2024-08-26 06:07:04

不要尝试使用 PHP 来处理 RETS,即使您是 PHP 开发高手,您也会惨败,因为 PHP 根本不是用于 RETS 处理的工具。

就是这样说的。 RETS 的事实上的工具是 libRETS,它具有与 Ruby、Python 兼容的 swig 绑定,我相信还有 C# 以及本机 C++ 实现。

最后,技术上可以让 Web 请求触发 RETS 查询,取回结果,然后转换数据以进行演示,但由于负载的原因,相对简单的查询很可能需要花费 15-30 秒的时间。远程 RETS 服务器。因此,通常最好构建或找到软件来复制 MLS 的全部或部分活跃列表。

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.

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.

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. So its usually better to build or find software to replicate all or some of an MLS's active listings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文