pandol
12-09-2008, 11:51 PM
I have the following configuration for include_path in my php.ini:
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;C:\xampp\php\pear\"
Since I am a Windows user what should I do for the following script to output correctly?
<?php
include_once("C:\TEST\myinclude.php");
include_once("myinclude2.php");
include_once("C:\xampp\htdocs\book\13\myinclude2.php");
include_once("C:\xampp\php\PEAR\myinclude2.php")
?>
Keep in mind that there is "myinclude2.php" in both directories:
C:\xampp\htdocs\book\13\ & C:\xampp\php\PEAR\. Also why I see no problem with -- include_once("C:\TEST\myinclude.php");
How should I configure my include_path in my PC to output correctly?
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;C:\xampp\php\pear\"
Since I am a Windows user what should I do for the following script to output correctly?
<?php
include_once("C:\TEST\myinclude.php");
include_once("myinclude2.php");
include_once("C:\xampp\htdocs\book\13\myinclude2.php");
include_once("C:\xampp\php\PEAR\myinclude2.php")
?>
Keep in mind that there is "myinclude2.php" in both directories:
C:\xampp\htdocs\book\13\ & C:\xampp\php\PEAR\. Also why I see no problem with -- include_once("C:\TEST\myinclude.php");
How should I configure my include_path in my PC to output correctly?