*jancis38* Posted December 22, 2007 Report Posted December 22, 2007 Tikko uzinstalēju AppServ 2.5.9 versiju, startēju, eju iekšā lapā, un izmet tādu brīnumu: Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Web\www\index.php on line 6 uz 6 rindiņas ir <?php include ("..."); ?> Kas būtu jādara, lai to novērstu?
martins256 Posted December 22, 2007 Report Posted December 22, 2007 servera konfigurācijā ieslēdz URL file-access.
*jancis38* Posted December 22, 2007 Author Report Posted December 22, 2007 servera kofigurācijā? es nezinu kurš fails tas ir. :/
andrisp Posted December 22, 2007 Report Posted December 22, 2007 php.ini allow_urlopen vai kaut kas tamlīdzīgs.
marcis Posted December 22, 2007 Report Posted December 22, 2007 tu drošvien gribi urli inklūdot. tev javag php.ini failā uzlikt allow_url_include 1
*jancis38* Posted December 22, 2007 Author Report Posted December 22, 2007 atradu allow_url_fopen kas arī ir On un neiet.
*jancis38* Posted December 22, 2007 Author Report Posted December 22, 2007 ierakstiju allow_url_include 1 @ php.ini + restartēju datoru, bet nekas nemainijās. es inklūdoju *.php failu.
*jancis38* Posted December 22, 2007 Author Report Posted December 22, 2007 bija jāieraksta: allow_url_include = On Paldies jums!
andrisp Posted December 22, 2007 Report Posted December 22, 2007 99% procentu, ka tev nemaz nevajag izmantot include(). Šodrīt atkliks tajā mērķa lapā ievietot php kodu un tas izpildīsies uz tava servera.
Recommended Posts