Hey guys thanks for all your help so far .. i swear my question are gonna be starting to slow down because i'm understanding more stuff. One thing though -
How do I include a file to be read from another php file ...
like here's the thing.
i want to include
dbconnect.php
into all of my files so whenever i decide to change the username or password, i don't have to change all of my files manually.
i've tried to do the include("FILENAME"); and require_once("FILENAME"); but neither of these seem to work. i've changed teh priviledges of dbconnect.php to 777 to hopefully get rid of any problems there but that didn't fix it.
do you guys have any other ideas on how i could get my file to be opened and read?
thanks and cheers!
-------
How do I include a file to be read from another php file ...
like here's the thing.
i want to include
dbconnect.php
Code:
<?php $dbuser = 'coolThing'; $dbpass = 'coolPass'; ?>
i've tried to do the include("FILENAME"); and require_once("FILENAME"); but neither of these seem to work. i've changed teh priviledges of dbconnect.php to 777 to hopefully get rid of any problems there but that didn't fix it.
do you guys have any other ideas on how i could get my file to be opened and read?
thanks and cheers!
-------