WordPress.org

Ready to get started?Download WordPress

Forums

Theme-Check
[resolved] fopen | fwrite | fclose Warning (2 posts)

  1. merianos
    Member
    Posted 1 year ago #

    Hello.

    I am using the Theme Check plugin to check my theme.

    I did many correction, but now I have a problem with fopen/fwrite/fclose.

    What's wrong with that functions and I cannot use them.

    That functions are use to create CSS and JavaScript files for caching porpuses.

    Any idea please ?

    Kind regards
    Merianos Nikos

    http://wordpress.org/extend/plugins/theme-check/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 1 year ago #

    The short answer is that you shouldn't be creating CSS or Javascript files for caching purposes.

    The longer answer is that if you are creating files, you need to use the WP_Filesystem functionality to be secure on shared hosting systems.

    More info here: http://ottopress.com/2011/tutorial-using-the-wp_filesystem/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags