About php_memcache.dll extension installation. New users

Source: Internet
Author: User
About php_memcache.dll extension installation .. If you are a newbie, I am using the win7 operating system .. Php version is 5.2.17 and then downloaded the php_memcache-2.2.6-5.3-nts-vc9-x86 in the php Extension folder, and then open the extension in php. ini, restart appache, but in phpinfo () about php_memcache.dll extension installation issues .. New users
I am using the win7 operating system ..

Php version 5.2.17

Then download the php_memcache-2.2.6-5.3-nts-vc9-x86 and put it in the php Extension folder, open the extension in php. ini, restart appache, but this library is not available in the phpinfo () function.

Then I downloaded the php_memcache-2.2.6-5.3-vc9-x86 problem as above.


Who can tell me what's going on?

------ Solution --------------------
You only need to copy the. dll file to the ext directory.

Open php. ini (make sure it is an ini file loaded by php) and add a line

Extension = php_memcache.dll is required to remove the semicolon from the front.

Restart apache
------ Solution --------------------
Upgrade php to version 5.3 and later.
In addition, make sure that the modified php. ini file is in the same path in phpinfo.

Discussion

Well, this is what we do, but it cannot be referenced:

You only need to copy the. dll file to the ext directory.

Open php. ini (make sure it is an ini file loaded by php) and add a line

Extension = php_memcache.dll is required to remove the semicolon from the front.

Restart apache

------ Solution --------------------
Yes. Google search.
------ Solution --------------------
Http://zhidao.baidu.com/question/392263442.html
------ Solution --------------------
Static struct i2c_algorithm i2c_dw_algo = {
. Master_xfer = i2c_dw_xfer,
. Functionality = i2c_dw_func,
};

Static int _ devinit dw_i2c_probe (struct platform_device * pdev)
{
Struct dw_i2c_dev * dev;
Struct i2c_adapter * adap;
Struct resource * mem, * ioarea;
Int irq, r;

/* NOTE: driver uses the static register mapping */
Mem = platform_get_resource (pdev, IORESOURCE_MEM, 0 );
If (! Mem ){
Dev_err (& pdev-> dev, "no mem resource? \ N ");
Return-EINVAL;
}

Irq = platform_get_irq (pdev, 0 );
If (irq <0 ){
Dev_err (& pdev-> dev, "no irq resource? \ N ");
Return irq;/*-ENXIO */
}

Ioarea = request_mem_region (mem-> start, resource_size (mem ),
Pdev-> name );
If (! Ioarea ){
Dev_err (& pdev-> dev, "I2C region already claimed \ n ");
Return-EBUSY;
}

Dev = kzarloc (sizeof (struct dw_i2c_dev), GFP_KERNEL );
If (! Dev ){
R =-ENOMEM;
Goto err_release_region;
}

Init_completion (& dev-> complete );
Mutex_init (& dev-> lock );
Dev-> dev = get_device (& pdev-> dev );
Dev-> irq = irq;
Platform_set_drvdata (pdev, dev );
------ Solution --------------------
Dev-> clk = clk_get (& pdev-> dev, "i2c_fck ");
If (IS_ERR (dev-> clk )){
Dev_err (& pdev-> dev, "error getting i2c_fck \ n ");
R =-ENODEV;
Goto err_free_mem;
}
Clk_enable (dev-> clk );

Dev-> base = ioremap (mem-> start, resource_size (mem ));
If (dev-> base = NULL ){
Dev_err (& pdev-> dev, "failure mapping io resources \ n ");
R =-EBUSY;
Goto err_unuse_clocks;
}
{
# If 0
U32 param1 = readl (dev-> base + DW_IC_COMP_PARAM_1 );

Dev-> tx_1_o_depth = (param1> 16) & 0xff) + 1;
Dev-> rx_1_o_depth = (param1> 8) & 0xff) + 1;
# Endif
Dev-> tx_1_o_depth = dw_ic_tx_1_o_tl + 1;
Dev-> rx_1_o_depth = dw_ic_rx_1_o_tl + 1;
}

Dev-> clock = STANDERD_MODE;

I2c_dw_init (dev );

Writel (0, dev-> base + DW_IC_INTR_MASK);/* disable IRQ */
R = request_irq (dev-> irq, i2c_dw_isr, ir1__disabled, pdev-> name, dev );
If (r ){
Dev_err (& pdev-> dev, "failure requesting irq % I \ n", dev-> irq );
Goto err_iounmap;
}

Adap = & dev-> adapter;
/* BEGIN: Modified by lizhaoyang l63203, 2010/5/17 */
Phy_adap = adap;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.