![]() |
![]() |
-Gość_Sopel- |
![]()
Post
#1
|
Goście ![]() |
Mam plik index.php
Na poczatku jest define('SERVER', 'http://localhost/Sklep'); include(SERVER."/modules/DataAccess/DataAccess.php"); i w nim sa klasy:
W pliku index.php wywoluje $foo = new DataAccess... Mi sie wydaje ze wszystko jest ok ale wyskakuje blad: Fatal error: Class 'DataAccess' not found in c:\wamp\www\Sklep\index.php on line 87 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
1. plik sie nie includuje -- jesli by sie zaincludowal to mialbys blad ponownej definicji stalej ( define(...))
2. Cytat If "URL fopen wrappers" are enabled in php (which they are in the default configuration), you can specify the file to be included using a URL jesli masz "allow_url_fopen = Off" to nie zainludujesz pliku przez http://... , zrob tak jak juz pisali: lokalnie. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.09.2025 - 23:09 |