Re: Connect Problem
| From: | David Robley | Date: | Thu, 09 May 2002 06:41:19 +0000 |
| Subject: | Re: Connect Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96772@lists.php.net to get a copy of this message | ||
In article <20020509043220.21830.qmail@pb1.pair.com>,
wombat@bluetravel.com.au says...
> Hey there,
>
> I can't connect to mysql through a php web page, it isn't talking to it. And
> also $PHP_SELF gives a permission error, access denied. Do I have
> permissions set incorrectly?
>
> This is my php,
>
> <?php
> $dbcnx = @mysql_connect("host", "user", "password");
> if (!$dbcnx) {
> echo ("blah");
> exit();
> }
> ?>
>
> I get no errors, just no response so it obviously no connecting. Changing
> user names or passwords produce the same result. I can connect with a shell
> in the root mysql dir.
> lost..
> Jeremy
It almost sounds like _PHP_ isn't working. Try a simple phpinfo() script
to ensure that you have php functioning correctly.
--
David Robley
Temporary Kiwi!
Quod subigo farinam