Community

How to add php script when create page or story?

Hi All
I am new baby in drupal community. Please help me "How to add php script when create page or story"?

Comments

Input Format

You are given the ff three options under the Input Format field when you create content:

  • Filtered HTML
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Lines and paragraphs break automatically.
  • PHP code
    • You may post PHP code. You should include <?php ?> tags.
  • Full HTML
    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.

Input Format

Hi there, I'm also new to Drupal, and I don't see the option to use php:

# PHP code

* You may post PHP code. You should include

<?php

?>
tags.

I only have the other two options... Why is that?

=-=

sounds like you are using Drupal 6.x and in 6.x you have to first enable the phpfiler.module

This thread was started for Drupal 4.7.x

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

Input format

PHP code are not given in drupal 6, then what to do to add a php page in drupal.

Go to administration ->

Go to administration -> modules -> list

one of the modules is called "php filter"

enable this, and then you get the option to enter php code into text boxes.

nobody click here