Re: mysql_fetch_assoc(...) and include_path problems
| From: | Lars Torben Wilson | Date: | Tue, 10 Oct 2000 06:50:14 +0000 |
| Subject: | Re: mysql_fetch_assoc(...) and include_path problems | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19295@lists.php.net to get a copy of this message | ||
Tiger Quimpo writes:
> hello all,
>
> I'm having some problems and I'm not sure if they're real bugs or if
> I just didn't configure PHP correctly when I built it from source.
>
> my setup is at:
> http://members.xoom.com/TigerQuimpo/phpinfo.html
>
> information that would have identified the actual server
> has been removed. but all the other information is still
> in there.
>
> problem #1:
> mysql_fetch_assoc($row) doesn't work. i get a function
> does not exist error. is this normal for php 4? or does
> it require a specific version of mysql? or does it not work
> if both php4 and php3 are setup in apache?
This function is only available in PHP 4.0.3; it was added on
Sept. 20 2000. Use mysql_fetch_array($result_id, MYSQL_ASSOC); to get
this behaviour in earlier versions.
> problem #2:
> the setup file says that php.ini is in /usr/local/lib.
^^^^^^^
> i *do* have setup.ini in that directory, and it is readable
^^^^^^^^^
> by www (which httpd runs as).
Assuming that's not a typo, that's the problem right there. If that
_is_ a typo, then have you restarted your server? You may need to stop
completely & start again, if restarting alone doesn't do it.
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+