require():Failed opening request

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

require():Failed opening request

Postby JamesBrown » July 26th, 2013, 2:18 pm

When I attempt to start a module I get:
Code: Select all
require(): Failed opening required '../KoolAjax/koolajax.php' (include_path='.;C:\php\pear')

Its telling me that my library is not in the include_path but how do I change the path?
JamesBrown
 
Posts: 27
Joined: June 20th, 2013, 5:04 pm

Re: require():Failed opening request

Postby Jakub Misek » July 27th, 2013, 8:20 pm

Hi,

include_path can be changed in PHP configuration file (php.ini). More preferably, it can be changed in your code http://php.net/manual/en/function.set-include-path.php

Is the library placed within your project correctly, so the relative path should work?
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 53 guests

User Control Panel

Login

Who is online

In total there are 53 users online :: 0 registered, 0 hidden and 53 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 53 guests