compiling php

From: Date: Thu, 11 Jan 2001 02:42:48 +0000
Subject: compiling php
Groups: php.install 
Request: Send a blank email to php-install+get-1543@lists.php.net to get a copy of this message
Hi, I've been playing around trying to get php and mysql to work together. I've been trying to compile php as a CGI so that I can alter large databases directly. I'm using PHP4.0.4, MySQL 3.23.30-gamma, RedHat7.0, Intel Celery 633. I've compiled both of the packages. I configured php with the --with-mysql tag pointing to my mysql install directory(/usr/local/mysql). Once a make is done I believe it defaults to putting php in the /usr/local/bin directory. I write a script including "#!/usr/local/bin/php -q" at the top. Next I open my php tags "<?php". I write a simple script to connect to my mysql deamon, queary the database, and return the results. When I run the script it keeps claiming "mysql_connect is undefined". I compiled correctly, why is this happening? Bert

« previous php.install (#1543) next »