Jump to content

Custom Php In Drupal


Recommended Posts

For those of you that have used Drupal, do you know whats the best way to customize your drupal site with php? I have enabled the PHP filter, but Im not sure if its best to write php directly in the textarea, or should I create separate files and include them? The php I am writing is common stuff that I'll be using over and over like the mysqli_connect function. I tried doing include, require, & require_once, and they all throw errors, so Im not sure which folder to put the files I am including, if I do it that way. Anyone know? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...