# Absolute and relative path with URLRequest

**URL:** https://forum.kirupa.com/t/absolute-and-relative-path-with-urlrequest/252057
**Category:** flash
**Created:** [February 15, 2008, 12:29pm UTC](https://forum.kirupa.com/t/absolute-and-relative-path-with-urlrequest/252057 "2008-02-15T12:29:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kitsunegari](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kitsunegari](https://forum.kirupa.com/u/kitsunegari)
#### Post date: [February 15, 2008, 12:29pm UTC](https://forum.kirupa.com/t/absolute-and-relative-path-with-urlrequest/252057/1 "2008-02-15T12:29:48Z")

</div>

Hi  
I have a question concerning the use of URLRequest

When I work on my local server, I have to put the absolute address of the file I am calling with URLRequest (the relative path doesn’t work)  
For example

```auto
urlRequest:URLRequest = new URLRequest("http://127.0.0.1/www/site/test/call.php");

```

Then I have to modify this address each time I upload the flash file on the production server!

Whereas I would like to just have to put something like this:

```auto
urlRequest:URLRequest = new URLRequest("call.php");

```

but then it doesn’t work in local

Do you know if it is a flash or php problem? What should I change so that my relative path works?

thanks for your help
