daGrevis Posted May 15, 2009 Report Share Posted May 15, 2009 Sveiki! Sasāros ar problēmu, ka saņemu šādu kļūdu atverot lapu. Warning: include() [function.include]: URL file-access is disabled in the server configuration in D:\xampp\htdocs\prototype\includes\core.php on line 48 Warning: include(http://127.0.0.1/prototype/styles/proLite/begin_frame.php) [function.include]: failed to open stream: no suitable wrapper could be found in D:\xampp\htdocs\prototype\includes\core.php on line 48 Warning: include() [function.include]: Failed opening 'http://127.0.0.1/prototype/styles/proLite/begin_frame.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\prototype\includes\core.php on line 48 Welcome on my site... Warning: include() [function.include]: URL file-access is disabled in the server configuration in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include(http://127.0.0.1/prototype/styles/proLite/end_frame.php) [function.include]: failed to open stream: no suitable wrapper could be found in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include() [function.include]: Failed opening 'http://127.0.0.1/prototype/styles/proLite/end_frame.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include() [function.include]: URL file-access is disabled in the server configuration in D:\xampp\htdocs\prototype\includes\core.php on line 48 Warning: include(http://127.0.0.1/prototype/styles/proLite/begin_frame.php) [function.include]: failed to open stream: no suitable wrapper could be found in D:\xampp\htdocs\prototype\includes\core.php on line 48 Warning: include() [function.include]: Failed opening 'http://127.0.0.1/prototype/styles/proLite/begin_frame.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\prototype\includes\core.php on line 48 News system works? (on 2 May) Hmm, looks like yes! :) Warning: include() [function.include]: URL file-access is disabled in the server configuration in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include(http://127.0.0.1/prototype/styles/proLite/end_frame.php) [function.include]: failed to open stream: no suitable wrapper could be found in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include() [function.include]: Failed opening 'http://127.0.0.1/prototype/styles/proLite/end_frame.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\prototype\includes\core.php on line 55 Warning: include() [function.include]: URL file-access is disabled in the server configuration in D:\xampp\htdocs\prototype\includes\core.php on line 41 Warning: include(http://127.0.0.1/prototype/styles/proLite/overall_footer.php) [function.include]: failed to open stream: no suitable wrapper could be found in D:\xampp\htdocs\prototype\includes\core.php on line 41 Warning: include() [function.include]: Failed opening 'http://127.0.0.1/prototype/styles/proLite/overall_footer.php' for inclusion (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\prototype\includes\core.php on line 41 Ok, kļūdām. Tās sāka parādīties, izveidojot multi-language sistēmu, kā arī nomainot... $rootPath = $_SERVER['DOCUMENT_ROOT'] . "/" . $subDirectory . "/"; ...uz... $rootPath = "http://" . $_SERVER['HTTP_HOST'] . "/" . $subDirectory . "/"; Šeit ir mans nepabeigtais freimvorks. http://rapidshare.com/files/233279041/prototype.zip.html Šeit ir core.php... http://codepad.org/hXyHuT75 Paldies jau iepriekšs. Quote Link to comment Share on other sites More sharing options...
marcis Posted May 15, 2009 Report Share Posted May 15, 2009 (edited) URL file-access is disabled in the server configuration - vārdnīcu aizdot? Lieto relatīvās inklūdes. include("../styles/proLite/begin_frame.php"); Edited May 15, 2009 by marcis Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 15, 2009 Author Report Share Posted May 15, 2009 Nu, bet $style visu var mainīties attiecīki konfigurācijai. Quote Link to comment Share on other sites More sharing options...
marcis Posted May 15, 2009 Report Share Posted May 15, 2009 Nu tad attiecīgi konfigurācijai inklūdo failu :) Protams, ne no pilna urļa, bet relatīvi, izejot no attiecīgā faila atrašanās vietas. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 15, 2009 Author Report Share Posted May 15, 2009 Es nezinu vai izdarīju pareizi, bet... $rootPath = "./"; Tad jau sanāk ka nav jēgas taisīt atsevišķu mainīgo, jo tur jau nav kam mainīties, ja? Pareizi saprotu? Quote Link to comment Share on other sites More sharing options...
marcis Posted May 15, 2009 Report Share Posted May 15, 2009 Nu šis tas jau var gan mainīties (: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.