Results 1 to 2 of 2

Thread: Link to file if it has been uploaded

  1. #1
    Join Date
    Mar 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Link to file if it has been uploaded

    I would like to create a webpage, which has links to PDF files that are uploaded weekly.

    week01.pdf
    week02.pdf
    ..
    ..
    week51.pdf
    etc.

    I would like the page to either:-

    Display all the links (e.g. Week01 - Week51) and if someone picks a link which hasn't got the relative PDF file uploaded, they get a message box stating "Not Uploaded yet" instead of getting "404 The page cannot be found"

    or

    Not to display the link until the PDF file is present.

    I've searched these forums but cannot find anything relevant to this.

    Thanks
    John

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Umm... change the page?

    I don't think that javascript will do it for you here.

    You should try php.

    But it will be complex.

    I guess you could base it off the current date, assuming that it does in fact get uploaded on the right day (or it won't match, etc.)

    I take it you're just uploading through ftp.... not that you coded a page (in which case you could use that to add a link to the page, or something)

    This is a pretty complex question... not sure what the best solution would be.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •