随笔分类 -  php

摘要:function getLocationInfoByIp(){ $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = @$_SERVER['REMOTE_ADDR' 阅读全文
posted @ 2024-09-05 17:08 赵向上 阅读(395) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-25 22:44 赵向上 阅读(104) 评论(0) 推荐(0)
摘要:$status代表自定义状态码,有的人喜欢用$code,$message表示错误提示消息,$data代表返回数据,$httpStatus代表请求状态 阅读全文
posted @ 2020-07-11 00:28 赵向上 阅读(920) 评论(0) 推荐(0)
摘要:ini_set("display_errors", "On"); error_reporting(E_ALL | E_STRICT); 阅读全文
posted @ 2019-09-29 12:04 赵向上 阅读(130) 评论(0) 推荐(0)
摘要:dirname(__FILE__)由两部分组成, __FILE__ 魔术变量和 dirname() 函数。__FILE__是当前脚本的绝对路径,通过 dirname() 函数后,就可以获得脚本所在目录的绝对路径。 举个栗子,有个 index.php 文件,其部署在服务器的目录是:/www/wwwro 阅读全文
posted @ 2019-03-23 19:37 赵向上
摘要:<?php set_time_limit(0);ini_set("memory_limit","500M");$dir = dir('./');while (false!==($e=$dir->read())) { if (is_dir($e)) { $dir1 = dir($e); while ( 阅读全文
posted @ 2019-03-08 12:02 赵向上
摘要:<?php set_time_limit(0); $file = fopen("index.csv",'r');$temp = [];$i=0;$firstsku='';while ($data = fgetcsv($file)) { // print_r($data if ($i>2) { if 阅读全文
posted @ 2019-03-08 08:54 赵向上
只有注册用户登录后才能阅读该文。
posted @ 2018-11-10 21:30 赵向上 阅读(7) 评论(0) 推荐(0)