|
Posted by Marshall on 12/16/57 11:57
Try to set the actual directory to a variable. Something like:
$dir = getcwd();
and then use:
require($dir.'/hello.php');
Something like this would work.
Ah, by the way, don't let the extension be '.inc', put it with '.php'
in the end, if someone access your file in the browser, the browser
will display it as plain text letting everyone see your script.
Navigation:
[Reply to this message]
|