php problem? function.include

Status
Not open for further replies.

minervascots

New Member
Messages
9
Reaction score
0
Points
0
Hi,

um... I kept getting this error when ever I access any of the pages in my website. I used php to include the css file into the webpages and it worked fine. But when I accessed my website again, this error appeared.

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/antheams/public_html/aboutme.php on line 1

Warning: include(http://antheams.exofire.net/style.css) [function.include]: failed to open stream: no suitable wrapper could be found in /home/antheams/public_html/aboutme.php on line 1

Warning: include() [function.include]: Failed opening 'http://antheams.exofire.net/style.css' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/antheams/public_html/aboutme.php on line 1


 

minervascots

New Member
Messages
9
Reaction score
0
Points
0
The thing is, it used to work fine till this year (as in the file include function), so I'm puzzled...
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Why are you using an include to include the .css ?
You can use HTML in .php files.
 

crazywhite1989

New Member
Messages
69
Reaction score
0
Points
0
Easier way to do so, change all .html to .php

.PHP still acts like .html does

using function.include <?php include('example.php'); ?>
 
Status
Not open for further replies.
Top