php-install Digest 13 Mar 2003 17:29:35 -0000 Issue 1287

Topics (messages 10330 through 10332):

Re: problem accessing MS Access DB
        10330 by: Joshua Groboski

build problem with 4.3.1.
        10331 by: Brian C Hill

PHP 4.3.0 + Apache 1.3.27 + MySQL 3.23.55 on Slackware 8.1
        10332 by: Nigel George

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 ---
Did you setup your DSN?  It seems to me that your connection didn't work
which then caused the exec to fail.

Just a guess.

Joshua Groboski
SAVVIS Communications Inc.
http://www.savvis.net

"Beverly Steiner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I am having problems accessing an MS Access database through PHP and
thought
> maybe I missed something in the installation process.  I set up a System
DSN
> for the database and went back and forth with a member of the PHP database
> mailing list and he can't figure out why it isn't working.
>
> I am running Windows XP, PHP 4.3.1, and Apache 1.3.27.  After installing
PHP
> I copied php4ts.dll and php4apache.dll to my Windows/system32 folder.  I
> copied php-recommended.ini to the Windows folder, renamed it to php.ini
and
> edited the doc_roots line.
>
> Here's my code:
>
> $connection = odbc_connect("mctadb", "username", "") || die("cannot open
> database");
>
> $sql = "SELECT * FROM Meeting";
>
> $result = odbc_exec($connection, $sql) || die("cannot prepare result");
>
> I get the following error message in my browser:
>
> Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource
in
> c:\program files\apache group\apache\htdocs\test2.php on line 30
> cannot prepare result
>
>
> What am I doing wrong?
>
> ----------------------
> Beverly Steiner
> [EMAIL PROTECTED]
>
>



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

        I am building php with the following configure.

/pkg/src/php-4.3.1/configure \
        --prefix=/usr/pkg/php \
        --with-config-file-path=/etc/php/php.ini \
        --with-apxs \
        --without-pear \
        --with-png \
        --with-jpeg \
        --with-ndbm \
        --with-mysql=/usr/pkg/mysql \
        --enable-force-cgi-redirect \
        --enable-exif \
        --enable-track-vars \
        --enable-discard-path

        It builds and installs without incident, but it seems very
broken. No matter how simple the code, it complains - even before I put
the last ?> in. I suspect some kind of charset problem, but I am at a
loss right now.

$ php
<?
echo "Hello";

PHP Parse error:  parse error, unexpected T_WHITESPACE in - on line 2
$

        Note that building with pear causes a core dump during the
install and building with zlib causes apache to core dump when it is
started (since I am building the module, too). Not that it matters
here, but I figured someone is sure to ask. :)

Brian

--- End Message ---
--- Begin Message ---
I'm having some issues compiling PHP. In the subject are my program
versions.... I'm using the following command :

./configure --with-apxs --enable-fast-cgi --with-zlib --enable-bcmath --with
-bz2 --enable-calender --with-gdbm --with-db2 --with-db3 --enable-ctype --en
able-exif --enable-ftp --with-ldap --with-openssl --with-gettext --with-mysq
l=/usr/local/mysql --enable-pic --enable-versioning --enable-trans-sid --ena
ble-track-vars --disable-debug

Which is giving me the following error messages... I hope someone is able to
help me in resolving this issue.

In file included from
/root/packages/src/php-4.3.0/ext/mysql/libmysql/libmysql.c:4:
/root/packages/src/php-4.3.0/ext/mysql/libmysql/global.h:260: warning:
redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
/root/packages/src/php-4.3.0/ext/mysql/libmysql/global.h:261: warning:
redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
In file included from
/root/packages/src/php-4.3.0/ext/mysql/libmysql/libmysql.c:11:
/root/packages/src/php-4.3.0/ext/mysql/libmysql/m_string.h:183: parse error
before `__extension__'
/root/packages/src/php-4.3.0/ext/mysql/libmysql/m_string.h:183: parse error
before `&&'
make: *** [ext/mysql/libmysql/libmysql.lo] Error 1


Thanks in advance





--- End Message ---

Reply via email to