Seite 1 von 1

installationsproblem php preg_match

Verfasst: 04.03.2003 01:45
von lightdesigner
Ich hab folgendes Problem beim Installieren:
Nach dem Aufrum von install.php tut sich zwar kurz am Rechner, aber die Seite bleibt leer.
Im error.log vom Apache ist folgendes zu finden:
[Tue Mar 4 00:36:45 2003] [error] PHP Fatal error: Call to undefined function: preg_match() in /usr/pkg/share/httpd/htdocs/phpbb/phpBB2/install/install.php o
n line 206
[Tue Mar 4 00:36:54 2003] [error] PHP Fatal error: Call to undefined function: preg_match() in /usr/pkg/share/httpd/htdocs/phpbb/phpBB2/install/install.php o
n line 206
[Tue Mar 4 00:37:16 2003] [error] PHP Fatal error: Call to undefined function: preg_match() in /usr/pkg/share/httpd/htdocs/phpbb/phpBB2/install/install.php o
n line 621

Das System ist ein netbsd 1.6 mit Apache 1.3.27, mysql 3.23.49, perl 5.6.1 und php4.1.2

Was stimmt denn da nicht? Und wie kann man das beheben
Danke schon mal im Voraus

Verfasst: 04.03.2003 02:05
von PhilippK
Bist du dir sicher, dass PHP sonst einwandfrei funktioniert? preg_match() ist eigentlich 'ne Standardfunktion...

Gruß, Philipp

Verfasst: 04.03.2003 19:17
von lightdesigner
phpmyadmin funktioniert, wie kann ich php testen?

Verfasst: 04.03.2003 20:21
von PhilippK
lightdesigner hat geschrieben:phpmyadmin funktioniert, wie kann ich php testen?
Wenn phpMyAdmin auf deinem Web-Space funzt, sollte eingentlich auch PHP funktionieren.

Erstell doch mal eine Datei test.php:

Code: Alles auswählen

<?php
// get host name from URL
preg_match("/^(http:\/\/)?([^\/]+)/i",
"http://www.php.net/index.html", $matches);
$host = $matches[2];
// get last two segments of host name
preg_match("/[^\.\/]+\.[^\.\/]+$/",$host,$matches);
echo "domain name is: ".$matches[0]."\n";
?>
und ruf das mal testweise auf.

Gruß, Philipp