Jump to content

Inclusion of PHP file in DRUPAL ?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
murugavelb

murugavelb

    Newbie

  • Members
  • PipPip
  • 11 posts
Actuallly i hav a PHP file regarding fetching RSS feed from a website and display.
I want to include that PHP file in DRUPAL. How to do that ?

#2
wcypierre

wcypierre

    Newbie

  • Members
  • PipPip
  • 10 posts

require 'filename.php';



#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

murugavelb said:

Actuallly i hav a PHP file regarding fetching RSS feed from a website and display.
I want to include that PHP file in DRUPAL. How to do that ?

What is it you want to do? Fetching rss feeds don't need a extra php file, it's just to download and enable the module for it (aggregation or views, depending on what you want to do). Otherwise, if you want to add your own code to Drupal, you create your own module and put the code there. It's not just a quickfix to add code to drupal. Very often, it's not needed at all, besides some css to make your installation work as you like to. Please tell me what you want to do, and I'll help you find it in Drupal core or it's contrib modules.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users