随笔分类 -  Web-PHP1

只有注册用户登录后才能阅读该文。
posted @ 2018-09-11 03:03 findumars 阅读(13) 评论(0) 推荐(0) 编辑
摘要:今天公司做个东西,需要条用同事的接口,我的代码和他的代码不在同一个域下,但是都是子域。 a.ifensi.com与b.ifensi.com的关系。 我需要传递一个关联数组过去,他那边给我返回一个json对象。fsocket也可以实现这个需求,但是似乎代码行数比较多。朋友推荐用php的自带curl函数 阅读全文
posted @ 2017-08-17 05:23 findumars 阅读(751) 评论(0) 推荐(0) 编辑
摘要:HTML代码 PHP代码 另外在当前文件夹建立个Upload文件夹,不然没法上传图片。 http://blog.csdn.net/s371795639/article/details/53410697 阅读全文
posted @ 2017-01-20 19:42 findumars 阅读(1425) 评论(0) 推荐(0) 编辑
摘要:第一步 我用的是163邮箱发送邮件,做一个尝试,在尝试之前,需要要开启163邮箱的授权码如图所示,请记住您的授权码,将在之后的步骤中用到 第二步 需要下载一个类PHPMailer,我有这个资源已经上传了,免费的哦亲,连接在这http://download.csdn.NET/detail/s37179 阅读全文
posted @ 2017-01-20 19:41 findumars 阅读(9924) 评论(0) 推荐(0) 编辑
摘要:PHP阿里大鱼短信验证 第一步 登陆阿里大于注册账号,在用户管理中心创建应用,确定AppKEY和App Secret还有配置签名 第二步 在应用管理中选择SDK下载,或者直接点击http://download.csdn.NET/detail/s371795639/9695983下载,免费的哦亲 把下 阅读全文
posted @ 2017-01-20 19:39 findumars 阅读(3672) 评论(0) 推荐(1) 编辑
摘要:最近碰到一个奇怪的问题, PHP使用 curl_exec 访问 HTTPS 网页时, 返回502错误, 访问HTTP网页时没有问题, 用 echo phpinfo() ; 查看, 支持openssl, 支持curl, 网上找了好多资料, 都没解决。 [plain] view plain copy [ 阅读全文
posted @ 2016-07-25 05:44 findumars 阅读(754) 评论(0) 推荐(0) 编辑
摘要:新浪SAE快速上手教程[1]如何免费开通新浪云 2014-07-18 > 新浪SAE快速上手教程[2]如何创建、删除应用 2014-07-24 > 新浪SAE快速上手教程[3]如何上传应用代码包 2014-07-24 > 新浪SAE快速上手教程[4]如何在线编辑代码? 2014-07-28 > 新浪 阅读全文
posted @ 2016-02-03 21:12 findumars 阅读(341) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/wqmain/article/details/8941759很清楚,很详细,配置连行号都有。下载的时候直接点击链接即可。 阅读全文
posted @ 2015-02-06 06:12 findumars 阅读(319) 评论(0) 推荐(0) 编辑
摘要:http://php.net/manual/zh/ref.array.phphttp://www.w3school.com.cn/php/php_ref_array.asp挑出一些最有用的函数:array_combine() 通过合并两个数组来创建一个新数组。 array_intersect() 计算数组的交集array_diff() 返回两个数组的差集数组array_merge() 把一个或多个数组合并为一个数组array_pop() 将数组最后一个单元弹出(出栈)。 array_push() 将一个或多个单元(元素)压入数组的末尾(入栈)。array_search() 在数组中搜索给定的值 阅读全文
posted @ 2013-05-17 21:08 findumars 阅读(307) 评论(0) 推荐(0) 编辑
摘要:<?php // smarty.php$path = $_SERVER['DOCUMENT_ROOT'];require "$path/Smarty/Smarty.class.php";$smarty = new Smarty();$smarty->template_dir = "$path/temp/smarty/templates";$smarty->compile_dir = "$path/temp/smarty/templates_c";$smarty->cache_dir = &quo 阅读全文
posted @ 2013-02-12 22:59 findumars 阅读(2379) 评论(0) 推荐(0) 编辑
摘要:<?php // formtest2.phpif (isset($_POST['name'])) $name = $_POST['name'];else $name = "(Not entered)";echo <<<_END<html> <head> <title>Form Test</title> </head> <body> Your name is: $name<br /> <form method="post& 阅读全文
posted @ 2013-02-12 22:50 findumars 阅读(1022) 评论(0) 推荐(0) 编辑
摘要:第十章<?php // login.php$db_hostname = 'localhost';$db_database = 'publications';$db_username = 'username';$db_password = 'password';?><?phprequire_once 'login.php';$db_server = mysql_connect($db_hostname, $db_username, $db_password);if (!$db_server) die 阅读全文
posted @ 2013-02-12 22:36 findumars 阅读(295) 评论(0) 推荐(0) 编辑
摘要:PRINTF("THE RESULT IS $%15F\N", 123.42 / 12);PRINTF("THE RESULT IS $%15.2F\N", 123.42 / 12);$h = 'House';printf("[%s]\n", $h); // Standard string outputprintf("[%10s]\n", $h); // Right justify with spacesprintf("[%-10s]\n", $h); // Left justi 阅读全文
posted @ 2013-02-09 01:15 findumars 阅读(3404) 评论(0) 推荐(0) 编辑
摘要:<?php$paper[] = "Copier";$paper[] = "Inkjet";$paper[0] = "Copier";$paper[1] = "Inkjet";print_r($paper);for ($j = 0 ; $j < 4 ; ++$j) echo "$j: $paper[$j]<br>";$paper['copier'] = "Copier & Multipurpose";$paper['ink 阅读全文
posted @ 2013-02-09 00:41 findumars 阅读(331) 评论(0) 推荐(0) 编辑
摘要:<?php$names = fix_names("WILLIAM", "henry", "gatES");echo $names[0] . " " . $names[1] . " " . $names[2];function fix_names($n1, $n2, $n3){ $n1 = ucfirst(strtolower($n1)); $n2 = ucfirst(strtolower($n2)); $n3 = ucfirst(strtolower($n3)); return array 阅读全文
posted @ 2013-02-09 00:26 findumars 阅读(1814) 评论(0) 推荐(0) 编辑
摘要:<?phpinclude("library.php");include_once("library.php");require_once("library.php");echo "Hello world";$username = "Fred Smith";echo $username;echo str_repeat("Hip ", 2); // Repeat stringecho strtoupper("hooray!"); // String to 阅读全文
posted @ 2013-02-09 00:15 findumars 阅读(486) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示