|
-
Apr 10th, 2001, 03:44 PM
#1
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
-
Apr 12th, 2001, 06:24 PM
#2
I don't think you can use <script language="php">... That's client side code, and PHP is a server side parser.
-
Apr 12th, 2001, 06:36 PM
#3
Fanatic Member
What about:
<script language="php" runat="server">
</script>
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 12th, 2001, 11:03 PM
#4
PowerPoster
Listen to Wynd. He would know. He is a master of server side JavaScript...Yes JavaScript!
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 13th, 2001, 12:22 AM
#5
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
-
Apr 13th, 2001, 11:18 AM
#6
PowerPoster
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!
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 13th, 2001, 01:23 PM
#7
thanks Russel, that did the trick. I knew it was something simple.
Scoutt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|