Posted by brett on 03/04/07 22:25
On Mar 4, 12:43 pm, PDannyD <dan1...@scenicplace.freeserve.co.uk>
wrote:
> brett wrote:
> > I'm running PHP5 on Windows Vista with mysql 5.2. I have a simple php
> > file with
>
> > <?
> > $dbc = mysql_connect ();
> > ?>
>
> > When I run the file, I get this error:
> > Fatal error: Call to undefined function mysql_connect() in E:\www
> > \mysite\connecttest.php on line 2
>
> > PHP seems to be installed correctly. What could I be doing wrong?
>
> What does phpinfo() bring up? If you can't see MySQL in there then it needs
> to be installed/configured.
I've installed the extensions and configured php.ini. I renamed php-
recommended to php.ini since one didn't exist. I set the
externsion_dir to my "ext" path but phpinfo() keeps showing it as c:
\PHP5, which doesn't exist. Any idea why that is happening?
Thanks.
[Back to original message]
|