Php5.4 command line php running error

Source: Internet
Author: User
Tags sapi
I commented out all the parameters starting with magic _ in php. ini and restarted them, but I still cannot run them. Baidu is fruitless. Have you ever met and solved the problem-

I commented out all the parameters starting with magic _ in php. ini and restarted them, but I still cannot run them. Baidu is fruitless. Have you ever met and solved the problem --
Directive magic_quotes_gpc is no longer available in php

Reply content:

I commented out all the parameters starting with magic _ in php. ini and restarted them, but I still cannot run them. Baidu is fruitless. Have you ever met and solved the problem --
Directive magic_quotes_gpc is no longer available in php

The cli sapi and cgi sapi of PHP use different configuration files. Find the installation directory and there should be two ini files, one is php. ini, the other is the php-xxx.ini, to ensure that the two files are consistent,

If not, paste 1.php content,

Close magic quotes

Use the browser to see phpinfo. Then use

Php-r 'phpinfo (); '| grep'. ini'

Comparison

Check which configuration file is used. Modify the configuration file as needed

Not a configuration file issue
This function has beenAbolitionNow

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.