php-install Digest 16 Nov 2002 00:45:22 -0000 Issue 1121

Topics (messages 9146 through 9160):

Question about mysql_connect() function
        9146 by: CSParker1.aol.com
        9147 by: Jeffrey_N_Dyke.Keane.com
        9148 by: CSParker1.aol.com
        9149 by: xfesty
        9150 by: Jeffrey_N_Dyke.Keane.com
        9151 by: CSParker1.aol.com
        9152 by: CSParker1.aol.com
        9153 by: Skully
        9154 by: Jeffrey_N_Dyke.Keane.com
        9155 by: CSParker1.aol.com
        9156 by: Jeffrey_N_Dyke.Keane.com

PHP 4.2.3 on debian with XML fails
        9157 by: Andreas Jud

Re: Installation problems with GD :(
        9158 by: Jens Wilke
        9159 by: Hans-Martin Frey

When i go to a page, it asks for me to download
        9160 by: Matt Jaeger

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Is there a setting in php.ini that would disable the mysql_connect() 
function? I have the same exact script on two servers but one of them keeps 
giving me "Call to undefined function: mysql_connect()"

Thanks for any help...

Christopher
--- End Message ---
--- Begin Message ---
i know you need to connect to run other functions, but does you set up
recognize other mysql_functions?  at least giving you an access denied
error, instead of undefined function?


                                                                                       
                             
                    CSParker1@aol.                                                     
                             
                    com                  To:     [EMAIL PROTECTED]             
                             
                                         cc:                                           
                             
                    11/15/2002           Subject:     [PHP-INST] Question about 
mysql_connect() function            
                    09:44 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




Is there a setting in php.ini that would disable the mysql_connect()
function? I have the same exact script on two servers but one of them keeps
giving me "Call to undefined function: mysql_connect()"

Thanks for any help...

Christopher




--- End Message ---
--- Begin Message ---
In a message dated 11/15/2002 9:47:37 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:

> i know you need to connect to run other functions, but does you set up
> recognize other mysql_functions?  at least giving you an access denied
> error, instead of undefined function?

No, it does not...
--- End Message ---
--- Begin Message ---
On Saturday, November 16, 2002, at 01:44 AM, [EMAIL PROTECTED] wrote:

Is there a setting in php.ini that would disable the mysql_connect()
function? I have the same exact script on two servers but one of them keeps
giving me "Call to undefined function: mysql_connect()"
Probably just means that the php on that server isn't compiled with mysql support (by default, it is).

R

Thanks for any help...

Christopher

-- -
Ryan Verner <[EMAIL PROTECTED]>
PGP: 5819 DE5D B5AE 9381 7E60  5B4C 45CC 64DF D3CC EB07

ICQ: 76626240                   IRC: xf / irc.oublinet.net
 PH: +61 415 297 303             EQ: Mummer (Bard), Tholuxe

In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.

--- End Message ---
--- Begin Message ---
so??  No you don't get access denied?  if it does not, i'd reconfigure.
well first check if a phpinfo() call shows mysql is installed?


                                                                                       
                             
                    CSParker1@aol.                                                     
                             
                    com                  To:     [EMAIL PROTECTED]              
                             
                                         cc:     [EMAIL PROTECTED]             
                             
                    11/15/2002           Subject:     Re: [PHP-INST] Question about 
mysql_connect() function        
                    09:48 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




In a message dated 11/15/2002 9:47:37 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:

> i know you need to connect to run other functions, but does you set up
> recognize other mysql_functions?  at least giving you an access denied
> error, instead of undefined function?

No, it does not...




--- End Message ---
--- Begin Message ---
In a message dated 11/15/2002 9:53:15 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:

> if it does not, i'd reconfigure.
> well first check if a phpinfo() call shows mysql is installed?

Im looking over my phpinfo page and don't see anything about mysql...  What 
section would it be under..
--- End Message ---
--- Begin Message ---
In a message dated 11/15/2002 10:09:33 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:

> Itīs really easy...you donīt have any mysql support build in! Say again
> ./configure --your-stuff --with-mysql :-))

This is listed in the "Configure Command" box:

--with-mysql=shared,/opt/bcs'   

--- End Message ---
--- Begin Message ---
It's a block you cant miss.
That means you havent compiled php with mysql

2 ways to compile:

--with-mysql
--with-mysql=/path/to/mysql

This should work

-Skully

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 4:03 PM
Subject: Re: [PHP-INST] Question about mysql_connect() function


> In a message dated 11/15/2002 9:53:15 AM Eastern Standard Time,
> [EMAIL PROTECTED] writes:
>
> > if it does not, i'd reconfigure.
> > well first check if a phpinfo() call shows mysql is installed?
>
> Im looking over my phpinfo page and don't see anything about mysql...
What
> section would it be under..
>
--- End Message ---
--- Begin Message ---
it would be under a section called mysql.  if it is not there then you'll
have to reconfigure.  --with-mysql=/path/to/mysql


                                                                                       
                             
                    CSParker1@aol.                                                     
                             
                    com                  To:     [EMAIL PROTECTED]              
                             
                                         cc:     [EMAIL PROTECTED]             
                             
                    11/15/2002           Subject:     Re: [PHP-INST] Question about 
mysql_connect() function        
                    10:03 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




In a message dated 11/15/2002 9:53:15 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:

if it does not, i'd reconfigure.
well first check if a phpinfo() call shows mysql is installed?

Im looking over my phpinfo page and don't see anything about mysql...  What
section would it be under..




--- End Message ---
--- Begin Message ---
In a message dated 11/15/2002 10:18:04 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:

> >--with-mysql=shared,/opt/bcs'
> 
> Shorten it to --with-mysql will use the internal php mysql support
> Try it :-))

This worked, thank you all for your help...

Christopher
--- End Message ---
--- Begin Message ---
it is the shared peiece....get rid of that and you'll be fine.  there is
another way around this that Rasmus posted a couple weeks ago so you wodn't
have to reconfigure....check the archives of this list.  It was probably
three weeks ago now.  search for mysql or even for [EMAIL PROTECTED]

Jeff


                                                                                       
                             
                    CSParker1@aol.                                                     
                             
                    com                  To:     [EMAIL PROTECTED]             
                             
                                         cc:     [EMAIL PROTECTED]             
                             
                    11/15/2002           Subject:     Re: [PHP-INST] Question about 
mysql_connect() function        
                    10:15 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




In a message dated 11/15/2002 10:09:33 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:

> Itīs really easy...you donīt have any mysql support build in! Say again
> ./configure --your-stuff --with-mysql :-))

This is listed in the "Configure Command" box:

--with-mysql=shared,/opt/bcs'




--- End Message ---
--- Begin Message ---
Hello,

I've tried to install PHP 4.3.2 with xml-support!

./configure & make & make install went fine!

If I try to start apache I've got the following error!

Cannot load /usr/lib/apache/1.3/libphp4.so into server:
/usr/lib/apache/1.3/libphp4.so: undefined symbol: xml_utf8_decode
failed

If I remove the --with-xml=/usr option, apache and php works fine!

I've installed libxml and expact (newest version)! With (--prefix=/usr)

Apache Version: 1.3.23

My ./configure line:

./configure --prefix=/usr --with-apxs=/usr/bin/apxs --with-regex=system --wi
th-config-file-path=/etc/php4/apache --disable-rpath --disable-debug --enabl
e-memory-limit --enable-calendar --enable-sysvsem --enable-sysvshm --enable-
track-vars --enable-trans-sid --enable-bcmath --enable-ctype -with-ndbm --en
able-exif  --enable-ftp --with-gettext  --enable-mbstring --enable-mbstr-enc
-trans --with-curl=shared,/usr --enable-shmop --enable-sockets --enable-wddx
 --with-expat-dir=/usr --with-zlib --with-bz2=/usr --without-pgsql --disable
-static --with-layout=GNU --with-dom=shared,/usr --with-gd=shared,/usr --ena
ble-gd-native-ttf  --with-xpm-dir=shared,/usr/X11R6 --with-imap=shared,/usr 
--with-png-dir=/usr --with-mhash=shared,/usr  --with-sablot=shared,/usr --wi
th-snmp=shared  --with-jpeg-dir=shared,/usr --with-mysql --with-openssl --wi
th-pdflib=/usr --with-interbase=/usr --with-freetype-dir=shared,/usr --with-
ttf=shared,/usr --with-xml=/usr

Thanks, for ideas and solutions!

Andy

PS: Sorry about my english.. :)


--- End Message ---
--- Begin Message ---
David Uzzell wrote:

> Any help you could provide would be great as I ahev spent 2 days on this
> already and I am going round the twist with this one problem.

I spent some days too, the answer was here:
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=ap9h18%24ql4%241%40FreeBSD.csie.NCTU.edu.tw

change method name 'free' in 'gd_free' in
ext/gd/gd_ctx.c and
ext/gd/gd.c

hth, Jens

--- End Message ---
--- Begin Message ---
Hello,

i have the same problem on solaris. Any help would be great

thanxx
Hans-Martin

David Uzzell wrote:

> I have been able to solve most of my install problems with all the ext's
> I need to have install.
>
> ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug
> --enable-pic --enable-shared --enable-inline-optimization
> --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system
> --with-mnogosearch=/usr/local/mnogosearch --with-jpeg-dir=/usr
> --with-png --with-zlib --with-db2 --with-db3 --with-gdbm
> --enable-debugger --enable-magic-quotes --enable-sockets
> --enable-track-vars --enable-yp --enable-ftp --enable-wddx
> --with-mysql=/usr --without-oracle --without-oci8 --with-xml
> --with-imap=/usr/sbin --with-kerberos --with-imap-ssl -with-gd
>
> Is the current configure script which does not fail it finds them all
> and goes through OK
>
> Then you go to make and that's a different challenge.
>
> make[3]: Entering directory `/usr/src/download/php-4.2.3/ext/gd'
> /bin/sh /usr/src/download/php-4.2.3/libtool --silent --mode=compile gcc
> -I. -I/ usr/src/download/php-4.2.3/ext/gd
> -I/usr/src/download/php-4.2.3/main -I/usr/src/ download/php-4.2.3
> -I/usr/include/apache -I/usr/src/download/php-4.2.3/Zend -I/u
> sr/include/imap -I/usr/local/mnogosearch/include -I/usr/include/mysql
> -I/usr/src /download/php-4.2.3/ext/xml/expat  -DLINUX=22 -DEAPI
> -DEAPI_MM -DEAPI_MM_CORE_PA TH=/var/run/httpd.mm
> -I/usr/src/download/php-4.2.3/TSRM -g -O2 -prefer-pic  -c g d.c In file
> included from gd.c:83:
> gd_ctx.c: In function `_php_image_output_ctx':
> gd_ctx.c:70: structure has no member named `free'
> gd_ctx.c:98: structure has no member named `free'
> gd.c: In function `_php_image_type':
> gd.c:1014: structure has no member named `free'
> gd.c:1017: structure has no member named `free'
> gd.c: In function `_php_image_create_from':
> gd.c:1209: structure has no member named `free'
> make[3]: *** [gd.lo] Error 1
> make[3]: Leaving directory `/usr/src/download/php-4.2.3/ext/gd'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/download/php-4.2.3/ext/gd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/download/php-4.2.3/ext'
> make: *** [all-recursive] Error 1
>
> That's were we get to.
>
> I have installed to get this all working so far and confirmed that these
> are the ONLY versions I have of these. freetype-2.1.2 gd-2.0.4
> libpng-1.2.5 zlib-1.1.3-25.7 libjpeg-6b-19
>
> And this is Redhat 7.3 and I am doing the Apache and PHP compile
> manually to get the latest stable relases.
>
> Any help you could provide would be great as I ahev spent 2 days on this
> already and I am going round the twist with this one problem.
>
> Thanks in advance
>
> David Uzzell

--- End Message ---
--- Begin Message ---
i installed the sapi method in win 2kpro im running apache 1.3.x
when i go to my index.php (its a simple test page)
it requests a download. do you know why?

--
Jæger


--- End Message ---

Reply via email to