Inline php issues

NoCapApps

New Member
Messages
29
Reaction score
1
Points
3
I'm trying to make a simple echo with php in my members.html file. the php is just commented out. how can I fix it? Can I use the <link> tag to use external php files?

the code I am trying to use looks something like this:
<html>
(html stuff here)
<?php
echo test;
?>
(more html)
</html>
 

ctyrd

Active Member
Messages
283
Reaction score
36
Points
28
I'm trying to make a simple echo with php in my members.html file. the php is just commented out. how can I fix it? Can I use the <link> tag to use external php files?
Your file should be named "file.php", not "file.html".
 
Last edited:

NoCapApps

New Member
Messages
29
Reaction score
1
Points
3
when I change the file the index.php, I get a message saying Forbidden: PHP engine is disable.
 

spacresx

Community Advocate
Community Support
Messages
1,852
Reaction score
160
Points
63
when you blend php and html together you may get unexpected results.;

what happens if you add
<?php
phpinfo();
?>
by itself to test.php
you should see your php info on the page.

you may need to edit your code to suit your php version
 

NoCapApps

New Member
Messages
29
Reaction score
1
Points
3
when you blend php and html together you may get unexpected results.;

what happens if you add
<?php
phpinfo();
?>
by itself to test.php
you should see your php info on the page.

you may need to edit your code to suit your php version
I will try that soon.
 

NoCapApps

New Member
Messages
29
Reaction score
1
Points
3
when you blend php and html together you may get unexpected results.;

what happens if you add
<?php
phpinfo();
?>
by itself to test.php
you should see your php info on the page.

you may need to edit your code to suit your php version
I have tried, but it only bring me to the same error as before.
 

spacresx

Community Advocate
Community Support
Messages
1,852
Reaction score
160
Points
63
im sending a notice to a staff member to review this post.
 

Eric S

Administrator
Staff member
Messages
587
Reaction score
78
Points
28
This should now be resolved as I can see your site loading as intended.
 
Top