Html-mac php Load Smarty template failed, is it possible that the php.ini setup problem?

Source: Internet
Author: User
Tags smarty template

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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.