Hallo liebe Leute, ich habe Local Apache und PHP installiert. Alles läuft einwandfrei,. Nun habe ich ein Script (php) welches im Zugang eine .htacess Datei hat mit folgenden Daten: php_value magic_quotes_gpc On php_value include_path ".:/usr/share/php:../include" Jedes mal wenn ich das Script aufrufe bekomme ich immer den Fehler: Warning: Failed opening 'path_cfg.php' for inclusion (include_path='.:/usr/share/php') in /srv/www/htdocs/picup/admin/admin.php on line 15 Irgendwie kann er offensichtlich nicht auf den in der .htacess Datei befindlichen Pfad greifen. Hat einer noch ne Idde was entweder an der httpd.config oder php.ini fehlen könnte? Da liegt ja wohl offensichtlich der Hase begraben.... Vielen Dank für die Hilfe Tom
Am Sat, 22 Mar 2003 09:02:06 +0100 schrieb Tom Nickels
Hallo liebe Leute,
ich habe Local Apache und PHP installiert. Alles läuft einwandfrei,. Nun habe ich ein Script (php) welches im Zugang eine .htacess Datei hat ~~~~~~~~ Tipfehler? Muss .htaccess heissen.
mfg matthias ps: Bitte nimm den Reply-To im Header raus.
Tom Nickels wrote:
Irgendwie kann er offensichtlich nicht auf den in der .htacess Datei befindlichen Pfad greifen. Hat einer noch ne Idde was entweder an der httpd.config oder php.ini fehlen könnte? Da liegt ja wohl offensichtlich der Hase begraben....
Vielen Dank für die Hilfe
Also: Lesen wir mal die php-Doku: http://www.php.net/manual/en/configuration.changes.php 'Apache configuration files (e.g. httpd.conf) and .htaccess files (You will need "AllowOverride Options" or "AllowOverride All" privileges)' http://httpd.apache.org/docs/mod/core.html#allowoverride Syntax: AllowOverride All|None|directive-type [directive-type] ... Default: AllowOverride All Context: directory http://httpd.apache.org/docs/mod/directive-dict.html#Context Context directory A directive marked as being valid in this context may be used inside <Directory>, <Location>, and <Files> containers in the server configuration files, subject to the restrictions outlined in How Directory, Location and Files sections work. Fragen? Peter
participants (3)
-
Matthias Bernges
-
Peter Wiersig
-
Tom Nickels