[FGS] Problem Connection to MySQL
julien.63 at free.fr
julien.63 at free.fr
Thu Jun 1 09:04:28 EDT 2006
Hi,
I'm new in fgs but i had the same problem.
I put this at the beginning of my page :
dl('php_mysql.so');
and it works !
Julien
Selon Mazlan Man <lanzx1979 at yahoo.com>:
> Hi,
>
> I've just installed the fgs-mapserver base package
> fgs-mapserver_phpmapscript_4.8.2-1.2-linux-i386.bin
> and also installed the php_mysql-module 4.4.2
>
> Then I did fgs stop and fgs start
>
> I've restarted apache.
>
> after phpinfo i get this...it seems my newly installed
> module was not loaded
>
> Configure Command './configure'
> '--with-regex=system'
> '--with-freetype-dir=/home/users/gdallaire/fgs-dev/built/freetype'
> '--with-dbase'
> '--prefix=/home/users/gdallaire/fgs-dev/built/php'
>
'--with-mysql=shared,/home/users/gdallaire/fgs-dev/built/mysql-standard-4.1.14-pc-linux-gnu-i686'
> ...etc...
>
> so when run my php script to connect mysql i get this
>
> Call to undefined function: mysql_connect() in
> /home/mazlan/fgs/www/htdocs/testbed/Connections/TestBed.php
> on line 9
>
>
> Then I found a "SOLUTION" that require us to add this
> into php.ini and restart fgs (fgs stop fgs start)
>
> extension=mysql.so
>
> but the problem remain the same ....found that the
> newly added line suddenly missing...it seems that
> apache regenerate the php.ini
>
> So anyone ...please help me..thanks
>
>
>
> Lanzx
>
>
>
>
> ___________________________________________________________
> The all-new Yahoo! Mail goes wherever you go - free your email address from
> your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite
>
More information about the Foss-gis-suite
mailing list