-
I have an html page that I can't use php in. php has to be in my cgi-bin folder
I can't call
<?
include file
?>
I read somewhere you can call it like this
<spript language=php>
</script>
does this work if I like use it for a counter or anything else.
scoutt
-
I don't think you can use <script language="php">... That's client side code, and PHP is a server side parser.
-
What about:
<script language="php" runat="server">
</script>
-
Listen to Wynd. He would know. He is a master of server side JavaScript...Yes JavaScript!
-
I could do it that way as Wynd suggests or I also read that I could do it like this
<!--include "cgi-bin\file.php"-->
but I can't remeber how the inlcude is setup. I think I am missing something using it this way.
Scoutt
-
Well, depending on where the file that you are including is licated, you can use one of the following options:
For files located in the same, or a sub directory:
Code:
<!--#include file="whatever.php"-->
For files located in another directory or the root directory:
Code:
<!---#incude virtual="somedirectory/whatever.php"-->
Hope this helps! ;)
-
thanks Russel, that did the trick. I knew it was something simple.
Scoutt