/ Forside/ Teknologi / Udvikling / ASP / Spørgsmål
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
INCLUDE.. Hva' gør jeg forkert
Fra : molokyle
Vist : 1273 gange
200 point
Dato : 29-05-07 16:32

Jeg har en 'Standard' hosting hos: http://dandomain.dk/

Jeg har en hjemmesideside beliggende: http://www.cssboxing.com/

Jeg har lavet 2 filer:

1.) validate.inc
2.) validate.php

..beliggende i: http://www.cssboxing.com/validation/ biblioteket

Altså:

1.) http://www.cssboxing.com/validation/validate.inc
2.) http://www.cssboxing.com/validation/validate.php

..men lige meget om jeg bruger ASP eller PHP include:

1.) <!-- #include file="/validation/validate.inc" -->
2.) <? php include("/validation/validate.php") ?>

..i stedet for XHTML koden på andre sider i sitemap'et

..så virker 'skidtet' IKKE !!!

Hvad gør jeg forkert?

For nuværende har jeg IKKE indsat ASP/PHP koden ..så siderne ser Ok. ud ...nu,
men jeg ku' altså godt tænke mig at flytte koden:

Kode
<p id="validation"><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a><a href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.cssboxing.com/css/black_layout.css"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a><a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance"><img height="31" width="88" src="http://www.w3.org/WAI/wcag1A" alt="Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0" /></a>&nbsp;<a href="http://www.delorie.com/web/lynxview.html" title="Lynx Inspected"><img height="31" width="88" src="http://www.cssboxing.com/media/gif/lynxpaw.gif" alt="Lynx Inspected" /></a><a href="http://feedvalidator.org/check.cgi?url=http%3A//www.cssboxing.com/rss/cssboxing.rss"><img src="/media/png/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" height="31" width="88" /></a><br /><br /><a href="http://www.eff.org/br/" title="The Blue Ribbon Online Free Speech Campaign"><img src="http://www.eff.org/br/brstrip.gif" alt="The Blue Ribbon Online Free Speech Campaign" height="32" width="88" /></a>&nbsp;<a href="http://www.icra.org/sitelabel/" title="ICRA cheked"><img src="/media/jpg/black_ICRAchecked.jpg" width="32" height="32" alt="ICRA cheked" /></a>&nbsp;<a href="http://www.cssboxing.com/rss/cssboxing.rss" title="RSS newsfeed"><img src="/media/jpg/black_rss.jpg" width="32" height="32" alt="RSS newsfeed" /></a><span class="copyright">Copyright &#169; 2007&nbsp;&nbsp;<span class="backwards">moc.gnixobssc@retsambew </span></span></p>

..ud i en extern fil, således at jeg kan rette/vedligeholde ét sted for alle sider!

Skal jeg sætte nogen 'parametre' til serveren ...eller hva'?

Det skal liiige siges, at sådan som siderne ser ud nu ...er det go'e gamle XHTML 1.0 som spiller

</MOLOKYLE>


 
 
Accepteret svar
Fra : smorch

Modtaget 210 point
Dato : 29-05-07 16:46

Jeg kan ikke inkludere i en html fil og få det til at virke - er du sikker på at det ikke skal gøres i enten en shtml, asp eller php fil?

Mvh

sMorch

Kommentar
Fra : smorch


Dato : 29-05-07 16:50

Hvis jeg har ret skal du bare omdøbe din index / default.html til .asp

Kommentar
Fra : molokyle


Dato : 29-05-07 17:13

Har omdøbt: index.html til index.php med dette resuletat: http://www.cssboxing.com/

..således får jeg barew vist Dandomains default side index.htm B-(

..selvom den korrensponderende kode i index.php ser således ud:
Kode
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="da" xml:lang="da">
<head>
<title>CSSboxing</title>
<link rel="stylesheet" type="text/css" media="all" href="/css/black_layout.css" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="schema.dc" href="http://purl.org/metadata/dublin_core_elements" />
<!--[if IE]>
<meta http-equiv="page-exit" content="blendtrans(duration=3)" />
<![if lte IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="/css/ie6.css" />
<![endif]>
<![if gt IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="/css/ie7.css" />
<![endif]>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss/cssboxing.rss" />
<link rel="meta" href="http://www.cssboxing.com/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://cssboxing.com/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0) gen true for "http://www.cssboxing.com/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))' />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Title" content="CSSboxing" />
<meta name="Description" content="CSSboxing" />
<meta name="Keywords" content="CSSboxing" />
<meta name="Robots" content="ALL" />
<meta name="Revisit-after" content="7" />
<meta name="Author" content="Henrik Mortensen" />
<meta name="Copyright" content="Henrik Mortensen" />
<meta http-equiv="Content-language" content="dan" />
<meta name="Rating" content="General" />
<meta name="Generator" content="Henrik Mortensen" />
<meta name="ObjectType" content="Text" />
<meta name="DC.Title" content="CSSboxing" />
<meta name="DC.Description" content="CSSboxing" />
<meta name="DC.Subject" content="CSSboxing" />
<meta name="DC.Creator" content="Henrik Mortensen" />
<meta name="DC.Contributor" content="ingen" />
<meta name="DC.Rights" content="Henrik Mortensen" />
<meta name="DC.Identifier" content="http://www.cssboxing.com/" />
<meta name="DC.Publisher" content="Henrik Mortensen" />
<meta name="DC.Date" scheme="ISO8601" content="2005-05-01" />
<meta name="DC.Language" scheme="NISOZ39.50" content="dan" />
<meta name="DC.Type" content="Text" />
<meta name="DC.Format" scheme="MIME" content="text/html" />
</head>
<body>
<div>
<span id="banner">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent"><span class="heading">CSSboxing</span></span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>


Hva' nu ...?

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:16

Hmm...
Kode
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="da" xml:lang="da">
<head>
<title>CSSboxing</title>
<link rel="stylesheet" type="text/css" media="all" href="/css/black_layout.css" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="schema.dc" href="http://purl.org/metadata/dublin_core_elements" />
<!--[if IE]>
<meta http-equiv="page-exit" content="blendtrans(duration=3)" />
<![if lte IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="/css/ie6.css" />
<![endif]>
<![if gt IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="/css/ie7.css" />
<![endif]>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/rss/cssboxing.rss" />
<link rel="meta" href="http://www.cssboxing.com/labels.rdf" type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://cssboxing.com/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0) gen true for "http://www.cssboxing.com/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))' />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Title" content="CSSboxing" />
<meta name="Description" content="CSSboxing" />
<meta name="Keywords" content="CSSboxing" />
<meta name="Robots" content="ALL" />
<meta name="Revisit-after" content="7" />
<meta name="Author" content="Henrik Mortensen" />
<meta name="Copyright" content="Henrik Mortensen" />
<meta http-equiv="Content-language" content="dan" />
<meta name="Rating" content="General" />
<meta name="Generator" content="Henrik Mortensen" />
<meta name="ObjectType" content="Text" />
<meta name="DC.Title" content="CSSboxing" />
<meta name="DC.Description" content="CSSboxing" />
<meta name="DC.Subject" content="CSSboxing" />
<meta name="DC.Creator" content="Henrik Mortensen" />
<meta name="DC.Contributor" content="ingen" />
<meta name="DC.Rights" content="Henrik Mortensen" />
<meta name="DC.Identifier" content="http://www.cssboxing.com/" />
<meta name="DC.Publisher" content="Henrik Mortensen" />
<meta name="DC.Date" scheme="ISO8601" content="2005-05-01" />
<meta name="DC.Language" scheme="NISOZ39.50" content="dan" />
<meta name="DC.Type" content="Text" />
<meta name="DC.Format" scheme="MIME" content="text/html" />
</head>
<body>
<div>
<span id="banner">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent"><span class="heading">CSSboxing</span></span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</span>
<span id="menu" class="fix box left">
<b class="boxtop"><b class="box1"></b><b class="box2"></b><b class="box3"></b><b class="box4"></b></b>
<span class="boxcontent">
<span class="boxdown">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Forsiden</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
<br />
<a href="/agenda.html" accesskey="d" tabindex="1" title="Agenda">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Agen<span class="u">d</span>a</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</a>
<br />
<a href="/eksempler.html" accesskey="l" tabindex="2" title="Eksempler">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Eksemp<span class="u">l</span>er</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</a>
<br />
<a href="/artikler.html" accesskey="i" tabindex="3" title="Artikler">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Art<span class="u">i</span>kler</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</a>
<br />
<a href="/links.html" accesskey="k" tabindex="4" title="Links">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Lin<span class="u">k</span>s</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</a>
</span>
<b class="boxbottom"><b class="box4"></b><b class="box3"></b><b class="box2"></b><b class="box1"></b></b>
<br/>

<!-- STYLESHIFTER -->

<b class="boxtop"><b class="box1"></b><b class="box2"></b><b class="box3"></b><b class="box4"></b></b>
<span class="boxcontent">

<!-- Hvid / Sort -->

<span class="boxdown">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">Hvid p&#229; sort</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>

<!--Hvid / Sort END -->
<br />

<!-- Sort / Hvid-->

<a href="/w_index.html" accesskey="o" tabindex="5" title="Sort tekst p&#229; hvid baggrund">
<span class="boxup">
<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>
<span class="itemcontent">S<span class="u">o</span>rt p&#229; hvid</span>
<b class="bottom"><b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b></b>
</span>
</a>

<!-- Sort / Hvid END -->
</span>
<b class="boxbottom"><b class="box4"></b><b class="box3"></b><b class="box2"></b><b class="box1"></b></b>

<!-- STYLESHIFTER END -->

</span>
<span id="page" class="box">
<b class="boxtop"><b class="box1"></b><b class="box2"></b><b class="box3"></b><b class="box4"></b></b>
<span class="boxcontent">
<span class="subject">Siden er under konstruktion!</span>
<br /><br />
<img src="media/jpg/moloharry.jpg" class="center" title="Webmaster" alt="Webmaster" width="163" height="364" />
<br /><br /><br />
<span class="text">Test.</span>
</span>
<b class="boxbottom"><b class="box4"></b><b class="box3"></b><b class="box2"></b><b class="box1"></b></b>
</span>
<? php include("/validation/validate.php") ?>
</div>
</body>
</html>


..således.

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:18

Ps. Prøver liiiige i ASP

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:22

..ikke et hak bedre

<!-- #include file="/validation/validate.inc" -->

..som index.asp

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:24

Flere foreslag?

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:33

Omdøber jeg filen til default.asp ..med samme include ..og sletter begge index filer (index.htm = Dandomains default og index.html = min egen XHTML) med ASP includen indsat:

Kode
<!-- #include file="/validation/validate.inc" -->


..får jeg dette:
Citat
Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------------------

Apache/2.0.59 (FreeBSD) FrontPage/5.0.2.4803 PHP/5.1.6 with Suhosin-Patch Server at www.cssboxing.com Port 80


Hvorfor?

</MOLOKYLE>

Kommentar
Fra : molokyle


Dato : 29-05-07 17:37

Hurtigt sat tilbage til index.html i XHTML ...godt man har et back-up bibliotek herhjemme

</MOLOKYLE>



Kommentar
Fra : molokyle


Dato : 29-05-07 18:09

Svaret kom hér: http://www.kandu.dk/questionhist.aspx?qid=105060

..men tak for hjælpen ...eller 'forsøget' på det

Påæng er DINE

</MOLOKYLE>

Godkendelse af svar
Fra : molokyle


Dato : 29-05-07 18:09

Mange dak for svaret smorch

</MOLOKYLE>

Kommentar
Fra : smorch


Dato : 29-05-07 18:18

Jeg har lige været i haven, så jeg har ikke nået at følge med - der var en langhåret græsplæne 4.0 der skulle nedgraderes

Sæl tak og tak

sMorch

Du har følgende muligheder
Eftersom du ikke er logget ind i systemet, kan du ikke skrive et indlæg til dette spørgsmål.

Hvis du ikke allerede er registreret, kan du gratis blive medlem, ved at trykke på "Bliv medlem" ude i menuen.
Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408924
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste