Aloha.

I am pretty new to Drupal, so please be patient with me ;-)
I have to integrate a bigger PHP script (2500 lines of code) into a page content. I know, that can inject it by "Create content" and choosing "PHP code" as "Input format".
But this doesn't seem to be a really good way for developing such a big script (no syntax-highlighting and so on).
How do you develop such bigger PHP content?
Do you write it in a full featured PHP editor, test it locally and then inject the code to drupal?
If yes, do you use for that purpose the "Create content" section, or do you build a module and integrate it that way?

Comments

xqus’s picture

I would recommend writing your own module for this. It might be a bit more work, but you will learn a lot about how Drupal works at the same time.

You could start by reading this: http://drupal.org/node/508

---
Audun Larsen