johanes Posted December 23, 2005 Report Share Posted December 23, 2005 (edited) Lieta tāda! Uzstādīju uz sava mājas PC Apehce serveri, Mysql datubāzi un php (pēdējo versiju). Vis itkā iet.... Mysql dqtubāzi vadu ar PhpMyAdmin. bet kad skatos lapu kaut kas līdz galam neiet Warning: require(/meinards/config.php) [function.require]: failed to open stream: No such file or directory in C:\public_html\meinards\includes\head.php on line 12 Fatal error: require() [function.require]: Failed opening required '/meinards/config.php' (include_path='.;C:\php5\pear') in C:\public_html\meinards\includes\head.php on line 12 Varbūt kādam ir bijusi līdzīga problēma un var man palīdzāt? PRIECĪGUS SVĒTKUS Edited December 23, 2005 by johanes Link to comment Share on other sites More sharing options...
Vebers Posted December 23, 2005 Report Share Posted December 23, 2005 Vaina nav konfigurācijā, bet gan skriptā. Tu vēlies iekļaut skriptā neeksistējošu failu (/meinards/config.php) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 23, 2005 Report Share Posted December 23, 2005 johanes--> padomaa logjiski, ja PHP nestraadaatu korekti tad arii PHPMyAdmin neietu visnh tachu veidots ar PHP... Link to comment Share on other sites More sharing options...
johanes Posted December 23, 2005 Author Report Share Posted December 23, 2005 Garām....... Tas fails ir vietā kur viņam jāatridās Garām....... Tas fails ir vietā kur viņam jāatrodās Link to comment Share on other sites More sharing options...
Vebers Posted December 23, 2005 Report Share Posted December 23, 2005 imho, tach to sev saka pats PHP, interputators mosh labaak zina ? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 23, 2005 Report Share Posted December 23, 2005 johanes--> tev tachu skaidri un gaishi uzrakstiits: No such file or directory in C:\public_html\meinards\includes\head.php on line 12 slinkums paskatiities to 12 rindinju? un dodu 100% ka tur ir noraadiits nepareizss celjsh --- /meinards/config.php ----- un tev zem direktorijas includes NAV subdirektorija (meinards\) pieliec priekshaa ( .. ) vai novaac ( / ) ----------- Link to comment Share on other sites More sharing options...
v3rb0 Posted December 23, 2005 Report Share Posted December 23, 2005 kārtējais "visi citi vainīgi un gļukaini, tikai ne es" gadījums? :) Link to comment Share on other sites More sharing options...
johanes Posted December 24, 2005 Author Report Share Posted December 24, 2005 Tā ir vieta kur it kā ir klūda.... <?php $configfile = "$DOCUMENT_ROOT/meinards/config.php"; //Path to config.php file $stylefile = "$DOCUMENT_ROOT/meinards/includes/style.php"; // Path to style.php file $subdir = "$DOCUMENT_ROOT/meinards"; //The directory of the script - no trailing slash ?> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1257"> <? require("$configfile"); require("$stylefile"); Ja kas tad saits atradās uz servera no.lv, vis gāja čirikos.... vot no localhost neiet :( Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 24, 2005 Report Share Posted December 24, 2005 (edited) johanes--> negribas sveetkos lamaaties :( nu noraadi kur tie faili atrodas un viss..... Lai programmetu IR jaabuut vismaz elementaaram zinaashaanam par OS un Failu stuktuuru cit. //Path to config.php file cit/ tev tachu skaidriuzrakstiits --> celjs uz config failu.... Edited December 24, 2005 by Grey_Wolf Link to comment Share on other sites More sharing options...
Klez Posted December 25, 2005 Report Share Posted December 25, 2005 $configfile = "$DOCUMENT_ROOT/meinards/config.php"; //Path to config.php file doc root tev ir piem: c:\web\apache\htdocs a tas skripts head.php tev noteikti staav: c:\web\apache\htdocs\manamegalapa\ $DOCUMENT_ROOT tev vaig noraadiit: c:\web\apache\htdocs\manamegalapa\ tad tev vaidzeetu straadaat! Link to comment Share on other sites More sharing options...
johanes Posted December 26, 2005 Author Report Share Posted December 26, 2005 būs visu jāpārinstelē!!! PhpAdmin sāka rādīt kļūdu ka neatrodot failu. Paldies visiem par palīdzību! īpaši liels paldies Klez Link to comment Share on other sites More sharing options...
Recommended Posts