Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @rosastrich,

    Technically, you should be able to use include(), but I think the purpose of this plugin is precisely not having to touch code directly on files saved in your server.

    Maybe if you explain a little more what you want to do, the author, or one of the contributors (like me) could give you a more appropriate advice. Do not hesitate to explain with a use case as an example: That would be very useful!

    Thread Starter rosastrich

    (@rosastrich)

    well I generally use one cfg file for e.g. login into a DB.

    so credentials etc. are not part of the php itself, and can be used in several, different scripts. That’s all ..

    Thanks for providing more details. I never tried that, but it should work.

    Thread Starter rosastrich

    (@rosastrich)

    do you know the folder to store such a file…?

    thx Rosa

    Plugin Author Shea Bunge

    (@bungeshea)

    There’s not a specific folder you need to use – what matters is just that you get the path right.

    For example, you could put your .php files in wp-content/, and then load them with:

    require_once WP_CONTENT_DIR . '/my-file.php';
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP include .. possible’ is closed to new replies.