• 如何通过 PHP 获取 Azure Active Directory 令牌

    在调用 Azure Rest API 时,如果是属于 Azure Resource Manager 的 API,则需要使用 Azure Active Directory (Azure AD)认证获取令牌(Token),然后才能够进行访问。 以下是创建 Azure AD 应用,并授权其可以访问管理 Azure 的资源的步骤: 获取更好的阅读体验也可以点...

    2018-06-22 05:27:40

  • 初识php soap 学习过程中的摘抄,便于后期翻阅

    SOAP简单对象访问协议, webService三要素 , SOAP、WSDL(W eb S ervices D escription L anguage )、UDDI(U niversal D escription D iscover y and I ntegration )之一, soap用来描述传递信息的格式, WSDL 用来描述如何访问具体的接口, uddi用来管理,分发,查询web...

    2018-06-22 05:27:39

  • 深度理解PHP中for与foreach两个循环结构遍历数组的区

    遍历一个数组是编程中最常见不过的了,这里讨论下for和foreach两种方法: 首先,我们先准备两个用于遍历的数组: $arr1=array(1='a', 3=22, 5='b', 4='c', 8='d'); $arr2=array('a'='aaa', 'b'='bbb', 'c'='ccc', 'd'='ddd', 'e'='eee'); 一:for循环结构 循环1: for(...

    2018-06-22 05:27:39

  • PHP+MySql+Bootstrap实现用户界面数据的删除、修改与

    第一步:在数据库中建立要操作的信息表 如下图: 第二步:实现对该信息表中数据的删除功能 代码如下:main(主页面) !DOCTYPE html html head meta charset="UTF-8" title删除功能/title script src="bootstrap/js/jquery-1.11.2.min.js"/script //引入这里的三个文件...

    2018-06-22 05:27:36

  • SyntaxError: JSON.parse: unexpected character at l

    昨天遇到一个错误。前端发起 ajax,后端 php 返回 json 数据。结果在 firebug 里得到一条错误信息: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data 解决方案: 在php 服务端,输出前加一行代码: ob_end_clean(); 清除 utf8 的...

    2018-06-22 05:27:36

  • 安装Composer PHP Warning: copy(): SSL operation f

    ...

    2018-06-22 05:27:35

  • 在PHP框架中使用array_map()等函数

    ...

    2018-06-22 05:27:35

  • PHP万能的连接数据库

    ? php class DB{ const HOST='127.0.0.1' ; const USER='root' ; const PASS='root' ; const DATA='mooc' ; static public $_instance ; private function __construct(){ mysql_connect (DB::HOST,DB::USER,DB:: PASS); mysql_set_charset( 'utf8' ); mysql_select_db...

    2018-06-22 05:27:34

  • 利用PHP访问数据库——实现分页功能与多条件查询功能

    1.实现分页功能 body table width="100%" border="1" thead tr th代号/th th名称/th th价格/th /tr /thead tbody ?php require_once "./DBDA.class.php"; //加载数据库访问类的封装文件 require_once "page.class.php"; //加载分页类的封装文件 $db = new DBDA(); $sql...

    2018-06-22 05:27:31

  • 利用PHP连接数据库——实现用户数据的增删改查的整体

    main页面(主页面) table width="100%" border="1" cellpadding="0" cellspacing="0" tr td代号/td td姓名/td td性别/td td民族/td td生日/td td操作/td /tr ?php $db = new MySQLi("localhost","root","","mydb"); if(mysqli_connect_error()){ die("连接失败"); } $sq...

    2018-06-22 05:27:31

2