Toon posts:

PHP / MySQL probleem..

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb op mijn server Debian Testing draaien en daarop de apache, php4 en mysql-server / mysql-client packages geinstalleerd (uit de testing tree).

Nu is het zo dat Apache met PHP werkt, maar dat PHP geen kennis schijnt te hebben van MySQL:
code:
1
2
Fatal error: Call to undefined function: mysql_connect()
in /home/webserv/public_html/adresboek/functions.php on line 6

:(

Kan ik dit verhelpen zonder dat ik zelf PHP met MySQL ondersteuning moet compileren? Waarom is het pakket niet zowiezo daarmee gecompileerd?

Verwijderd

Topicstarter
Vaag, als ik de phpinfo() functie uitvoer, komt bij het "configure command" wel de volgende switch voor: "--with-mysql=shared,/usr" .. :?

Wat klopt hier niet? Waarom kent 'ie de functie niet?

  • Niek
  • Registratie: Februari 2001
  • Laatst online: 14-07 11:42

Niek

f.k.a. The_Surfer

Je moet even php4-mysql installeren.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
niek@beneden:~$ feta info php4-mysql
Package: php4-mysql
Priority: optional
Section: web
Installed-Size: 50
Maintainer: Petr Cech <cech@debian.org>
Architecture: i386
Source: php4
Version: 3:4.0.5-2
Replaces: php4-cgi-mysql
Depends: libc6 (>= 2.2.3-1), libmysqlclient10, php4 (= 3:4.0.5-2) | php4-cgi (=  3:4.0.5-2)
Filename: pool/main/p/php4/php4-mysql_4.0.5-2_i386.deb
Size: 14664
MD5Sum: 5d4141754c2bb0a7078a39a0d847747e
Description: MySQL module for php4
 This package provides a module for MySQL database connections directly from
 PHP scripts.
 .
 PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
 from C, Java and Perl with a couple of unique PHP-specific features thrown
 in. The goal of the language is to allow web developers to write
 dynamically generated pages quickly.

À vaincre sans péril, on triomphe sans gloire - Pierre Corneille


Verwijderd

Topicstarter
Op woensdag 20 maart 2002 15:10 schreef The_Surfer het volgende:
Je moet even php4-mysql installeren.
Dank U :)

Het werkt 8-)