当前位置: 首页>>代码示例>>PHP>>正文


PHP GetParameters函数代码示例

本文整理汇总了PHP中GetParameters函数的典型用法代码示例。如果您正苦于以下问题:PHP GetParameters函数的具体用法?PHP GetParameters怎么用?PHP GetParameters使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetParameters函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetRequestParameters

function GetRequestParameters()
{
    if($_SERVER['REQUEST_METHOD'] == "POST")
        GetParameters($_POST);
    else
        GetParameters($_GET);
}
开发者ID:ranyaof,项目名称:gismaster,代码行数:7,代码来源:BufferPanel.php

示例2: array

$groupChildren = array();
$groupIcon = imagecreatefromgif("lc_group.gif");
$dwfIcon = imagecreatefrompng("legend-DWF.png");
$rasterIcon = imagecreatefrompng("legend-raster.png");
$themeIcon = imagecreatefrompng("legend-theme.png");
$font = "../fonts/arial.ttf";
$fontSizePt = 12;
$fontIndex = 4;
$xPad = 4;
$yPad = 2;
$xIndent = $iconWidth + $xPad;
$offsetX = $xPad + 10;
$offsetY = $yPad + 10;
$textColor = NULL;
try {
    GetParameters();
    GenerateLegend();
} catch (MgException $e) {
    $msg = "last error";
    $msg .= "\nERROR: " . $e->GetExceptionMessage() . "\n";
    $msg .= $e->GetDetails() . "\n";
    $msg .= $e->GetStackTrace() . "\n";
    RenderTextToImage($msg);
} catch (Exception $ex) {
    $msg = $ex->GetMessage();
    RenderTextToImage($msg);
}
imagedestroy($groupIcon);
imagedestroy($dwfIcon);
imagedestroy($rasterIcon);
imagedestroy($themeIcon);
开发者ID:kanbang,项目名称:Colt,代码行数:31,代码来源:GenerateLegend.php

示例3: GetParameters

<?php

require_once "../../../interface/globals.php";
require_once "../../../library/pnotes.inc";
require_once "../../../library/log.inc";
require_once "./Utils.php";
$parameters = GetParameters();
$oemrdb = $GLOBALS['dbh'];
?>

<html>
<body>

<?php 
// check for required data
if (!isset($parameters['masterid'])) {
    echo "Missing a Master Merge ID";
    exit;
}
if (!isset($parameters['otherid'])) {
    echo "Missing a Other matching IDs";
    exit;
}
// get the PID matching the masterid
$sqlstmt = "select pid from patient_data where id='" . $parameters['masterid'] . "'";
$qResults = sqlQ($sqlstmt);
if (!$qResults) {
    echo "Error fetching master PID.";
    exit;
}
$row = sqlFetchArray($qResults);
开发者ID:fidabhittani,项目名称:openemr,代码行数:31,代码来源:mergerecords.php

示例4: GetDefaultLocale

//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
include 'common.php';
include 'constants.php';
$locale = GetDefaultLocale();
$scaleDenominator;
$annotations;
$args = GetRequestMethod();
GetParameters($args);
$templ = file_get_contents("../viewerfiles/quickplotpreviewinner.templ");
SetLocalizedFilesPath(GetLocalizationPath());
// Localize the page
$templ = Localize($templ, $locale, GetClientOS());
// Set some annotation labels in the page by replacing the placeholders in the html code
$templ = str_replace(array_keys($annotations), array_values($annotations), $templ);
// Set the date annotation according to its format mask
$pattern = "/\\{date:.*\\[php=(.+?)\\].+?\\}/";
$matches = array();
if (preg_match($pattern, $templ, $matches)) {
    $mask = $matches[1];
    $date = date($mask);
    $templ = preg_replace($pattern, $date, $templ);
}
$jsPath = "../viewerfiles/";
开发者ID:kanbang,项目名称:Colt,代码行数:31,代码来源:quickplotpreviewinner.php

示例5: GetRequestParameters

function GetRequestParameters()
{
    global $params;
    if ($_SERVER['REQUEST_METHOD'] == "POST") {
        $params = $_POST;
    } else {
        $params = $_GET;
    }
    GetParameters();
}
开发者ID:kanbang,项目名称:Colt,代码行数:10,代码来源:buffer.php


注:本文中的GetParameters函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。