/    Sign up×
Community /Pin to ProfileBookmark

Script Error displaying unknown errors

hi,all

I have uploaded my custom script i have made it came up with these errors i have no clue what they mean but how can i fix this?

[CODE]
Warning: Unknown(): open_basedir restriction in effect. File(/home/william/public_html/demos/cms/index.php) is not within the allowed path(s): (/home/guru/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/william/public_html/demos/cms/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: Unknown(): open_basedir restriction in effect. File(/home/william/public_html/demos/cms/index.php) is not within the allowed path(s): (/home/guru/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/william/public_html/demos/cms/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening ‘/home/william/public_html/demos/cms/index.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in Unknown on line 0
[/CODE]

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 11.2006 — It means that a directory has been specified for the open_basedir setting in your php.ini configuration file. PHP will therefore not allow you to open files which are not in that directory or one of its sub-directories.
Copy linkTweet thisAlerts:
@bokehJul 11.2006 — The master value is stored in php.ini but the value that refers to your individual site on a shared server would be declared in the virtual host (not that it matters). Anyway it is unlikely you would be permitted to FTP a file to a directory on your webspace that PHP cannot access which leads me to believe you are using an incorrect path for the files you are trying to open.
Copy linkTweet thisAlerts:
@william232authorJul 12.2006 — How can i fix this?
Copy linkTweet thisAlerts:
@NogDogJul 12.2006 — Either change the php.ini file if you are allowed to, or else make sure any files you want to open from within your script are in one of the listed directories (or their sub-directories):

/home/guru/ or /usr/lib/php or /usr/local/lib/php or /tmp
Copy linkTweet thisAlerts:
@william232authorJul 12.2006 — will that work on shared hosting?
Copy linkTweet thisAlerts:
@NogDogJul 12.2006 — will that work on shared hosting?[/QUOTE]
I can't say for sure (only your web host admins could -- assuming they know what they're doing).
×

Success!

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