/    Sign up×
Community /Pin to ProfileBookmark

Am having an include probably, server maybe?

I maintain a website for my church, I use includes in them and up until today they worked just fine, but now if you try to go to the website where the includes are you get these errors:

[I]Warning: main(): URL file-access is disabled in the server configuration in /usr/home/daysanew/public_html/index.php on line 28

Warning: main([url]http://www.faithtabernaclepentecostalchurch.org/InI/TOC.INI):[/url] failed to open stream: no suitable wrapper could be found in /usr/home/daysanew/public_html/index.php on line 28

Warning: main(): URL file-access is disabled in the server configuration in /usr/home/daysanew/public_html/index.php on line 28

Warning: main([url]http://www.faithtabernaclepentecostalchurch.org/InI/TOC.INI):[/url] failed to open stream: no suitable wrapper could be found in /usr/home/daysanew/public_html/index.php on line 28

Warning: main(): Failed opening ‘http://www.faithtabernaclepentecostalchurch.org/InI/TOC.INI‘ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /usr/home/daysanew/public_html/index.php on line 28[/I]

Now I figure there is a good chance it maybe the server that my website is located on, but if not I’d like to get a jump on how to fix this, any help would be appreciated.

to post a comment
PHP

10 Comments(s)

Copy linkTweet thisAlerts:
@cdwhalley_comMay 04.2006 — Are the includes called by a URL or just the filename?

E.g.
[code=php]
include("include.inc");
[/code]

or
[code=php]
include("http://www.website.com/includes/include.inc");
[/code]
Copy linkTweet thisAlerts:
@daysanewauthorMay 04.2006 — Its the latter, it goes:

<?PHP include "http://www.faithtabernaclepentecostalchurch.org/InI/TOC.INI"; ?> [/QUOTE]
Copy linkTweet thisAlerts:
@dotancohenMay 04.2006 — You'd probably be better of using relative filenames, like this:
<i>
</i>&lt;?php
include"/usr/home/daysanew/InI/TOC.INI";
?&gt;
Copy linkTweet thisAlerts:
@chazzyMay 04.2006 — the error message you're getting is very clear, your php.ini is disallowing url opening via includes. you have to use relative paths.
Copy linkTweet thisAlerts:
@daysanewauthorMay 04.2006 — That doesn't seem to be working either just get the same errors:

Warning: main(/usr/home/daysanew/InI/TOC.INI): failed to open stream: No such file or directory in /usr/home/daysanew/public_html/index.php on line 29

Warning: main(/usr/home/daysanew/InI/TOC.INI): failed to open stream: No such file or directory in /usr/home/daysanew/public_html/index.php on line 29

Warning: main(): Failed opening '/usr/home/daysanew/InI/TOC.INI' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/daysanew/public_html/index.php on line 29[/QUOTE]
Copy linkTweet thisAlerts:
@daysanewauthorMay 04.2006 — Also I did try and use the above code

<?php

include"/usr/home/daysanew/InI/TOC.INI";

?>[/QUOTE]
Copy linkTweet thisAlerts:
@daysanewauthorMay 04.2006 — I got it, thanks for the help everyone! But I do have one question, why would this mess up after almost a year of this website being up?
Copy linkTweet thisAlerts:
@chazzyMay 04.2006 — someone changed your php.ini file or made a change a while ago and never restarted apache
Copy linkTweet thisAlerts:
@dotancohenMay 04.2006 — I got it, thanks for the help everyone! But I do have one question, why would this mess up after almost a year of this website being up?[/QUOTE]

Ask your web host. They probably updated to php5 or something. They owe you an explanation- and a warning if php.ini will be changed again in the future, or any other php upgrades.
Copy linkTweet thisAlerts:
@daysanewauthorMay 04.2006 — They told me they had some upgrades (mainly secruity), but you would think they could warn thier paying customers when they do such things
×

Success!

Help @daysanew 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,
)...