הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בהמרת קוד ל php (https://hosts.co.il/forums/showthread.php?t=101921)

israeli 07-01-13 17:58

עזרה בהמרת קוד ל php
 
איך ממירים קוד של פרסומת גוגל לphp?
PHP קוד:

<script type="text/javascript"><!--
google_ad_client "11111";
google_ad_slot "111111";
google_ad_width 728;
google_ad_height 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> 


Steve-Web 07-01-13 18:22

מזתומרת לקוד של PHP? הקוד של הפרסומות של גוגל צריך לעבוד לך בכל עמוד כי הוא בנוי בג'אווה סקריפט .
בכל מקרה אם תרצה תוכל תמיד להכניס קוד HTML לכל PHP ע"י סגירה של ה PHP ?> להדביק את הקוד ואז להמשיך <? . (תהפוך את הכיוון כתיבה לשמאל ואז זה יציג לך את הסוגר והפתיחה נכון)

Haimz 07-01-13 18:40

תכניס את זה בקוד PHP שלך:
קוד:

echo '<script type="text/javascript"><!--
google_ad_client = "11111";
google_ad_slot = "111111";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> ';


israeli 08-01-13 16:42

ציטוט:

נכתב במקור על ידי Haimz (פרסם 867467)
תכניס את זה בקוד PHP שלך:
קוד:

echo '<script type="text/javascript"><!--
google_ad_client = "11111";
google_ad_slot = "111111";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> ';


תותח:-)


כל הזמנים הם GMT +2. הזמן כעת הוא 16:40.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ