Php includes

Status
Not open for further replies.

like2program

New Member
Messages
244
Reaction score
0
Points
0
My main pages has this php:
PHP:
  <?php include("http://like2program.x10hosting.com/Php/Header.php");  
          include("http://like2program.x10hosting.com/Php/Navigation/Left_Navbar.php");  
         include("http://like2program.x10hosting.com/Php/Navigation/Right_Navbar.php"); ?>
The page code that is transferred abruptly stops after this.

I know from past experience that x10's hosting almost never fails and that I have made an error in my code.

Can someone please point it out if this is the case?

Thanks.
Like2


Edit:
What I had left of my site just disappeared
What is happening?
 
Last edited:

like2program

New Member
Messages
244
Reaction score
0
Points
0
That still doesn't explain why my site is now white with no background, none-the-less I will fallow your instructions and report back.
Edit:
That didn't help,
Any more advice?
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Look in the cPanel error log and see if there is anything about a denied function.
 

like2program

New Member
Messages
244
Reaction score
0
Points
0
[Wed Oct 08 17:08:51 2008] [error] [client 74.160.229.64] File does not exist: /home/like2/public_html/403.shtml, referer: http://like2program.x10hosting.com/
[Wed Oct 08 17:08:51 2008] [crit] [client 74.160.229.64] (13)Permission denied: /home/like2/public_html/Stylesheets/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://like2program.x10hosting.com/
[Wed Oct 08 17:08:51 2008] [error] [client 74.160.229.64] ALERT - Include filename ('http://like2program.x10hosting.com/Php/Header.php') is an URL that is not allowed (attacker '74.160.229.64', file '/home/like2/public_html/index.php', line 15)

Please translate this stuff
This is what appears every time the page is loaded
 

like2program

New Member
Messages
244
Reaction score
0
Points
0
Ok, I have almost figured this out
I need to know what "* is an URL that is not allowed *" means
I found this in my error log.

Thanks
~Like2

EDIT:
My Php version shows up as intermediate.
Could having the Basic configuration effect includes ability to work?
 
Last edited:

Scott

New Member
Messages
2,093
Reaction score
0
Points
0
Closed.

If issue is not resolved, Please open thread.
 

like2program

New Member
Messages
244
Reaction score
0
Points
0
No on has answered my last question:
Ok, I have almost figured this out
I need to know what "* is an URL that is not allowed *" means
I found this in my error log.
and
My Php version shows up as intermediate.
Could having the Basic configuration effect includes ability to work?

Thank you,
~like2
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
With the URL, it may just be that we don't allow URL based file access. I know we didn't before and I'm not sure if it is still that way.

For your second question, having intermediate instead of basic will not cause things to not work.
 

like2program

New Member
Messages
244
Reaction score
0
Points
0
No URL based access?
I know this code used to work on your servers, when did you implement that change?

Anyways I will change every single include to local-type in the mean time.

Thanks,
~Like2
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
That will solve the issue. Use fopen() if you need to the contents of a file with a http:// prefix, but I don't advise it for security reasons.

* Closed *
 
Status
Not open for further replies.
Top