/    Sign up×
Community /Pin to ProfileBookmark

Include with PATH is not working

All,

I am having issues in include

When i use[B][U] include ( PATH . ‘/library.php’ );[/U][/B] its giving the following error

Warning: include(/pmr/library.php) [function.include]: failed to open stream….
Warning: include() [function.include]: Failed opening ‘/pmr/defaults.php’ for inclusion (include_path=’/usr/local/lib/php-5.2.17/lib/php’

Instead of relative path when i use hard code value it working fine. Please advice what will be the issue.

include ( ‘/pmr/library.php’ );

Thanks,
Raj

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@sultanrajauthorOct 24.2011 — Please refer the following error message, There was some typo's in original post.

"Warning: include(/pmr/library.php) [function.include]: failed to open stream....

Warning: include() [function.include]: Failed opening '/pmr/library.php' for inclusion (include_path='/usr/local/lib/php-5.2.17/lib/php'
×

Success!

Help @sultanraj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...