getcwd help needed
<p>I am using following code to upload images to pic directory...</p>

<pre><code>move_uploaded_file($_FILES['pic']['tmp_name'], getcwd() . '/templates/images/pics/' . $pic_name . $ext);

echo getcwd(); //returns C:\wamp\www\sapp\Admin
</code></pre>

<p>so simply it uploads images inside templates of Admin folder, not in root, how can i change above code so it could save images into C:\wamp\www\sapp/templates/images/pics/ instead of C:\wamp\www\sapp\Admin/templates/images/pics/. i hope you got idea. thanks..</p>
