Home > Article > Backend Development > How to solve the problem that php cannot locate the input point
Solution to the problem that php cannot locate the input point: 1. Copy the "php_memcached.dll" file to php and the ext file; 2. Modify "php.ini" and add the content "extension=php_memcache. dll"; 3. Rename the php file.
Recommended: "PHP Video Tutorial"
Solution: PHP cannot locate the program input point in the dynamic Link library
The root cause is the problem of php reinstallation.
The process of making mistakes: The process is very painful!
It's quite OK when running locally. It runs quickly. Once on the server, it's gone. It's still a windows server.
The mistake at the beginning was that it stopped as soon as it reached memcache.
Is it a memcache problem?
Start copying the php_memcached.dll file to php and the ext file, then change php.ini and add extension=php_memcache.dll
This is a memcache test
//1.实例化一个Memcache对象 $mem=new Memcache; //2. 连接到指定的memcache中 $mem->connect("127.0.0.1",11211); //放入数组 $arr = array('北京','天津'); //$arr = serialize($arr); if(!$mem->add('arr',$arr,0,10)){ //print_r(json_encode($arr)); echo '数组已经在memcache中'; }else{ echo '加入成功'; } $arr = $mem->get('arr');
It can be passed normally on the web page. Why does it stop when running in the bat file? Reinstall the xampp environment and run php test.php again and the error starts to appear.
php cannot locate the program input point in the dynamic link library
Check Information: It says that copying the error file to C:\WINDOWS\system32 does not help. 、
Check again. Some people say it is because they have installed more PHP. That is not the same as me. Well
A separate PHP in a xampp environment.
OK, just rename the single PHP file and everything will be fine.
The above is the detailed content of How to solve the problem that php cannot locate the input point. For more information, please follow other related articles on the PHP Chinese website!