Cannot include php file in website

timewo

Notable
Member
Jul 30, 2022
2,108
204
Dex
$0.000
Raw Dex
$0.240
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,442
345
Dex
$0.010
Raw Dex
$0.180
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,935
254
Dex
$0.010
Raw Dex
$0.110
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,108
204
Dex
$0.000
Raw Dex
$0.240
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