Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Engime strony
ViP
post 7.08.2003, 16:31:20
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 7.08.2003

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


mam problem - od wczoraj sie zaczołem interesować php , i wykozystalem szablon od KESS'a , ale mam problem , mianowicie zamiast pojawic sie odpowiedni dział , to pokazuje sie sie tylko index.inc , obojetnie na jaki dzial kklikne , tutaj znajduje sie ta strona : http://www.desk.pl/~cs2/nowa/index.php

A tutaj jej kod :
[php:1:7e8ba2eeee]<?php
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=iso-8859-2">
<title>Szablon strony w php</title>
<link rel="stylesheet" href="style.css">
</head>
<body background="images/back.gif">
<p align=center>
<img border="0" src="images/Logo.jpg" width="898" height="96"></p>
<table align="center" border="0" width="828" cellpadding="3">
<tr>
<td width="1" valign="top">
<?php include "includes/menu.inc"; ?>
</td>
<td valign="top" width="247">
<?php if(!isset($id)) {
$id="index";
}
if(file_exists("includes/$id.inc")) {
include "includes/$id.inc";
} else {
echo "Strona niedostępna!";
}
?>
&nbsp;</td>
<?php include "includes/menu_right.inc"; ?>
</td>
</tr>
</table>
<p align=center>copyright &copy; 2002 by <a href=mailto:vip@sk8.pl>Autor</a><br>
wszelkie prawa zastrzeżone</p>
</body>
</html>
?>[/php:1:7e8ba2eeee]

Pomocy !!!! Bede wdzięczny i to bardzo
Go to the top of the page
+Quote Post
cahe
post 7.08.2003, 17:29:22
Post #2





Grupa: Zarejestrowani
Postów: 223
Pomógł: 0
Dołączył: 22.03.2003

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


Cytat
mam problem - od wczoraj sie zaczołem interesować php , i wykozystalem szablon od KESS'a , ale mam problem , mianowicie zamiast pojawic sie odpowiedni dział , to pokazuje sie sie tylko index.inc , obojetnie na jaki dzial kklikne , tutaj znajduje sie ta strona : http://www.desk.pl/~cs2/nowa/index.php

Pomocy !!!! Bede wdzięczny i to bardzo


Być może masz wyłączone register_globals?
Go to the top of the page
+Quote Post
ViP
post 7.08.2003, 17:32:57
Post #3





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 7.08.2003

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


jest wyłaczone - i jak pytalem admina , to nie moze właczyc , da sie to jakos omninac zeby dzialalo questionmark.gif
Go to the top of the page
+Quote Post
KaMeLeOn
post 7.08.2003, 17:35:59
Post #4





Grupa: Zarejestrowani
Postów: 680
Pomógł: 0
Dołączył: 1.10.2002
Skąd: Wrocław

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


Cytat
jest wyłaczone - a pomoze napewno ?

Jeśli są wyłączone odczytujemy je w ten sposób:
[php:1:9b5d0604ac]<?php
if( file_exists('includes/' . $_GET['id'] . '.inc') ) {
include 'includes/' . $_GET['id'] . '.inc';
} else {
echo "Strona niedostępna!";
}
?>[/php:1:9b5d0604ac]
Więcej na ten temat tutaj:
http://forum.php.pl/viewtopic.php?t=789


--------------------
"Czerp z innych, ale nie kopiuj ich. Bądź sobą." Michel Quoist
Go to the top of the page
+Quote Post
ViP
post 8.08.2003, 12:21:44
Post #5





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 7.08.2003

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


Mam małe pytanko - bo na "starym " skrypcie (tym pierwszym) to miałem plik index.inc w folderq includes i było cool , ale teraz on juz przestał funkcjonowac - jak to zrobic ? help sad.gif
Go to the top of the page
+Quote Post
cahe
post 8.08.2003, 17:34:29
Post #6





Grupa: Zarejestrowani
Postów: 223
Pomógł: 0
Dołączył: 22.03.2003

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


[php:1:cc899f8d70]<?php
if( file_exists('includes/' . $_GET['id'] . '.inc') ) {
include 'includes/' . $_GET['id'] . '.inc';
} else {
include('includes/index.inc');
}
?>[/php:1:cc899f8d70]

i już :-)
Go to the top of the page
+Quote Post
ViP
post 9.08.2003, 08:14:51
Post #7





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 7.08.2003

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


DZIĘKI wAM SYSKIM ! jesli sie czegos naucze to postaram sie tez pomuc , ale narazie tylko bede czerpał z forum =]
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 12.07.2025 - 19:49