Jump to content

mattkingston

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by mattkingston

  1. Thanks for the suggestion, ill look into that. Sadly a database is out of the question as the pages i wish to add will be created by an external script. Basically i need a means of tracking deliveries of interbranch transfers, my store is a hub and id like to post tracking data for items shipped out (this is the part thats handled by a script running outside the website environment). Pages will be updated with order tracker info and dumped into the web server folder so i need a way a user can search by 6 digit order number which will pertain to the html file containing the afformentioned info. Regards.
  2. Hi all. I am in need of some help with a simple page search function. In short what i need is a way the user can search for a specific page name from the home index page. My site (local for now) will be constructed as follows: localhost/mysite/index.html 0001.html 0002.html ... 0132.html etc... The subpages will be added/modified externaly and may run into the hundreds of pages. For this reason mySQL will be hard to implement and somewhat overkill especialy for this simple search function. So, is there a way i can type the page to look for "0132" into the field and be forwarded onto the searched page "0132.html" I realise i could just type mysite/0132.html but the page may or may not exist and searching would be tiny bit more elegant. Simple for you guys i expect but im at a loss as all search functions use mySQL in addition. Many thanks for your help in advance! Regards, Matt.
  3. Thanks for the info, im quite new to php so could you please explain how i enter in file size values and where i should enter it? this is my current script to serve the file (2012.pdf) whet should i add the extra line, my file size is 15.226KB, how do i translate this into the correct content length? <?php header('Content-disposition: attachment; filename=2012.pdf'); header('Content-type: application/pdf'); readfile('2012.pdf'); ?>[/blockquote> thanks again.
  4. Hi all. Hope you can help me. I have created a small php script that serves up a file to be downloaded, this works fine however, the estimated time left to download is unknown and i assume this is due to my script no containing the file size for web browsers to calculate the eta. Can anyone help me with this? its just a PDF of about 30MB but is important that those who download know the ETA. many thanks.
×
×
  • 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.