Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support php include error help!
Maskedfury
Posted on 04 Jun 2010, 19:34:21

Access: Member
Total Posts: 2
Joined: 2010-06-04

Hello,

I was wondering if someone out there could help me with my little problem. I've gone ahead and installed the script with success but when I try to link it back to a page using the include function it gives me an error.

I've installed the news script in a directory and was trying to call it into the main...

Code:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /hermes/bosweb/web003/b33/ipw.xxx/public_html/proto/index.php  on line 51

Warning: include(http://www.xxx.com/shiki/index.php) [function.include]: failed to open stream: no suitable wrapper could be found in /hermes/bosweb/web003/b33/ipw.xxx/public_html/proto/index.php on line 51

Warning: include() [function.include]: Failed opening 'http://www.xxx.com/shiki/index.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in /hermes/bosweb/web003/b33/ipw.xxx/public_html/proto/index.php on line 51


Any help would be greatly appreciated!
#2380
Chris
Posted on 04 Jun 2010, 19:57:33

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The problem is you're trying to include a URL and not a relative path. Instead of this

Code:
<?php
include 'http://www.xxx.com/shiki/index.php';
?>


Do this

Code:
<?php
include 'shiki/index.php';
?>
#2381
Maskedfury
Posted on 08 Jun 2010, 13:56:09

Access: Member
Total Posts: 2
Joined: 2010-06-04

Thank you so much for the help. It worked brilliantly! :)
#2416
Network-13.com © 2013