我在安装magento的时候遇到了系统需要的扩展没有安装
1、mcrypt
2、pdo_mysql
3、curl
.....
其实,基本上大部分扩展 在php的源码安装包里面都是有的(在ext/里面的).
添加扩展的基本步骤:
1、进入到安装包文件夹你要添加的扩展ext/../里面.比如要添加mcrypt扩展,就进入ext/mcrypt里面。example:[root@loca
转载
精选
2011-01-10 18:02:56
293阅读
我在安装magento的时候遇到了系统需要的扩展没有安装
1、mcrypt
2、pdo_mysql
3、curl
.....
其实,基本上大部分扩展 在php的源码安装包里面都是有的(在ext/里面的).
添加扩展的基本步骤:
1、进入到安装包文件夹你要添加的扩展ext/../里面.比如要添加mcrypt扩展,就进入ext/mcrypt里面。example:[root@loca
转载
精选
2011-01-19 14:57:36
251阅读
tar zxvf mcrypt-2.6.8.tar.gz
LD_LIBRARY_PATH=/usr/local/lib64 ./configure
make
make install
cd /home/data/install/lnmp/php-5.3.16/ext/mcrypt/
/home/data/websrv/php/bin/phpize
./configure --with-php-co
原创
2014-01-21 11:07:55
744阅读
PHP字符串加 思路: 1. 获取第一个字符或文字 2. 获取最后一个字符或文字 3. 一头一尾,中间加 尝试用substr方法,发现对中文的支持有问题。 后来发现mb_substr很好的解决了这个问题。 输出结果: Tips:<font color='red' 通过测试发现mb_str对中文...
原创
2021-08-05 15:52:32
239阅读
//将用户名进行处理,中间用星号表示 function substr_cut($user_name){ //获取字符串长度 $strlen = mb_strlen($user_name, 'utf-8'); //如果字符创长度小于2,不做任何处理 if($strlen<2){ return $use
原创
2021-08-05 15:28:05
926阅读
下载php_ssh2.dll,放入php下的ext然后在php.ini里添加extension=php_ssh2.dll重启apache就可以了。
原创
2023-02-17 09:16:24
159阅读
CentOS下php加扩展功能
转载
精选
2011-01-14 17:18:40
2887阅读
/** * 身份证号加星 */ public static function hiddenIdCard($idcard) { // 匹配 3到6位数字,配置8位数字,匹配1到4位数字 $result = preg_replace("/(\d{3,6})\d{8}(\d{1,4})/", "\$1**
原创
2021-08-05 15:19:50
300阅读
<?php /*给图片加文字水印的方法*/ $dst_path = 'http://f4.topitme.com/4/15/11/1166351597fe111154l.jpg'; $dst = imagecreatefromstring(file_get_contents($dst_path));
转载
2017-05-30 20:42:00
220阅读
2评论
在languagebag.php中<?php
ob_start();
include_once 'template/index.html'; //加载模板文件,并执行里面的php指令
$str = ob_get_contents();
ob_clean();
$zh_arr = array( //中文语言包
'name'
原创
2014-06-23 16:58:11
587阅读
ubantu如何查询apache2加载的模块?在Ubuntu上,你可以通过几种不同的方式来查询Apache 2加载的模块。以下是一些常用的方法:1. 使用apache2ctl命令apache2ctl是Apache 2的控制接口,可以用来查询已加载的模块。你可以通过运行以下命令来查看所有已加载的模块:apache2ctl -M或者使用:sudo apache2ctl -M2. 查看modules.l
这里说的是memcached服务器客户端和最 install libevent-dev RedHat/centOs系统Redhat/Cent
原创
2022-07-05 12:41:33
40阅读
PHP Imagick文字加阴影(外发光)<pre>$canvas = new \Imagick(); $canvas->newImage(500, 200, 'white'); $canvas->setImageFormat('png'); $text = new \Imagick(); $tex
转载
2019-11-16 17:25:00
395阅读
2评论
一、得到私钥文件mycert.key 2.从pfx提取密钥信息,并转换为key格式(pfx使用pkcs12模式补足) (1)提取密钥对 openssl pkcs12 -in 1.pfx -nocerts -nodes -out 1.key //如果pfx证书已加密,会提示输入密码。如果cer证书没有
转载
2017-01-04 16:17:00
315阅读
2评论
一,主页 index.php <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-e
原创
2022-04-19 16:17:39
216阅读
一、css的基本用法 二、综合练习(1)1、仿页面:(1)2、实现代码:<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>综合练习1</title>
<style type=
转载
2023-08-08 15:17:57
71阅读
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date now = new Date();
System.out.println("当前时间:" + sdf.format(now));
方法一:
Date afterDate = new Date(now .getTime() + 600000)
转载
2023-05-22 16:55:19
304阅读
spring配置事物方式:spring+mybatis
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
spring+hibernate
notice:@Transactional作用于类名上启用事物,该类中的public修饰的方法都启用事物同样该注解作用在某个方法上的时候,该方法也必须是pu
转载
2023-06-25 18:53:12
106阅读
升级openssl版本,以版本1.0.2l为例子方法如下:1.下载最新版本的openssl源码包wget ftp://ftp.openssl.org/source/openssl-1.0.2l.tar.gzhttps://www.openssl.org/source/2. 安装openssl1)tar –xzvf openssl-1.0.2l.tar.gz2)cd open
原创
2017-07-20 10:38:25
4372阅读
图片上传思路:通过ajax实现图片上传,然后把PHP返回的图片地址,加入到隐藏字段中,最后通过表单提交给后台PHP,代码如下HTML代码 zimg.html文件:<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" c
转载
2021-04-27 22:12:45
180阅读
2评论