开发者

integrate php with drupal

开发者 https://www.devze.com 2022-12-29 03:40 出处:网络
How to include php pages in drupal without changing 开发者_高级运维the php code so that dynamically content can be generated.Any process is ok.But i don\'t want to do the coding in drupal enable PHP f

How to include php pages in drupal without changing 开发者_高级运维the php code so that dynamically content can be generated.Any process is ok.But i don't want to do the coding in drupal


enable PHP filter module, choose in Content adding time this filter, add php code - it's not drupal way, but faster to do...


  1. Make sure your PHP file is very secure as you're opening a potential hole in your Drupal system.
  2. Activate the PHP Input filter for your admin editor profile. (Don't give untrusted users access to this editor!)
  3. Edit your Content Item.
  4. Add something like <?php include('/path/to/my/very/secure/file.php'); ?>
  5. Save.
0

精彩评论

暂无评论...
验证码 换一张
取 消