/    Sign up×
Community /Pin to ProfileBookmark

include not working

hy,
I am having trouble using include function. My host has moved my page on other server and now its not working any more. Strange??? Could anybody see the code if its anthying wrong:
[url]http://www.poisci.net/test.php[/url]

If I run script itself: [url]http://www.poisci.net/scripts/random_text_kratki.php[/url]
is working, but when I include it in the test.php I get error??

Thanks for any clue?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@bokehApr 17.2007 — Looks like remote includes has been disabled for security reasons.
Copy linkTweet thisAlerts:
@joshi_mangeshApr 18.2007 — I am also facing same problem..my hosting provider shifted from php 4.0 to php 5.0 ..and since the problem starts..

i tried for solutions..i tried chnaging opn_basedir thr scripts and .htaccess file but no diffrence ..mens error remians the same...

i dont have access to php.ini file ...

what is the solution ..how can i include files ..?

http://www.indoglobalhealth.com/siteold/pathinfo.php

This is for your refrence..

Pls let me know if u anybody faced this problem before..

thx in advance
Copy linkTweet thisAlerts:
@bokehApr 18.2007 — I am also facing same problem..my hosting provider shifted from php 4.0 to php 5.0 ..and since the problem starts..

i tried for solutions..i tried chnaging opn_basedir thr scripts and .htaccess file but no diffrence ..mens error remians the same...[/QUOTE]
This is not the same problem. Open base directory restrictions can only be set from http.conf or php.ini. Either put the included file within the allowed path or contact your host and ask them to make changes to the permitted path.
Copy linkTweet thisAlerts:
@umd2007Apr 18.2007 — thi one time i couldn't get include to work at all and the only thing tht would work was the virtual(); include lol wot a time i had
Copy linkTweet thisAlerts:
@gari11authorApr 19.2007 — hy,

I have solved trouble with experimenting I have discovered if I put the file which I wonna include in same folder(in my case in root folder) as page in which I wanna include file it is working!

Hope that helps for others too!

Gregor
×

Success!

Help @gari11 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.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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