Jump to content

sirhawkeye

New Members
  • Posts

    4
  • Joined

  • Last visited

sirhawkeye's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks. I think between these two responses, I should get what I'm looking for. Yes, the user will have the filename itself if they download the file BUT they won't have the full path to the file unles they hack the database I suppose to get the path to the files. All I need is HTML and PHP files to be able to execute, nothing else. Everything else should be "locked down" from direct access.
  2. So I need to make a customized CMS-type site (unfortunately, for someone) and I wanted to know if there is a way that I can prevent direct file access to, say, ZIP, JPG, DOC, etc, type files but have a PHP script be able to "get" them (probably by using a MySQL database with the filenames and a unique numerical ID to protect the location of the files). I'm aware of the HotLink protection offered by most sites, but basically I want a way that so that in a page, a link could be put in line this (to retrieve a file): <a href="getfile.php?fileid=000000">Click here to get the file</a> And whatever file links up with file ID 000000 would be placed somewhere on the site, in a folder such as: /cms/content/documents/test1.doc Any ideas on how to do this? Basically, I want to prevent hotlinking and also prevent people from seeing where the content is stored (to prevent direct linking from other sites).
  3. Maybe try a different service? I like Hostgator myself and haven't had any problems with them. Not sure on the file upload limits, but 99MB does seem pretty high... you'd almost have to go to a virtual server for that stuff almost (on most hosts). But Hostgator (or even Bluehost) has their options customizable from what I've seen, but then again, I'm not dealing with 99MB uploads. Usually ones 20MB or less myself. Your host may do this to curtail massive file uploading for file sharing-type sites (not to say that you're doing that, but I could see that as a concern for webhosts).,
  4. So I need some help. I know how to create arrays and parse them in PHP (former C/C++/VB programmer, so PHP is easy to figure out), but here's my problem. I have an application where I need to have a 2D array with 2 columns, but indexing doesn't matter, and one or both of the columns could be duplicated, as follows: Price Quantity 200 2 300 1 100 10 200 55 60 1 As you can see, the numbers could be repeated. Ideally, I'd like to do this as an associative array rather than having to add another column as an index column, since the numbers will not need to be referenced, but more or less just added together and summed up. Any ideas on this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.