Cannot include php file in website

timewo

Notable
Member
Jul 30, 2022
2,093
201
Dex
$0.000
Raw Dex
$0.120
For static websites, I was using the <? include("ad.php"); ?> code for including the advertising code. I have noticed that this command is not working. Is there any alternative command which can be used to display advertising on every page . The webhosting company has not replied to my support ticket
 

fcbetting

Notable
Member
Jun 16, 2022
4,438
345
Dex
$0.010
Raw Dex
$0.150
You are missing keyword php after first question mark sign

Here is correct code
Code:
<?php

include("ad.php");

?>

Also try use code section so code will be easier to read and detect mistakes.
Here is tutorial how to.
1685175658106.png
1685175682830.png
 

saoussen5765

Notable
Member
Jun 17, 2022
1,933
253
Dex
$0.010
Raw Dex
$0.090
For static websites, I was using the <? include("ad.php"); ?> code for including the advertising code. I have noticed that this command is not working. Is there any alternative command which can be used to display advertising on every page . The webhosting company has not replied to my support ticket
It is normal that they do not respond to your ticket since this is the case with most of websites like making a disabled checkbox that you need to enable by inspect element to have the process form working and if you say these technical details to the support team they close the ticket so you need to make inspect element to have things working.
 

timewo

Notable
Member
Jul 30, 2022
2,093
201
Dex
$0.000
Raw Dex
$0.120
You are missing keyword php after first question mark sign

Here is correct code
Code:
<?php

include("ad.php");

?>

Also try use code section so code will be easier to read and detect mistakes.
Here is tutorial how to.
View attachment 1902
View attachment 1903
It was working earlier for several years without any kind of problem, I will make the changes in the code, and check whether it works properly.
 
Back
Top