Forum Moderators: coopster

Message Too Old, No Replies

Directory navigation

         

Tym99

4:44 am on Jun 16, 2005 (gmt 0)

10+ Year Member



I'm working on a plugin for a Subdreamer site. Which is a PHP site management tool with forum intergration. I have the following in a PHP file:

$imagesdir = dirname(__FILE__).'/images';

This determines the directory to upload an image to. The problem is that it is uploading to the wrong folder. I want to go back a directory and then forward again.

I want to be here from the current directory path:
../p17_image_gallery/images

But I can't find how to go back a directory in PHP.

anshul

6:45 am on Jun 16, 2005 (gmt 0)

10+ Year Member



See chdir(), realpath(), getcwd() +..