🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16612

Re: Problema novato con PHP/mysql

#16612
From: Ignacio Arenaza
Date: Sun, 02 Apr 2000 00:00
42 lines
1974 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Oscar" == Oscar Manuel <oscar@omgs.es> writes:

    Oscar> Fatal error: Call to unsupported or undefined function
    Oscar> mysql_connect() in /var/www/www_omgs_es/php/test2.php3 on
    Oscar> line 5

Vamos, mas claro no puede ser. Intentas llamar a una funcion
(mysql_connect()) que no esta definida ;-) Se te ha olvidado
configurar PHP para que carge la biblioteca dinamica de mysql al
arrancar, o bien la puedes cargar tu con dl() (si no recuerdo mal el
nombre, hace ya tanto tiempo...).

Algo como:

        dl("mysql.o");  /* No recuerdo si el '.o' habia que ponerlo */

al comienzo de tu script deberia bastar. Si lo vas a usar de forma
habitual, es mas comodo que modifiques el fichero
/etc/php3/apache/php3.ini (suponiendo Debian (por el path) y PHP3 como
modulo de Apache), la seccion llamada "Dynamic Extensions", a�adiendo:

        extension=mysql.o

(asegurate de tener instalado ese modulo ;-)

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html
  A proud member of GULA - http://gula.jet.es/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.4 and Gnu Privacy Guard

iD8DBQE457rwZXLnGT1HLgcRApgaAJ9eG362430jX98300GmxpBAwuMovACfYIul
pmO1hmh1mAX97OAhQfxpfpY=
=c5hL
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87g0t4p53j.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38E67DA3.E326AC5D@omgs.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,cac1b7666e10fc9b
X-Google-Attributes: gidf86c8,public
From: Ignacio Arenaza <inaki.arenaza@jet.es>
Subject: Re: Problema novato con PHP/mysql
Date: 2000/04/02
Message-ID: <87g0t4p53j.fsf@eb2ebu.ampr.org>
X-Deja-AN: 606025969
Content-Transfer-Encoding: 8bit
References: <38E67DA3.E326AC5D@omgs.es>
Organization: Servidor NNTP de eb2ebu.ampr.org
Content-Type: text/plain; charset=iso-8859-1
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.3
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion