# Elastic access via PHP

**URL:** <https://discuss.elastic.co/t/elastic-access-via-php/291083>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 6, 2021, 8:53pm UTC](https://discuss.elastic.co/t/elastic-access-via-php/291083 "2021-12-06T20:53:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franke2u](https://avatars.discourse-cdn.com/v4/letter/f/977dab/32.png) [@Franke2u](https://discuss.elastic.co/u/Franke2u)\
**Post date:** [December 6, 2021, 8:53pm UTC](https://discuss.elastic.co/t/elastic-access-via-php/291083/1 "2021-12-06T20:53:38Z")

</div>

Using PHP I can search and find data using the below command:  
$obj = $client-\>search($params);

I add data using Logstash.  
But unable to use other commands like get and update:  
$obj = $client-\>get($params2);  
$obj = $client-\>update($params3);

The code just seems to hangup and not return anything.  
Using Elastic ver 7.11 and PHP ver 8 running on Windows.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2022, 8:53pm UTC](https://discuss.elastic.co/t/elastic-access-via-php/291083/2 "2022-01-03T20:53:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
