# View page Datas

**URL:** <https://farmos.discourse.group/t/view-page-datas/1660>\
**Category:** Development\
**Tags:** workflow\
**Created:** [May 28, 2023, 3:35pm UTC](https://farmos.discourse.group/t/view-page-datas/1660 "2023-05-28T15:35:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![polaiah102](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@polaiah102](https://farmos.discourse.group/u/polaiah102)\
**Post date:** [May 28, 2023, 3:35pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/1 "2023-05-28T15:35:24Z")

</div>

Please tell anyone ,how to retrieved values for array format in Drupal Farmos with example ?

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 28, 2023, 5:43pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/2 "2023-05-28T17:43:13Z")

</div>

Hi @polaiah102 - Where are you trying to get the data from? Are you requesting data from outside of farmOS via the REST API? Or are you writing an internal module using Drupal/PHP?

If you are requesting data from outside of farmOS via the REST API, I would recommend starting with the following resources:

> **[farmOS Data Model](https://farmos.org/model/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

> **[API](https://farmos.org/development/api/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

This blog post has some quick examples for accessing farmOS data via Python using the API:

> **[Introduction to Python Scripting with farmOS](https://farmos.org/blog/2023/quick-intro-to-python-scripting/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

Feel free to ask more specific questions as you begin to dig in and try things!

---

<div class="post-metadata">

**Author:** ![polaiah102](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@polaiah102](https://farmos.discourse.group/u/polaiah102)\
**Post date:** [May 29, 2023, 9:59am UTC](https://farmos.discourse.group/t/view-page-datas/1660/3 "2023-05-29T09:59:31Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/6/67157a076928e13f93827ddc9535407251c90f62.png)  
this kind of array values how will reterived in php drupal

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 30, 2023, 1:55pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/4 "2023-05-30T13:55:28Z")

</div>

@polaiah102 can you describe in more detail what you are trying to do? Happy to help point you in the right direction.

---

<div class="post-metadata">

**Author:** ![polaiah102](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@polaiah102](https://farmos.discourse.group/u/polaiah102)\
**Post date:** [May 30, 2023, 5:21pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/5 "2023-05-30T17:21:14Z")

</div>

> [@mstenta](#):
>
> you

ok

---

<div class="post-metadata">

**Author:** ![polaiah102](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@polaiah102](https://farmos.discourse.group/u/polaiah102)\
**Post date:** [May 30, 2023, 5:26pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/6 "2023-05-30T17:26:11Z")

</div>

How to hosting Farmos files in one sever and dB in another server …if it is possible ???please let me know with example?

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 30, 2023, 6:31pm UTC](https://farmos.discourse.group/t/view-page-datas/1660/7 "2023-05-30T18:31:45Z")

</div>

> [@polaiah102](#):
>
> How to hosting Farmos files in one sever and dB in another server …if it is possible ???

Yes it’s possible to host farmOS and the database on separate servers. When you are installing farmOS one of the first steps is it will ask you for your database server URL, username, and password.

All of this functionality come from Drupal core, which farmOS is built upon. It isn’t specific to farmOS. So you can find more general Drupal installation resources on the internet if you aren’t able to figure it out.
