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

Comments

glendac’s picture

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.
roog’s picture

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 tags.

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

vm’s picture

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 : )

reelay.bidyut’s picture

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

wcndave’s picture

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.

elgarrai’s picture

i have a new drupal6.26 installation
i have enabled php filter and add a new page with the content

<?php
echo "test ";
?>

and my code not working i see the

echo "test ";

in the page ?
what is the problem?