# Execute PHP Script

**URL:** <https://forum.sambapos.com/t/execute-php-script/2079>\
**Category:** V4 Request\
**Created:** [August 10, 2014, 1:37am UTC](https://forum.sambapos.com/t/execute-php-script/2079 "2014-08-10T01:37:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 10, 2014, 1:37am UTC](https://forum.sambapos.com/t/execute-php-script/2079/1 "2014-08-10T01:37:35Z")

</div>

I can see this being useful for many things. Maybe it could be a module to add in support for people running their own web server who plan to integrate services with Samba. Since I have been toying with TimeTrex I know I am going to attempt other things that would integrate my Companies website into SambaPOS.

Just a few possibilities I can think of… linking daily specials into my website dynamically when I start them in Samba… Or linking my menu/prices etc from Samba directly into my website.

I make changes from samba… it updates my restaurant website…

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 10, 2014, 1:39am UTC](https://forum.sambapos.com/t/execute-php-script/2079/2 "2014-08-10T01:39:50Z")

</div>

I can probably figure out a way to do this without it built in but I thought I could maybe open up a discussion about this at least.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [August 10, 2014, 2:03am UTC](https://forum.sambapos.com/t/execute-php-script/2079/3 "2014-08-10T02:03:04Z")

</div>

Let me make some advertisement 🙂  
We’re actively working on a great project called Samba on Air. It is an online service for primarily building and hosting your restaurant’s website. We’ll fully integrate SambaPOS to automatically update menus, specials, prices and process online orders and reservations. We’re also planning to release some mobile apps for your customers. We’ll talk about it a lot soon…

Also we’re open to all kinds of third party integrations for better automating your business. Since I don’t have much experience on PHP language or running PHP scripts I’m not sure how it helps but if you can give more details about your plans I can search for possibilities.

---

<div class="post-metadata">

**Author:** ![gerlandog](https://forum.sambapos.com/user_avatar/forum.sambapos.com/gerlandog/32/39076_2.png) [@gerlandog](https://forum.sambapos.com/u/gerlandog)\
**Post date:** [August 10, 2014, 2:08am UTC](https://forum.sambapos.com/t/execute-php-script/2079/4 "2014-08-10T02:08:18Z")

</div>

Count me in… I would really like to help in any way!!!

Thanks!!!

G.

PD I have benn looking around for 3rd partys ANDROID menus and online orders… coudl not find much…  
perhaps you would like to take a look at: [http://www.sefiro.com.br/dmenu/](http://www.sefiro.com.br/dmenu/)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 10, 2014, 2:17am UTC](https://forum.sambapos.com/t/execute-php-script/2079/5 "2014-08-10T02:17:19Z")

</div>

Awesome looking forward to that. Basically to run a php script you have to have php installed on the server you plan on running the script from and a web server for it to feed to.

You can run the script by placing it in your web server and then pulling it up via your web browser example: [www.test.com/script.php](http://www.test.com/script.php) or you can run it via a cmd by calling php.exe example c:\php\php.exe -f “f:\scripts\script.php”

I havn’t tried but I was wondering if Start Process would work but I am not sure if it can support that style of argument.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 10, 2014, 2:37am UTC](https://forum.sambapos.com/t/execute-php-script/2079/6 "2014-08-10T02:37:02Z")

</div>

My plans are pretty open right now. I am sort of re-branding my business and plan to launch this POS once I feel I have it ready. Everyday I am searching for things I can do with Samba and other sources to improve my business. One thing I Know I need to do is my business needs to become more social.

I have done a lot with PHP in the past and its pretty good for building dynamic applications and websites. Most of my limited experience is with PHP so I kinda of gravitate towards it when I am looking for solutions.

But I am open as well.

PS: What you mentioned in your advertisement is mostly what I am looking for so I will gladly wait.

---

<div class="post-metadata">

**Author:** ![neko](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/7ab992/32.png) [@neko](https://forum.sambapos.com/u/neko)\
**Post date:** [August 11, 2014, 3:31am UTC](https://forum.sambapos.com/t/execute-php-script/2079/7 "2014-08-11T03:31:50Z")

</div>

You should be able to launch a cmd to access your script on the server. sth like this:

```
$ wget http://www.test.com/script.php?arg1=xx
```

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 11, 2014, 3:49am UTC](https://forum.sambapos.com/t/execute-php-script/2079/8 "2014-08-11T03:49:28Z")

</div>

I know I can launch a CMD its how I am currently doing it. I was looking for something more integrated.

---

<div class="post-metadata">

**Author:** ![neko](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/7ab992/32.png) [@neko](https://forum.sambapos.com/u/neko)\
**Post date:** [August 11, 2014, 3:58am UTC](https://forum.sambapos.com/t/execute-php-script/2079/9 "2014-08-11T03:58:51Z")

</div>

Yeah, I was also looking to that integrated solution but looking at SambaPOS roadmaps, I think these features will come. I was thinking either using cmd with JSON with POST to the web server or the old school method:

- dump the table
- sync it to the web server
- update the tables on the server

---

<div class="post-metadata">

**Author:** ![trentdavis](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@trentdavis](https://forum.sambapos.com/u/trentdavis)\
**Post date:** [April 8, 2015, 12:12pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/10 "2015-04-08T12:12:58Z")

</div>

Do you have any update on this feature? I urgently need to integrate a restaurant website to be able to take orders directly into SambaPOS.

Willing to pay to have it done.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 8, 2015, 1:06pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/11 "2015-04-08T13:06:01Z")

</div>

Its possible right now if you know what your doing. An official solution is still some time away but planned.

---

<div class="post-metadata">

**Author:** ![trentdavis](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@trentdavis](https://forum.sambapos.com/u/trentdavis)\
**Post date:** [April 8, 2015, 1:10pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/12 "2015-04-08T13:10:51Z")

</div>

What would I need to do? Would you be willing to setup for me, and at what cost?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 8, 2015, 1:14pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/13 "2015-04-08T13:14:55Z")

</div>

It would be very extensive and require very good knowledge of PHP and samba. And no I would not because I do not have that kind of time to do a project that large right now.

---

<div class="post-metadata">

**Author:** ![trentdavis](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/t/f08c70/32.png) [@trentdavis](https://forum.sambapos.com/u/trentdavis)\
**Post date:** [April 8, 2015, 1:18pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/14 "2015-04-08T13:18:34Z")

</div>

Ok, what if I just wanted to display my website orders inside SambaPOS (perhaps using entities)? How would I go about doing that?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [April 8, 2015, 1:20pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/15 "2015-04-08T13:20:33Z")

</div>

Use the **HTML Viewer Widget** on a **Custom Entity Screen**. Search those terms to get started.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 8, 2015, 1:24pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/16 "2015-04-08T13:24:01Z")

</div>

I think me and Q had some extensive discussions on this while back you might learn enough info to get started by looking that up. Search for the key topics like what Q just suggested.

Also look up **inject and invoke script**

PS. There are actions that deal with updating HTML Widget as well you might look those up and play with that. We have several examples in the forum when we were prodding @emre for solutions several months ago.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [April 8, 2015, 6:29pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/17 "2015-04-08T18:29:44Z")

</div>

Shouldn’t samba v5 make online ordering alot easier to achieve?

btw any news on a release soon?

@kendash

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 8, 2015, 6:30pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/18 "2015-04-08T18:30:49Z")

</div>

> [@Hasa](#):
>
> Shouldn’t samba v5 make online ordering alot easier to achieve?

There are some very nice features planned yes.

> [@Hasa](#):
>
> btw any news on a release soon?

When it releases you will know 😛

We still have bugs working out some of them recently have been breaking. @emre introduced some very very nice features and we are still improving and adding a few more… I cant speak for @emre he has not given anyone a release date not even us.

But if I was to guess based on its current state it shouldn’t be too much longer. That is just my opinion I could be completely wrong.

@Hasa to put it into perspective v5 has completely new engines for how it evaluates expressions among other things. This potentially could cause things to break from v4 with some peoples configurations. We are still discovering small bugs with this even though we are in the 20th release of v5. It has progressed to something truly amazing but I can understand why he wants it to be tested more.

It will be worth the wait… these things need testing but v5 wouldnt be worth the v5 tittle if it wasnt different and a better product so it will all be worth it.

The more we keep @emre away from the general forum the more focused he is on developing. There are a few of us that try our best to answer all the questions etc so @emre doesnt have too.

---

<div class="post-metadata">

**Author:** ![Hasa](https://forum.sambapos.com/user_avatar/forum.sambapos.com/hasa/32/50950_2.png) [@Hasa](https://forum.sambapos.com/u/Hasa)\
**Post date:** [April 9, 2015, 9:24pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/19 "2015-04-09T21:24:27Z")

</div>

So in these new cool features, can we expect more extensive and efficient ways to design the menu flow. Like for courses, coupons, promotions (buy one get one free), order tags (anything besides what you showed me), etc

@kendash

Thanks!

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 9, 2015, 9:29pm UTC](https://forum.sambapos.com/t/execute-php-script/2079/20 "2015-04-09T21:29:00Z")

</div>

Yes there will be many different improvements for just about everything.

[Next page](https://forum.sambapos.com/t/execute-php-script/2079.md?page=2)
