Re: PHP/MySQL
| From: | Miguel Cruz | Date: | Mon, 10 Jun 2002 05:24:17 +0000 |
| Subject: | Re: PHP/MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101363@lists.php.net to get a copy of this message | ||
On Sun, 9 Jun 2002, Jason Soza wrote:
> When I make a change to the mysql_connect() function in my PHP script,
> then save and reload that page, it doesn't seem to have any effect at
> the time. For example, I don't allow any anonymous access to my MySQL
> server, but I can take out host, user, and password information from
> mysql_connect(), save and reload and it still loads as if the function
> worked.
Apache spawns a bunch of processes, and with each http request you are
(sort of) randomly assigned one. If you get one that you've had before, it
may have some bits of state hanging around from previous requests.
One way to avoid this during debugging is to run Apache in the slower -x
single process mode.
miguel