Error information
Warning: syntax error, unexpected '=' in src/web/../conf/config.ini on line 12
reason
[start_url]
site1=https://baidu.net/home.php?mod=space&uid=0000&do=thread&view=333333
site2=https://google.com/forum.php?mo=111
Because start_ The URL contains the URL, which must be quoted before PHP will report an error. However, it is not a problem to read it in Python.
terms of settlement
Add the parameter ini when reading_ SCANNER_ RAW
$file = __DIR__ . "/../conf/config.ini";
$config = parse_ini_file($file, true, INI_SCANNER_RAW);
Read More:
- PHP reports “parse error: syntax error, unexpected T”_ The solution of “variable”
- Parse error: syntax error, unexpected T_OBJECT_OPERATOR in E:\WWW\blog\hyii2\frontend\web\index.php
- Python reads the configuration file. Ini and resolves the error
- PHP error: syntax error, unexpected ‘?’ in
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- Solutions to errors reported by running pytest.ini configuration file
- “Unexpected syntax error: unexpected identifier”.
- Unexpected syntax error: unexpected token<
- [Fixed] Syntax error: word unexpected (expecting “)”)
- syntax error near unexpected token `then’ problem solution
- Syntax error near unexpected token `newline’script cannot be executed
- Syntax error: unexpected EOF while parsing
- Syntax error: unexpected token in uni app project compilation
- Shell script syntax error near unexpected token ‘$’Do
- Syntax error: word unexpected (expecting “)”)
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- Cannot read configuration file due to insufficient permissions
- Syntax error: unexpected end of file problem [two solutions]
- Uncaught syntax error: unexpected token ‘< 0‘