Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 您提交的URI不允许使用符号和空格字符_Php_Codeigniter 3 - Fatal编程技术网

Php 您提交的URI不允许使用符号和空格字符

Php 您提交的URI不允许使用符号和空格字符,php,codeigniter-3,Php,Codeigniter 3,我的网址是 http://eaxmple.com/career_expert/search_expert/Science & Research 如何删除符号以使其正常工作?这是存储在数据库中的字符串 我在config.php $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; 但它不起作用 错误: 您提交的URI包含不允许的字符 $config['allowed\u uri\u chars']='a-z 0-9~%:\u\-\=';

我的网址是

http://eaxmple.com/career_expert/search_expert/Science & Research
如何删除符号以使其正常工作?这是存储在数据库中的字符串

我在
config.php

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; 
但它不起作用

错误:

您提交的URI包含不允许的字符


$config['allowed\u uri\u chars']='a-z 0-9~%:\u\-\=';$config['enable_query_strings']=TRUE;但它不起作用。因为在这个URL中可以看到“Science&Research”。它正在搜索键。如何将“&”更改为
++%26++