note 99762 added to control-structures.alternative-syntax
| From: | gratcypalmaatgmaildotcom at osu1 dot php dot net | Date: | Fri, 03 Sep 2010 15:49:25 +0000 |
| Subject: | note 99762 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172303@lists.php.net to get a copy of this message | ||
<?php
/* my simple script control structures.
i'm also use this script to build a web
because this script can reduce any error,
if there is user input wrong link. Thank you*/
$link=$_GET[link];
?>
<?php
if (!$link) {
?>
<?php include('module/home.php'); ?>
<?php
}
else if ($link==$link) {
?>
<?php
$file = 'module/'.$link.'.php';
if (file_exists($file)) { // check file exists
include('module/'.$link.'.php');
}
else {
echo not_found();
}
?>
<?php
}
else {
?>
<?php echo not_found(); ?>
<?php
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 122.144.3.3
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/99762
Del: integrated -- https://master.php.net/note/delete/99762/integrated
Del: useless -- https://master.php.net/note/delete/99762/useless
Del: bad code -- https://master.php.net/note/delete/99762/bad+code
Del: spam -- https://master.php.net/note/delete/99762/spam
Del: non-english -- https://master.php.net/note/delete/99762/non-english
Del: in docs -- https://master.php.net/note/delete/99762/in+docs
Del: other reasons-- https://master.php.net/note/delete/99762
Reject -- https://master.php.net/note/reject/99762
Search -- https://master.php.net/manage/user-notes.php