Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> XHTML problem dotyczacy <?xml version="1.0" enc
nesz
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.01.2004

Ostrzeżenie: (0%)
-----


Witam moj problem jest nastepujacy

mam kod nastepujacy...

Kod
<?xml version="1.0" encoding="iso-8859-2"?>

<?xml-stylesheet type="text/css" href="xhtml.css"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">


wszystko jest niby w porzadku ale problem dotyczy zwlaszcza pierwszej linijki
Kod
<?xml version="1.0" encoding="iso-8859-2"?>



nadal to jest traktowane jako polecenie dla php (jak mysle)
poniewaz strona oddaje ten blad


Kod
Parse error: parse error in /home/domeny/www.nesz.friko.pl/xhtml.htm on line 1



aha serwer tej strony to friko.pl, moze to ich ustawienia??

[xml:1:e2f0a9342c]Szczerze przyznam ze w xhtml chcialem wlasnie zaczac...[/xml:1:e2f0a9342c]

Zawczasu ubiegam "pomocników" dobra wiem ze w xhtml uzywamy malych liter w znacznikach... (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) [/code]
Go to the top of the page
+Quote Post
gulldarek
post
Post #2





Grupa: Zarejestrowani
Postów: 156
Pomógł: 15
Dołączył: 13.09.2003
Skąd: London

Ostrzeżenie: (0%)
-----


Najwyraźniej serwer friko.pl widzi znaczniki <? jako znaczniki php (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)
Go to the top of the page
+Quote Post
rzseattle
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 554
Pomógł: 0
Dołączył: 4.04.2002
Skąd: Tychy

Ostrzeżenie: (0%)
-----


hmm a sproboj na samym poczatku dodac
[php:1:4896703802]<?php
ini_set('short_open_tag', false);
?>[/php:1:4896703802]
Go to the top of the page
+Quote Post
Seth
post
Post #4





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

Ostrzeżenie: (0%)
-----


XHTML >> php

[php:1:01243e8031]
<?php
print '<?xml version="1.0" encoding="iso-8859-2"?>';
print '<?xml-stylesheet type="text/css" href="xhtml.css"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> [/php:1:01243e8031]
Go to the top of the page
+Quote Post
nesz
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.01.2004

Ostrzeżenie: (0%)
-----


(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Dziekuje
Go to the top of the page
+Quote Post
nesz
post
Post #6





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.01.2004

Ostrzeżenie: (0%)
-----


Jeszcze jedno, gdzie mozna z sieci nauczyc sie php aby poczatkujacy nie pytal poczatkujacego

jest jakis dobry kurs online?
Go to the top of the page
+Quote Post
peesz
post
Post #7





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 30.01.2004
Skąd: Piastów

Ostrzeżenie: (0%)
-----


Można i tak:

[php:1:6f9c0e9eb1]<?php
echo <<<END_OF_HEADER
<?xml version="1.0" encoding="iso-8859-2"?>
<?xml-stylesheet type="text/css" href="studium.css"?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Tytuł</title>
<link rel="stylesheet" href="xhtml.css" type="text/css" />
</head>
END_OF_HEADER;
?>[/php:1:6f9c0e9eb1]
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 21:26