Cannot include php file in website

timewo

Notable
Member
Jul 30, 2022
2,764
212
Dex
$0.160
Raw Dex
$1.313
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
 
AgoraForo - Digital Marketplace & Freelancer Forum

fcbetting

Notable
Member
Jun 16, 2022
4,906
358
Dex
$0.010
Raw Dex
$4.720
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
2,079
260
Dex
$0.210
Raw Dex
$0.060
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,764
212
Dex
$0.160
Raw Dex
$1.313
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