In the Windows environment using sublime development, the local Apache server debugging, using the sublime sftp plugin to upload to the Linux server synchronously, the page preview under Windows is normal, the remote Linux page part shows abnormal, Part of the code in the page is not parsed by the YII framework and is exported directly in HTML format.
Workaround:
1. Use Var_dump () to check the error page to see if the variable exists
2. If it does not exist, resolve the problematic PHP file one by one according to the error message of the page prompt
3. When developing synchronously using SFTP, do you want to disable the synchronization of some directory code? Causes the local Yii framework file not to be uploaded to the Linux server "view Sftp-config.json file
"Ignore_regexes": [
"\\.sublime-(Project|workspace)", "Sftp-config (-alt\\d?)"? \\.json ",
"Sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\ \". Ds_store "," thumbs\\.db "," Desktop\\.ini "," Runtime "," Vendor "
],
】
4. Try emptying the browser cache
The above describes the Windows environment Development Yii upload program to the Linux server when the program run inconsistent results, including the content of Windows, I hope to be interested in PHP tutorial friends helpful.