fun.php

来自「php版本音乐程序」· PHP 代码 · 共 45 行

PHP
45
字号
<?php
		define("YahooMusicUrl","http://www.4xing.com.cn");//设定安装路径,结尾不要带“/”
	//截取函数
Function Cut($FileStr,$StartStr,$EndStr,$Type)
{
	if(ereg($StartStr,$FileStr)&&ereg($EndStr,$FileStr))
	{
		if($Type==0){
			$GetContent = substr($FileStr,0-(strlen($FileStr)-(strpos($FileStr,$StartStr)+strlen($StartStr))));
			$GetContent = substr($GetContent,0,strpos($GetContent,$EndStr));
			return $GetContent;
		}else{
			$GetContent = substr($FileStr,0-(strlen($FileStr)-(strpos($FileStr,$StartStr))));
			$GetContent = substr($GetContent,0,strpos($GetContent,$EndStr)+strlen($EndStr));
			return $GetContent;
		}
	}else{
		return "";
	}
}
$rooturl="http://www."."artvip".".com.cn/yahooring/";
$sssooo="http://"."www.ar"."tvip."."com.cn/";
Function load($CacheName)
{
$Open=file($CacheName);
$countn=count($Open);
for($i=0;$i<$countn;$i++){
$TheGet.=$Open[$i];
}
return $TheGet;
}
Function GetHttpPage($Url)
{
if(!function_exists("file_get_contents"))
{
	$f   =   file($Url);   
  for($i   =   0   ;$i<count($f);$i++){   
      $a   .=   $f[$i];   
  }   
 }else{
$a=file_get_contents($Url);
}
return $a;
}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?