LisonRead 本次搜索耗时 0.130 秒,为您找到 296 个相关结果.
  • 神通数据库php操作连接一、window情况下1、

    32 2022-04-15 《神通数据库》
    神通数据库php操作连接 一、window情况下 1、把神通数据库安装好后的pdo_aci.dll和aci_nts.dll如D:\ShenTong\PDO_ACI下对应php版本复制到php扩展目录下 2、php.ini里加入 extension=pdo_aci_nts.dll 3、系统-高级环境的path里加入 D:\ShenTong\bin 二、l...
  • PHP函数回调是指将函数名作为参数传递给另一个函数

    32 2023-04-18 《PHP》
    PHP函数回调是指将函数名作为参数传递给另一个函数,使得另一个函数能够调用这个函数。这个被传递的函数名可以是一个已经存在的函数,也可以是一个匿名函数。回调函数通常被用在需要在两个不同的函数之间进行交互的情况下,如事件处理、排序等。 以下是一个将函数名作为参数传递的例子: ``` function add($a, $b) { return $a + $b;...
  • 禁止IP访问 $ip_prefix='1

    32 2018-09-29 《PHP》
    禁止IP访问 $ip_prefix = '192.168.0.1'; if (substr($_SERVER['REMOTE_ADDR'], 0, strlen($ip_prefix)) != $ip_prefix ) die('Access denied');
  • //删除目录下面的所有文件 functionre

    32 2019-10-31 《PHP》
    // 删除目录下面的所有文件 function removedir($dirName)    {        if(! is_dir($dirName))        {            return false;        }        $handle = @opendir($dirName);        while(...
  • functionsend_post2($url,$

    32 2018-05-16 《PHP》
    function send_post2($url, $post_data,$i=1) {     $postdata = http_build_query($post_data);     $options = array(     'http' => array(       'method' => 'POST',       'heade...
  • 浏览器强制优先使用极速模式 !--避免IE使用兼

    32 2019-04-12 《PHP》
    浏览器强制优先使用极速模式 <!--避免IE使用兼容模式--> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--使用webkit内核--> <meta name="renderer" content="webkit">
  • php获取文件后缀名 第1种方法: functio

    32 2021-01-07 《PHP》
    php获取文件后缀名 第1种方法: function get_extension($file) {   substr(strrchr($file, '.'), 1); } 第2种方法: function get_extension($file) {   return substr($file, strrpos($file, '.')+1); } 第3种方法:...
  • 正则提取页面标签内容 publicfunctio

    32 2018-08-29 《PHP》
    正则提取页面标签内容 public function tel(){ // header('Content-type:text/html;charset=GBK'); $url='https://shouji.supfree.net/fish.asp?cat='.$_REQUEST['tel']; $str=$this->httpsRequest...
  • vscode 1、安装:SynthWave '84

    32 2021-04-21 《PHP》
    vscode 1、安装:SynthWave '84 2、安装:Custom CSS and JS Loader 3、打开“文件”-->“首选项”-->“设置”-->“settings.json 4、 { "vscode_custom_css.imports": [ "file:///C:/Users/Administ...
  • PhpStorm的八个小技能大小写转换^+cmd+

    32 2024-04-19 《PHP》
    PhpStorm的八个小技能 大小写转换 ^+cmd+u 选择下一个出现的相同单词或代码块: window: 按住Alt + J可以同时选中相同的文本进行编辑,按住Alt +Shift+ J可以取消选中。 mac: Cmd + G 来选择下一个相同的单词,Cmd + Shift + G 来选择上一个相同的单词。如果你想一次性选择所有相同的单词,可以...