Announcement

Collapse
No announcement yet.

File exists syntax

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File exists syntax

    how can I do something like

    if exists(thisfile.html)
    {
    <a href="thisfile.html">Link</a>
    }
    else
    {
    &nbsp;
    }

    in php ????

    Cheers!

    Motorsport Forums

  • #2
    if (file_exists("thisfile.html")) {
    print "<a href='thisfile.html'>thisfile.html</a><br>\n";
    } else {
    print "<br>\n";
    }

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X