![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 15 Pomógł: 0 Dołączył: 13.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam dziś zacząłem pisać skrypt w z którego wczytuje katalog thema z plikami tekstowymi tz:
otwiera plik patch.php wczytuje z niego folder thema standardowa default następnie jest to dodawane do ścieżki i includowane... a wiec co robie źle? CODE <?php $plik = fopen("admin/patch.php","r"); $czytaj = fread($plik,100); $them = "themes/$czytaj/index.php"; include($them); fclose($plik); ?> błedy na localhost wyskakują takie: CODE Warning: include(themes/default /index.php) [function.include]: failed to open stream: No such file or directory in /var/www/public_html/mzCMS/index.php on line 8 Warning: include() [function.include]: Failed opening 'themes/default /index.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/public_html/mzCMS/index.php on line 8 To tak jak by po default dodawało spacje. Pozdro Ten post edytował Zawiej 15.09.2008, 13:45:22 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 23:00 |