dsebywql016137 2014-12-29 03:25
浏览 24

链接到include_path中的文件

I am trying to understand how to have a require_once directive point to a php file located in a folder belonging to a path specified in a php.ini include_path. This folder is located before public_html. Here is, roughly, the web structure as it stands:

   .cpanel
   .cpanel-datastore
   access-logs
   etc
   include_path
        /folder1
             //session.php
             //db_connection.php
             //functions.php
   public_html
        /folder
             //File_with_require_once.php
   ssl

Now, of course, the php.ini file is located in public_html

And the question again is, in File_with_require_once.php, when I make the call for :

<?php require_once("????????/session.php"); ?>
<?php require_once("????????/db_connection.php"); ?>
<?php require_once("????????/functions.php"); ?>

What do I write instead of the question marks?

I hope I am being clear... Can somehow help? Thank you.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 linux驱动,linux应用,多线程
    • ¥20 我要一个分身加定位两个功能的安卓app
    • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
    • ¥15 IAR程序莫名变量多重定义
    • ¥15 (标签-UDP|关键词-client)
    • ¥15 关于库卡officelite无法与虚拟机通讯的问题
    • ¥15 目标检测项目无法读取视频
    • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
    • ¥100 求采集电商背景音乐的方法
    • ¥15 数学建模竞赛求指导帮助