Hey, I watched the 3D Buzz php&mysql series like 10 times. Love the tutorials.
I got apache php and mysql very easily set up but I am having a problem with require.
My php works when I do arithmetics, or date, or printing stuff but not with require. This code is an example from 3DBuzz.com tutorials for practicing php.
$connection=mysql_connect($db_host, $db_user, $db_password) or die("error");
This is what I put, and theoretically it should print for me $db_host defined in config/config.php. But it doesn't. It doesn't show anything. Infact if I include this code with HTML documents, the HTML won't show either.
Has the syntax for document_root changed for later versions of PHP?
What is the problem? I even shut off my firewall etc. No good.
The only thing I can think of is my root is in C: so is my PHP folder, my apache and MySQL are in program files in their default places. maybe mysql_connect (); doesnt know where to look for the monitor? help please!