# Local server not executing PHP called from Flash

**URL:** <https://forum.kirupa.com/t/local-server-not-executing-php-called-from-flash/281126>\
**Category:** programming\
**Created:** [February 5, 2009, 5:45am UTC](https://forum.kirupa.com/t/local-server-not-executing-php-called-from-flash/281126 "2009-02-05T05:45:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jontyc](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jontyc](https://forum.kirupa.com/u/jontyc)\
**Post date:** [February 5, 2009, 5:45am UTC](https://forum.kirupa.com/t/local-server-not-executing-php-called-from-flash/281126/1 "2009-02-05T05:45:44Z")

</div>

Can’t work this one out. Doing the normal stuff, ie:

```auto

var var_load:URLLoader = new URLLoader;
var URL_request:URLRequest = new URLRequest("./get_data.php");
URL_request.method = URLRequestMethod.POST;
var_load.load(URL_request);

```

And when running the swf locally, the request’s response comes back containing the uninterpreted php - ie. the php file’s contents itself.

Upload everything to a web host though, the server executes the php fine and returns the expected data.

PHP is running fine on my local server - displaying the local php file in a browser sees it execute.

Is there some mechanism different here? The php file is being found ok, the local server just isn’t executing it.
