Allow PHP in Posts and Pages
allow php in page (3 posts)

  1. tam1234
    Posted 2 years ago #

    I have installed Allow PHP in Posts and Pages. i wrote
    include 'x.php';
    in a hello page.
    I want to call another php code from x.php to y.php
    For this i created new y page and include y.php there.
    But it is showing warning

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/infoav/public_html/bookbazaar/wp-content/themes/twentythirteen/header.php:4) in /home/infoav/public_html/bookbazaar/wp-content/plugins/allow-php-in-posts-and-pages/profile.php on line 3

    How to solve this problem
    Please help



  2. Kimber254
    Posted 1 year ago #

    Did you ever figure it out? I tried
    <?php includes "my-downloads.php"; /> and includes "my-downloads.php"; but only got errors.

  3. HawkEye of Manhattan
    Posted 1 year ago #

    You need to include absolute file path to your php files, or it wont work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Allow PHP in Posts and Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.