ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

include external php file

August 17, 2009 12:58am

Subscribe [2]
  • #1 / Aug 17, 2009 12:58am

    ranjitbd

    31 posts

    <?php echo include(base_url().‘application/views/include/menu.php’);?>

    it shows me error that is

    Severity: Warning

    Message: include() [function.include]: URL file-access is disabled in the server configuration

    thanks in advance for the reply

  • #2 / Aug 17, 2009 1:00am

    Dam1an

    2385 posts

    It’s because base_url would return a URL, which appears to be disabled
    I use APPPATH for includes,

    <?php include APPPATH.'application/views/include/menu.php';?>
  • #3 / Aug 17, 2009 7:25am

    Festy

    7 posts

    Please check the file permissions in your include directory.

  • #4 / Aug 27, 2009 4:17am

    ranjitbd

    31 posts

    Please check the file permissions in your include directory.

    i already solved my problem….
    but where and how to check file permissions in include directory. as u suggest me

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases