PHP Errors... [Sustained Server]

Status
Not open for further replies.

misterspock

New Member
Messages
85
Reaction score
0
Points
0
I know it's the alpha server, so I won't be surprised to find a flaw within it. I would like to make sure that this is your side not my side of the problem.

http://gantdesigns.com/
http://buufdesigns.com/

For example:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/xxx/public_html/gantdesigns/index.php on line 23

Warning: include(http://gantdesigns.com/include/ads/x10hosting_advanced_advert.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/xxx/public_html/gantdesigns/index.php on line 23

Warning: include() [function.include]: Failed opening 'http://gantdesigns.com/include/ads/x10hosting_advanced_advert.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/gantdesigns/index.php on line 23

I never had these problems from my previous host, hence, I am a bit uncertain to what is causing this problem.

(I am using PHP include).
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

U mm, you are including files via URL, php is blocking them, its security.

I have a quetion, what server is alpha.
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Is this the new security feature for the PHP 5.2.0?

Because I never had this type of problem before.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Re: PHP Errors... [Alpha Server]

What server is this on? >:O
 
Last edited:

YamiKaitou

Member
Messages
636
Reaction score
0
Points
16
Re: PHP Errors... [Alpha Server]

That deals with the backend code. There is no Alpha server. You are either on the Free, Substained, or Paid server
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

Go to cPanel > Shared IP Address, copy that over.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

Sustained Server.
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Interesting... I get a good server. :D

Anyways, I converted everything to:
<? include('/include/ads/x10hosting_advanced_advert.php'); ?>

But it still comes up with the same error.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

Dunno then, wait for bryon, that might be a PHP.ini error.
 
Last edited:

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

I have read that 5.2.0 disallows any includes at all!

Odd.

Any solution for that?
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

Ya wait for Bryon or Corey to come on and see what they want to do, they are the ones with php.ini access.
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Alright Brandon. Thanks for the support.
 

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
Re: PHP Errors... [Alpha Server]

Try using the includes with the path to the file locally instead of the web address.

so include('../includes/config.inc.php'); for example instead of include('http://mysite.x10hosting.com/includes/config.inc.php');

If that isn't what you're talking about or doesn't work paste the part of the file you're having issues with here.

-Corey
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Try using the includes with the path to the file locally instead of the web address.

so include('../includes/config.inc.php'); for example instead of include('http://mysite.x10hosting.com/includes/config.inc.php');

If that isn't what you're talking about or doesn't work paste the part of the file you're having issues with here.

-Corey

Done and done, but no cigar.

Tried the following:
include('../blah/blah.php')
include('/blah/blah.php')
include('blah/blah.php')

Nonetheless, here is part of the file:
<?PHP
include_once('../include/xhtml.php');
$title='GANTdesigns';
$page='About';
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?PHP print "$title"; ?> - <?PHP print "$page"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="GANTdesigns - A place for all GANT styles" />
<meta name="keywords" content="gant, mattahan, icon, icons, deviantart" />
<link rel="stylesheet" type="text/css" href="http://gantdesigns.com/include/css/layout.css" />
<link rel="stylesheet" type="text/css" href="http://gantdesigns.com/include/css/navigation.css" />
<!--[if lt IE 6]>
<link rel="stylesheet" type="text/css" href="http://gantdesigns.com/include/ie6/fixIE6.css" />
<![endif]-->
<link rel="shortcut icon" href="http://gantdesigns.com/favicon.ico" />
</head>
<body>
<div id="pandora">
<div id="ad_place"><a href="http://gantdesigns.com/donate_valid/"><img src="http://gantdesigns.com/images/donate_gantdesigns.png" height="19px" width="200px" alt="Donate to GANTdesigns" /></a><?php include('../include/ads/x10hosting_advanced_advert.php'); ?></div>
<div id="box"><img src="http://gantdesigns.com/images/send_you_home_in_a.png" height="128px" width="125px" alt="Box" /></div>
<div id="header"><img class="fixIE" src="http://gantdesigns.com/images/site_header.png" height="73px" width="716px" alt="Header" /></div>
<div class="page">
<div id="headershadow"><img class="fixIE" src="http://gantdesigns.com/images/header_shadow.png" height="3px" width="716px" alt="Header Shadow" /></div>

Is there an alternative?

My website is pretty much exposed.
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Re: PHP Errors... [Alpha Server]

Maybe try with the require function.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Re: PHP Errors... [Alpha Server]

try

include("/home/username/public_html/includes/xhtml.php');
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

try

include("/home/username/public_html/includes/xhtml.php');

Negative.

I've tried, it ain't working?!

This is my .htaccess
AddType x-httpd-php .php .htm .htm

RewriteEngine on

RewriteRule ^about/$ about.php
RewriteRule ^styles/$ styles.php
RewriteRule ^credits/$ credits.php
RewriteRule ^error/$ error.php
RewriteRule ^donate_valid/$ donate_valid.php

ErrorDocument 400 http://gantdesigns.com/error/
ErrorDocument 401 http://gantdesigns.com/error/
ErrorDocument 403 http://gantdesigns.com/error/
ErrorDocument 404 http://gantdesigns.com/error/
ErrorDocument 500 http://gantdesigns.com/error/

It shouldn't affect anything.
 
Last edited:
Status
Not open for further replies.
Top