PHP

PHPコード:
<?php
function kesuan($m,$rum,$n){
switch($rum){
case ‘+’:
echo $r=$m + $n ...

PHP

PHPコード下記
$dir =\Config::get(‘flags.path’);//ディレクトリ
$file=scandir($dir);
$con =));
}
$ ...

PHP

phpコード
function forceDLFile($file)
{
if ((isset($file))&&(file_exists($file))) {
header(̶ ...

PHP

サンプルコード
class startnews24self{
public function __construct(){
echo ‘welcome to startnews.com and st ...

PHP

PHPコード下記:
if (@get_magic_quotes_gpc ()) {
$_GET = sec ( $_GET );
$_POST = sec ( $_POST );
$_COOKIE = ...

PHP

PHPコード:
function hex2rgb($hexColor){
$color=str_replace(‘#’,”,$hexColor);
if (strlen($c ...

PHP

方法1
function get_real_ipstartnews24(){
$ip=false;
if(!empty($_SERVER)){
$ip=$_SERVER;
}
if(!e ...

PHP

サンプルコード:
function utf8_strlen($string){
$string=trim($string);
if(empty($string)) return 0;
preg_matc ...

PHP

サンプルコード:
function download_func($file_url,$new_name=”){
if(!isset($file_url)||trim($file_url)==”) ...

PHP

1.array_shift
PHPコード:
$user=array(‘品川区’,’港区’,’渋谷区’);
$result=array_sh ...

PHP

1.in_array関数
function searchNumber_Startnews24($str=”){
$str=trim($str);
if(empty($str)){return  ...

PHP

方法1
function get_file_type_startnews24($filename)
{
$type =explode(“.” , $filename);
$cou ...

PHP

PHPコード:
function custom_hmac($algo, $data, $key, $raw_output = false)
{
$algo = strtolower($algo);
$p ...

PHP

PHPコード
class STD3Des
{
private $key = “”;
private $iv = “”;

/**
* コ ...

PHP

PHPコード:
function img_create_small($big_img, $width, $height, $small_img) {
$imgage = getimagesize($big_img);/ ...

PHP

PHPコード:
function redirect($url, $time=0, $msg=”) {
//URLアドレスのサポート
$url = str_replace(array(“\ ...

PHP

PHPコード:
class Request{
public static function post($url, $post_data = ”, $timeout = 5){//curl
$ch = ...

PHP

phpコード:
$dst_path = ‘be.jpg’;

//画像のインスタンスを作成
$dst = imagecreatefromstring(file_get_contents ...