php noob question includes etc
Posted: Tue Apr 27, 2010 4:20 pm
Hey guys i was coding an object orientated login (in php) and came across a problem i havnt seen before haha ok basically im having problems including files here is my folder structure:
_classes
images
includes
member
scripts
stylesheets
ok everything works perfect! except when the login page redirects the verified user to member i am getting include errors because my files are needed by the classes etc in the root.
is there away to combat this in php for example if such and such a page requests me (meaning the needed include) then my directory should be ../includes/db_settings.php
sorry if this makes no sense but hope someone can help!
_classes
images
includes
member
scripts
stylesheets
ok everything works perfect! except when the login page redirects the verified user to member i am getting include errors because my files are needed by the classes etc in the root.
is there away to combat this in php for example if such and such a page requests me (meaning the needed include) then my directory should be ../includes/db_settings.php
sorry if this makes no sense but hope someone can help!