Fie Download Script

  • (2 Pages)
  • +
  • 1
  • 2

23 Replies - 885 Views - Last Post: 04 November 2013 - 10:36 AM Rate Topic: -----

#16 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 20 October 2013 - 12:36 PM

It works from a subdirectory - the only problem is, I have to go up two directories with it, then down into different ones.
Was This Post Helpful? 0
  • +
  • -

#17 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2954
  • View blog
  • Posts: 10,175
  • Joined: 08-August 08

Re: Fie Download Script

Posted 20 October 2013 - 12:37 PM

Why? Who cares where it is?
Was This Post Helpful? 0
  • +
  • -

#18 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 20 October 2013 - 12:39 PM

Because I have a downloads section on every sub-domain I have, and I thought it would be better to put them all together in a similar place, rather than have to put them all over the place in each different site I have.

This post has been edited by chris98: 20 October 2013 - 12:40 PM

Was This Post Helpful? 0
  • +
  • -

#19 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2954
  • View blog
  • Posts: 10,175
  • Joined: 08-August 08

Re: Fie Download Script

Posted 20 October 2013 - 12:52 PM

Ok, so you have one path to all downloads.That should be even easier. If it's working all you need to do is set the permissions and verify that it still works and that a user can't see in that directory.

This post has been edited by CTphpnwb: 20 October 2013 - 12:53 PM

Was This Post Helpful? 1
  • +
  • -

#20 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 20 October 2013 - 01:01 PM

I've changed it to the sub-directory now, as I have realised that since it was originally set up to work with a sub-directory, it would be easier to leave it, as I wouldn't have to change any PHP then.


Plus, each site would have been in a different directory in the files.For example, this one would have been in the files/sh2/files or files/sh2/previews/
ones.The SHC (stronghold crusader) one would have been files/shc/files/.etc.etc.etc.

And in addition to this, it stopped working as soon as I tried to go up a directory.

I'm just glad it's working - thanks for your help.

This post has been edited by chris98: 20 October 2013 - 01:02 PM

Was This Post Helpful? 0
  • +
  • -

#21 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 21 October 2013 - 09:58 AM

Now, I can get it to work, but every time it downloads a file, and I try to open it, Windows says that the file is "invalid" and "corrupt".When I download it from the online file manager, it works???

Can you tell me what is wrong?

Also, when Iopen it in the internet, it is fine.

EDIT: Go here for a demo.

http://stronghold2.s...errain_Pack.zip

This post has been edited by chris98: 21 October 2013 - 10:15 AM

Was This Post Helpful? 0
  • +
  • -

#22 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: Fie Download Script

Posted 21 October 2013 - 10:28 AM

Downloaded the "file" and took a look at it with vim (notepad++ or sublime would work on Windows).

before the zip portion, I see there is this string The file you were looking for appears to either have been moved or deleted.Return to the <a href="javascript:history.go(-1)">previous page</a>?.
Was This Post Helpful? 0
  • +
  • -

#23 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 21 October 2013 - 10:35 AM

Thank you.Wierdly, that was the entire problem.That text was initially the download error.
Was This Post Helpful? 0
  • +
  • -

#24 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 19
  • View blog
  • Posts: 779
  • Joined: 06-July 13

Re: Fie Download Script

Posted 04 November 2013 - 10:36 AM

Can a moderator please edit my posts in this topic and star all of the directory paths out pleaase?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2