|
Posted by avenpace@gmail.com on 03/19/06 21:05
> > I got error when using mysql_connect function in my php script.
> > If i set the db host to localhost, it give me that error altough all
> > the user and password that I wrote is true(I can login using that
> > username/passwd using mysql console), but when I change the db host
> > into 127.0.0.1 mysql_connect will work.
> What were you using before?
before I use mysql_connect("localhost","root","password") this not
working but when I use mysql_connect("127.0.0.1","root","password")
will work
>
> > Beside of that I can't make my php script to do I/O operation on
> > dir/file in the apache /var/www though the permision already own by
> > apache uid, even if I gave the permision to 777(just for the testing
> > sake) the I/O operation still wont work.
>
> What happens for a file somewhere else, like /tmp?
Also will break even in /tmp dir, if I execute it using shell with php
command will work, I think mod php in my apache on SuSE 10 has some
problem which I don't understand
Uung
Navigation:
[Reply to this message]
|