473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Server Includes

Server Includes were shut off on my site at:
http://web.ics.purdue.edu/~cthilges/

Warning: include() [function.include]: URL file-access is disabled in
the server configuration in /home/lookout/h2/cthilges/www/index.php on
line 2

Warning: include(http://web.ics.purdue.edu/~cthilges/header.php)
[function.include]: failed to open stream: no suitable wrapper could be
found in /home/lookout/h2/cthilges/www/index.php on line 2

Warning: include() [function.include]: Failed opening
'http://web.ics.purdue.edu/~cthilges/header.php' for inclusion
(include_path='.:') in /home/lookout/h2/cthilges/www/index.php on line 2
I use this feature so that i can have a basic template file for my site
with only two includes:

<?header=http://web.ics.purdue.edu/~cthilges/header.php>
the content
<?footer=http://web.ics.purdue.edu/~cthilges/footer.php>

With an absolute url as well i never have to count ../../../

What security reason is this disabled?
It seems to be a very convenient and irreplaceable feature.
I add pages of flashy site code this way.

Thank you,
Christopher Thilges, ct******@purdue.edu
May 17 '07 #1
1 1115
Christopher Thilges wrote:
Server Includes were shut off on my site at:
http://web.ics.purdue.edu/~cthilges/

Warning: include() [function.include]: URL file-access is disabled in
the server configuration in /home/lookout/h2/cthilges/www/index.php on
line 2

Warning: include(http://web.ics.purdue.edu/~cthilges/header.php)
[function.include]: failed to open stream: no suitable wrapper could be
found in /home/lookout/h2/cthilges/www/index.php on line 2

Warning: include() [function.include]: Failed opening
'http://web.ics.purdue.edu/~cthilges/header.php' for inclusion
(include_path='.:') in /home/lookout/h2/cthilges/www/index.php on line 2
I use this feature so that i can have a basic template file for my site
with only two includes:

<?header=http://web.ics.purdue.edu/~cthilges/header.php>
the content
<?footer=http://web.ics.purdue.edu/~cthilges/footer.php>

With an absolute url as well i never have to count ../../../

What security reason is this disabled?
It seems to be a very convenient and irreplaceable feature.
I add pages of flashy site code this way.

Thank you,
Christopher Thilges, ct******@purdue.edu
Christopher,

Why are you including using http protocol? Each one creates an
unnecessary call to the server to handle the include.

Rather, use:

<?php header=$_SERVER['DOCUMENT_ROOT'] . "/~cthilges/header.php"; ?>

You don't have to count ../../../ this way, either.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Alan Howard | last post by:
I've just been caught out by a host that doesn't support #includes in my ASPs. What's the best strategy for replacing these calls to files that include everything from subs and functions, global...
9
by: JR | last post by:
Hi, I'm migrating my website to an IIS 6.0 server and all the asp pages work fine except for the ones that reference include files, even though I have "Enable parent paths" enabled in the...
8
by: Adam Greifer | last post by:
Hi! I'm a newbie at DB2 but have 13 years of SQL Server. I need to convert over 100 SQL Server procs to DB2. I haven't had much luck with the IBM Integration Toolkit and want to avoid ER/win...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
1
by: Ryan McLean | last post by:
Hi everyone! What is happening is the method: sub_btnSubmitClicked is being executed every time any other object with a Handler is executed. I am trying not to use the withevents and handles...
12
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
1
by: Martin Olson | last post by:
is there a way to get the WebDev.WebServer for VS2005 to process server side includes??? thanks for your help on this, mo
3
by: catlover30 | last post by:
I am creating a website using DIV tags for the layout, and attaching the template to a CSS style sheet. I was given an html file that already included the banner and server side includes for...
10
by: RN1 | last post by:
The book I am referring to learn ASP states the following about server- side includes: ============================================== The code in a server-side include file is inserted into the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.