Hi there got this error
Warning: main(/checkuser.php): failed to open stream: No such file or directory in /home/www/thetruthdiscovered.com/members/aboutus.php on line 2
now the checkuser.php file is located in the root directory , http://www.thetruthdiscovered.com
how do i indicate the location of the file in my .php file 'checkuser.php' ?
Thank you
Elaine
redirecting
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
yea i am , actually , never took a course , and am learning this as i go along , i created three webpages so far and it is working out great ! i am learning alot as i go along,
i no how to reference other pages , i aint that dumb, but it was just that i was in a higher folder hierachy and it would direct it back to the lower one i thought i was typing something wrong,
mindu ,
thank you for helping
Elaine
i no how to reference other pages , i aint that dumb, but it was just that i was in a higher folder hierachy and it would direct it back to the lower one i thought i was typing something wrong,
mindu ,
thank you for helping
Elaine
i always use this:
and anywhere...
never have a problems with including files.
Code: Select all
define('ROOT',$_SERVER['DOCUMENT_ROOT']);Code: Select all
include ROOT.'/folder/something.php';- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
You could also use:
Code: Select all
<?php
define('PAGEROOT', dirname(__FILE__) . '/');
?>