Jump to content

[SOLVED] Check if file exists and if yes then echo link to it?


cclark40

Recommended Posts

I assume this is possible in php?  I have a page that gives a summary of results from croquet tournaments.

http://www.croquetvic.asn.au/associationtournamentscompleted.php

Each tournament has a unique identifier "tid".  Some of the tournaments have results published in pdf format.  I would like to put an IF statement in to provide a link to the pdf if it exists.  The pdf filenames will be "tid".pdf and the pdf files will be in a subdirectory called "results"

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.