close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Download folder on main site root

Thread begun 7/08/2009 1:42 am by Heckie | Last modified 7/09/2009 1:32 am by Heckie | 3494 views | 6 replies |

Heckie

Download folder on main site root

I'm at the final stage of building an MP3 music shop but have run into a problem.

I have uploaded my files into the root folder but cannot get DFP2 to link to them. It worked fine in testing when the source folder was inside www.

Here's what I have done so far:
I have added a folder /home/username/downloads

The page the will start the downloads is mydomain.com/accounts/orderdetails.php
(/home/username/public_html/accounts/orderdetails.php)

For testing the source folder was mydomain.com/downloads

On the orderdetails.php DFP behaviour, I have listed the folder as /home/username/downloads

How do I link to the files? Do I need to change permissions, any suggestions?

Sign in to reply to this post

Ray BorduinWebAssist

You cannot link directly to files outside of the web root. You would have to use file download that is included with Digital file pro to give access to download files outside of the root.

Sign in to reply to this post
Did this help? Tips are appreciated...

Heckie

Thats what I've done, I've added /home/username/downloads into the Digital File Pro 2 wizard but it doesn't work…

I'm wondering if I need to format the path to folder differently i.e. ../../../home/username/downloads - (I tried this but no luck)

Any help would be appreciated!

Sign in to reply to this post

Ray BorduinWebAssist

<?php echo(realpath('../../../home/username/downloads')); ?>

that would give you the correct path to use, or you could just use the code as it appears I think.

Sign in to reply to this post
Did this help? Tips are appreciated...

Heckie

Do I enter that line of code into the DFP wizard?

Sign in to reply to this post

Ray BorduinWebAssist

As the path... I think so..

Or just put it on top of your page and view the page to see the path.

Then copy and paste the acutal path in the DFP wizard.

Sign in to reply to this post
Did this help? Tips are appreciated...

Heckie

Got it Ray - path should have simply been ../../downloads.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...