Creating JPEG image syntax

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



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.