General PHP Help — If Statements
-
Can someone please help me with a general PHP question? (While this is not directly related to wordpress you guys have been a great help sofar so I have decided to ask here)
I have a line of code that states:
define('TEMPLATE_FILE', 'template.php');
What I would like to do instead is include an if statment so IF “template.php” exists it will use it. If it does not exist I would like the script to defult to “template.html”
Any sugestions on how to do this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘General PHP Help — If Statements’ is closed to new replies.