View Full Version : Something wrong... (need little help)
TOMAZAS
March 17th, 2002, 06:18
<?php
include("inc/phpdir.inc");
else {
include("../error.phtml");
}
?>
If phpdir.inc not found, it should show error.phtml insted of it. What I did wrong there ? :confused:
MN-Carl
March 17th, 2002, 08:09
What do u wanna do :confused2
TOMAZAS
March 17th, 2002, 08:34
Originally posted by cdudeuk18
What do u wanna do :confused2
It shoulsd be include, to include *.inc file into PHTML page, but if something wrong and *.inc not there, it should show error.inc or error.phtml (error.inc - file with error page).
keith
March 17th, 2002, 08:42
<?php
if (file_exists("inc/phpdir.inc")) {
include("inc/phpdir.inc");
}
else {
include("../error.phtml");
}
?>
TOMAZAS
March 17th, 2002, 15:31
Originally posted by keith
<?php
if (file_exists("inc/phpdir.inc")) {
include("inc/phpdir.inc");
}
else {
include("../error.phtml");
}
?>
Thank you! :classic2:
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.