# Running php scripts with flash no webserver?

**URL:** https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197
**Category:** programming
**Created:** [July 20, 2004, 3:55pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197 "2004-07-20T15:55:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)
#### Post date: [July 20, 2004, 3:55pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/1 "2004-07-20T15:55:38Z")

</div>

Hello,

as i could here, we can run php scripts on a local machine with no webserver, only by using php.exe. Does anyone know how to use it with flash? Would fscommand(“exec”) work??

Tia 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 21, 2004, 2:34pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/2 "2004-07-21T14:34:54Z")

</div>

Anyone??  
i read that you can use .exe in a fscommand folder…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 1:15pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/3 "2004-07-23T13:15:49Z")

</div>

The only problem is that Flash cannot pass any parameter when using fscommand() function… Uh… Maybe you should be able to call it if you use third party projector tools…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 6:29pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/4 "2004-07-23T18:29:12Z")

</div>

What if you write a batch file that calls php with the correct arguments ("\< filename.php"), and then use fscommand() to execute the batch file?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 6:38pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/5 "2004-07-23T18:38:16Z")

</div>

how would you do that ? 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2004, 9:18pm UTC](https://forum.kirupa.com/t/running-php-scripts-with-flash-no-webserver/58197/6 "2004-07-23T21:18:21Z")

</div>

Create a file named 'execute.txt’  
In that file, put 1 line that says 'php.exe \< filename.php’  
Rename the file 'execute.bat’  
In flash, use fscommand to run ‘execute.bat’
