PHP question regarding require()

idlehands

New Member
Messages
16
Reaction score
0
Points
0
Hi,

I'm trying to use a very simple PHP script on my site; however when I naviagte to the page the script does not operate. It's in the source, it just doesn't seem to want to work.

I'm on intermediate PHP (upgrade pending) and I'm trying to use the require() function, but first i need to use the echo function.

Thanks!

Rob

EDIT: If it helps the page source looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>comment test</title>


</head>
<body>

COMMENT TEST<br>

<br>

<?php echo dirname(__FILE__); ?>
</body>
</html>
 
Last edited:
Top