Türkiye'nin En Eski Webmaster Forumu İyinet'e Hoşgeldiniz!

Şu iki sayfayı bir sayfada nasıl yazarız ?

TheScorpion

0
Onaylı Üye
Üye
Katılım
25 Ocak 2007
Mesajlar
158
Açılan Konu
27
Tepki puanı
0
reklam.php
Kod:
<?php
$host = $_SERVER['HTTP_HOST'];
$dizin = rtrim($_SERVER['PHP_SELF'], '/\\');
if ($host == "www.siteadresi.net")
{
	include("google.html");
}
else
{

}
?>

google.html
Kod:
<script type="text/javascript"><!--
/* 468x60, oluşturulma 23.07.2008 */
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Evt arkadaşlar bu sayfanın tamamını reklam.php dosyasında yazdırmak istiyorum. Mümkün mü ?
 

apostle

0
Onaylı Üye
Üye
Katılım
15 Eylül 2006
Mesajlar
516
Açılan Konu
111
Tepki puanı
0
Konum
BendeBilmiyorum
PHP:
<?php
$host = $_SERVER['HTTP_HOST'];
$dizin = rtrim($_SERVER['PHP_SELF'], '/\\');
if ($host == "www.siteadresi.net")
{
	include("google.html");
?>
<script type="text/javascript"><!--
/* 468x60, oluşturulma 23.07.2008 */
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
}
else
{

}
?>
 

TheScorpion

0
Onaylı Üye
Üye
Katılım
25 Ocak 2007
Mesajlar
158
Açılan Konu
27
Tepki puanı
0
Teşekkürler çalıştı.

reklam.php olarak kaydettiğimde çalıştı fakat gerekli yerlere include ettiğim zaman çalışmıyor. phpbb3 tema dosyalarına include ediyorum. Neden çalışmıyo olabilir acaba ?
 

ozgurrBH

0
Onaylı Üye
Üye
Katılım
21 Temmuz 2008
Mesajlar
0
Açılan Konu
0
Tepki puanı
0
Konum
İSTANBUL 34 !
PHP:
<?php
$host = $_SERVER['HTTP_HOST'];
$dizin = rtrim($_SERVER['PHP_SELF'], '/\\');
if ($host == "www.siteadresi.net")
{
    include("google.html");
?>
<script type="text/javascript"><!--
/* 468x60, oluşturulma 23.07.2008 */
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
}
else
{

}
?>
 

TheScorpion

0
Onaylı Üye
Üye
Katılım
25 Ocak 2007
Mesajlar
158
Açılan Konu
27
Tepki puanı
0
Yukardaki kodu bu hale getirip denemiştim zaten ama yukarda belirttiğim sorunu hâla çözemedim.
 
Üst