• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP help?

well, if you´re gonna specify the whole filename to include like in your example you could do it like this:

PHP:
<?php

if (file_exists($link))
{
include($link);
}
else
{
include("defaultpage.php");
}

?>
 
Back
Top