morsche,
habe das jetzt mal getestet und im Prinzip funktioniert es auch, bis auf eine Ausnahme:
Wenn ich Parameter innerhalb einer include, require, o.ä. Funktion an die zu öffnende URL anhänge, gibt's eine Fehlermeldung.
PHP-Code:
include("katalog_produktdetails.php?aid=5");
Warning: main(katalog_produktdetails.php?aid=5): failed to open stream: No such file or directory in [...]/statics_produktdetails.php on line 28
Warning: main(): Failed opening 'katalog_produktdetails.php?aid=5' for inclusion (include_path='.') in [...]/statics_produktdetails.php on line 28
Mache ich das Ganze mit
PHP-Code:
include("katalog_produktdetails.php");
also ohne Parameter, funktioniert es, aber das bringt mich halt nicht weiter. Hat jemand eine Idee, wie man also diese PHP Dateien mit Parametern in eine Variable bekommt?
Danke schonmal...
Gruß,
morsche