The project used to be written in Windows, uploaded to Windows Sever 2008 can also be used in normal use, but recently intended to use the Mac to develop, but found that the template can not be resolved, in PHP with the print_r
output of everything is normal, but with the smarty
output html
The template will always show blank pages, and no error.
This has been the case with Windows before, but that is the use of FTP tools to upload HTML files to the server because of network failure to do so, this time the HTML file is good, should not be the reason.
It's not because it's not open php.ini
display_errors
, because it's open.
Could it be because php.ini
of the reason for not setting it up? Is there any setting that has anything to do with this?
This permission is readable and writable, folders and files are, but I find it seems like Mac permissions on files, not just for the login user, but also for different applications? Will it prohibit my PHP or Apache Read permission?
Reply content:
The project used to be written in Windows, uploaded to Windows Sever 2008 can also be used in normal use, but recently intended to use the Mac to develop, but found that the template can not be resolved, in PHP with the print_r
output of everything is normal, but with the smarty
output html
The template will always show blank pages, and no error.
This has been the case with Windows before, but that is the use of FTP tools to upload HTML files to the server because of network failure to do so, this time the HTML file is good, should not be the reason.
It's not because it's not open php.ini
display_errors
, because it's open.
Could it be because php.ini
of the reason for not setting it up? Is there any setting that has anything to do with this?
This permission is readable and writable, folders and files are, but I find it seems like Mac permissions on files, not just for the login user, but also for different applications? Will it prohibit my PHP or Apache Read permission?
chmod 777/library/webserver/documents
is indeed a permission problem, it is estimated that Smarty did not write the permissions of the file, so failed, but incredibly no error message, really.
Above is the terminal command, followed by the project directory, changed to their own on the line.
This has nothing to do with the php.ini setting, Smarty is a php third-party package, carefully review the introduction path
Note Permissionschrow -R 755 /tmp