The article directories
Modify the php.ini configuration file to use notepad++ conversion format
PHP upload files to the server can be said to have a bumpy journey, there is a problem… About syntax error: Unexpected end of File, this problem is usually not your code problem. If you are using Linux server, after editing the script in Windows environment, the file format will be wrong because of incorrect return characters.
Modify the php.ini configuration file
This method is used to solve the problem, generally speaking. ?php?> That’s the normal way of writing it, but < ??> This can also be used as a short label. If you have PHP in this format, go to php.ini, modify short_open_tag = Off, change “Off” to “On”, and restart Apache.
Use notepad++ to convert the format
The reason for this is that the format layout under Linux is different from that of Windows, so I need to convert the file into
in Linux/ Unix format. At present, I haven’t found a way to convert the file into
in Linux/ Unix format. If you know, please inform ~
Read More:
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- [!] Invalid `Podfile` file: syntax error, unexpected end-of-input, expecting keyword_end.
- Parse error: syntax error, unexpected end of file in XXXXXXXX
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- syntax error near unexpected token `then’ problem solution
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- SFTP login error: fatal error: received unexpected end of file from SFTP server
- Record the pits you stepped on – NSS error – 5938 (PR_ END_ OF_ FILE_ ERROR), curl: (35) Encountered end of file
- Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- Unexpected syntax error: unexpected token<
- Shell script syntax error near unexpected token ‘$’Do
- “Unexpected syntax error: unexpected identifier”.
- Solve the unexpected end of stream exception thrown by jedis
- Front end project construction error unexpected character ‘@’ solution
- Syntax error near unexpected token `newline’script cannot be executed
- Solve the problem of syntax error: invalid syntax in PIP install XXX
- Solve the problem: Something’s wrong–perhaps a missing \item. \end{thebibliography}