# How to invoke PHP scripts in CloverETL?

**URL:** <https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732>\
**Category:** CloverDX Platform\
**Created:** [August 10, 2010, 12:00am UTC](https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732 "2010-08-10T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.westra](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@b.westra](https://forum.cloverdx.com/u/b.westra)\
**Post date:** [August 10, 2010, 12:00am UTC](https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732/1 "2010-08-10T00:00:00Z")

</div>

I have many PHP scripts that perform pre-processing on .txt and .csv files. Is it possible to invoke a php script in Clover? If so, would you please detail the process for me?

Thank you,  
Brian

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [August 11, 2010, 8:02am UTC](https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732/2 "2010-08-11T08:02:33Z")

</div>

Hello Brian,  
[SystemExecute component](http://wiki.cloveretl.org/doku.php?id=components:others#system%5Fexecute) can execute any system command, so also calling a php program.

---

<div class="post-metadata">

**Author:** ![b.westra](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@b.westra](https://forum.cloverdx.com/u/b.westra)\
**Post date:** [August 11, 2010, 6:36pm UTC](https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732/3 "2010-08-11T18:36:32Z")

</div>

Thank you for the quick reply…  
How would I set up the properties in the Edit Component window? Let’s say my command would be to return hostname and system date of that host along with invoking a php script. We connect to that particular server using the SSH protocol.

Thanks again…Brian

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [August 13, 2010, 11:47am UTC](https://forum.cloverdx.com/t/how-to-invoke-php-scripts-in-cloveretl/732/4 "2010-08-13T11:47:30Z")

</div>

Hello Brian,  
SystemExecute just formats input records and redirects such formatted records to process stdin; then data from the process stdout are parsed and sent to SystemExecute output port. So _command_ attribute of SystemExecute should contain the command you use to executing the php script out of CloverETL.  
But if you call a php script as a server service, you should probably use [HttpConnector component](http://wiki.cloveretl.org/doku.php?id=components:others#http%5Fconnector), not a systemExecute.
