Inline php issues

NoCapApps

Member
Messages
45
Reaction score
2
Points
8
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
956
Reaction score
80
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

Member
Messages
45
Reaction score
2
Points
8
when I change the file the index.php, I get a message saying Forbidden: PHP engine is disable.
 

spacresx

Community Advocate
Community Support
Messages
2,199
Reaction score
195
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

Member
Messages
45
Reaction score
2
Points
8
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

Member
Messages
45
Reaction score
2
Points
8
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
2,199
Reaction score
195
Points
63
im sending a notice to a staff member to review this post.
 

Eric S

Administrator
Staff member
Messages
1,056
Reaction score
145
Points
63
This should now be resolved as I can see your site loading as intended.
 
Top