Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

note 99762 added to control-structures.alternative-syntax

3 views
Skip to first unread message

gratcypalmaa...@osu1.php.net

unread,
Sep 3, 2010, 11:49:25 AM9/3/10
to php-...@lists.php.net
<?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

0 new messages