When I tried to connect to MySQL using PHP, it always fails except in an one single folder.
That is there is folder 1 (1 is its name) in the document root.I uploaded some PHP files into that and tried to connect MySQL. N P. I connected successfully.
However when I uploaded some files to document root & its subfolders, I was unable to connect MySQL all the times. But when I uploaded the same files to aforesaid directory [/1] they works fine and connect to MySQL suucessfully. But not outside folder /1/ .
And also even in /1/ folder its only possible to connect the initial DB. But not others. So now I am using 1 DB with many tables.
I think this might be strange. However I’d like to know what causes these type of problems. MySQL ? PHP? or else?
And also I’d like to know, are such files work fine onlly in said 1/ dir, can function properly outside of my server. == Another server ?
Regards.