# Creating JPEG image syntax

**URL:** https://forum.kirupa.com/t/creating-jpeg-image-syntax/228099
**Category:** programming
**Created:** [June 5, 2007, 11:24am UTC](https://forum.kirupa.com/t/creating-jpeg-image-syntax/228099 "2007-06-05T11:24:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)
#### Post date: [June 5, 2007, 11:24am UTC](https://forum.kirupa.com/t/creating-jpeg-image-syntax/228099/1 "2007-06-05T11:24:48Z")

</div>

If the variable $imagename is being passed from flash and a jpeg is being created like this:

```php

imagejpeg($img,$imagename,90);

```

What is the correct syntax for making the image created in a folder called images? Something along the lines of this.

imagejpeg($img,/images/$imagename,90);

Thanks.
