Jump to content

How to get the full path in userfile?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
organizedchaos

organizedchaos

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
Hi! Can anyone tell me how to get the whole path including the filename when I browse for a file? The file could be anywhere so I just couldn't add the path in my code.

This code only gives me the filename:

$filename = $_FILES['userfile']['name'];

Thanks!

Edited by organizedchaos, 18 June 2009 - 11:04 AM.
Added something


#2
Guest_Jaan_*

Guest_Jaan_*
  • Guests
hmm..

<?php 

echo getcwd(); 

?>

this should help you

#3
organizedchaos

organizedchaos

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
^Thanks! =)