Your Ad Here

Posted By

peterbelsky on 11/12/11


Tagged


Versions (?)

Find Full File Path


 / Published in: PHP
 

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.

<?php>

Now, just place this file within the directory that you wish to find the full file path for and call it via your web browser. So if you placed the file wp-content/plugins/shopp/storage. You would call www.yourdomain.com/wp-content/plugins/shopp/storage/path.php

This will print out the exact path to this folder, now just copy and paste what this prints out to your Shopp->Settings->System - Image Storage text box and save.

  1. <?php echo getcwd(); ?>

Report this snippet  

You need to login to post a comment.