Find Full File Path


/ Published in: PHP
Save to your folder(s)

Summary

In a lot of shared hosting environments, what looks to be the full path of a folder is not necessarily the correct full path. The good news is that there is a quick way to find this information. The full file path is required when setting up file system product and image storage.
¶ Instructions

Create a new PHP file named path.php. Inside this PHP file place the following code and save the file.



Copy this code and paste it in your HTML
  1. <?php echo getcwd(); ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.