introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

php_value include_path ...



Posted by: hjonez
April 15, 2008 11:51AM
I have a site, which I'm moving from a Debian Unix system to EasyPHP.

For example:
[localhost]

The files are in:
"${path}/www/mysite/html"

However, normally, I put most of my PHP code in something like:
"${path}/www/mysite/php_lib"

In Unix, I usually do this:

...

Alias /mysite "/var/www/mysite/html"
<Directory /var/www/mysite/html>
php_value include_path ".:/var/www/mysite/php_lib"
</Directory>

...

So I added this to "C:\Program Files\EasyPHP 2.0b1\conf_files\httpd.conf":

Alias /mysite "${path}/www/mysite/html"
<Directory "${path}/www/mysite/html">
php_value include_path ".:${path}/www/mysite/php_lib"
</Directory>

When I navigate to [localhost] it properly loads the "${path}/www/mysite/html/index.php" file, but fails including files from php_lib/ :

Warning: include(cp_lib.php) [function.include]: failed to open stream: No such file or directory in C:\Program Files\EasyPHP 2.0b1\www\mysite\html\control.php on line 1

Warning: include() [function.include]: Failed opening 'cp_lib.php' for inclusion (include_path='.:C:/PROGRA~1/EASYPH~1.0B1/www/mysite/php_lib') in C:\Program Files\EasyPHP 2.0b1\www\mysite\html\discs.php on line 1


Is it possible to do this with EasyPHP? Do I have a minor error in the config or must I specify this include path in conf_files/php.ini ?

I'll try this next but fear I'll have the same problem.

Thanks for reading this!
-HJ



Edited 1 time(s). Last edit at 04/15/2008 11:53AM by hjonez.
Options: ReplyQuote
Posted by: hjonez
April 15, 2008 11:53AM
In conf_files/httpd.conf, I changed:

php_value include_path ".:${path}/www/mysite/php_lib"

to:

php_value include_path ".:${path}\www\mysite\php_lib\"

but it still doesn't work. :(



Edited 2 time(s). Last edit at 04/15/2008 12:01PM by hjonez.
Options: ReplyQuote
Posted by: hjonez
April 15, 2008 12:12PM
Ah HA!

php_value include_path ".:${path}/www/mysite/php_lib"

php_value include_path ".;${path}\www\mysite\php_lib"

See if you can see the difference.

Fixed! (Well, the files are now included but I have unrelated errors ;) )

-HJ



Edited 2 time(s). Last edit at 04/15/2008 12:14PM by hjonez.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.