Move up a directory in PHP

If my file is located at mySite.com/data/php, how can i direct my .php to mySite.com/data/images? I can’t use the full url because I’m trying to save images to the site and php generates an error if I try to reference via the full http url.

path =

‘…/images’

… references the directory above from a relative standpoint

Nice.

What about more than one directory? How do I manage to move up two (or more)?

‘…/…/’

‘/’ symbolizes the root directory that your application is allowed inside.