Всем привет!! на сайте 3 скрипта типа:
<script class="source" type="text/javascript">
$('.countdown').downCount({date:'<?php include("time.php"); ?>',offset: +3},function (){
function xx(){$("#start").click();}setTimeout(xx, 1500);
});</script>
в файле <?php include("time.php"); ?> находится три строки с датами и временем
$a = 11/09/2017 08:00:00
$b = 11/09/2017 12:00:00
$c = 11/09/2017 16:00:00
мне нужно чтобы все три скрипта обращались к одному и тому же файлу time.php и считывали с него нужную переменную, таймер 1 считывает значение $a, таймер 2 считывает значение $b, таймер 3 считывает значение $c, но как это сделать при помощи инклудов?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Grasss
Всем привет!! на сайте 3 скрипта типа:
<script class="source" type="text/javascript">
$('.countdown').downCount({date:'<?php include("time.php"); ?>',offset: +3},function (){
function xx(){$("#start").click();}setTimeout(xx, 1500);
});</script>
<script class="source" type="text/javascript">
$('.countdown2').downCount({date:'<?php include("time.php"); ?>',offset: +3},function (){
function xc(){$("#stop").click();}setTimeout(xc, 1500);
});</script>
<script class="source" type="text/javascript">
$('.countdown3').downCount({date:'<?php include("time.php"); ?>',offset: +3},function (){
function xs(){$("#reload").click();}setTimeout(xs, 1500);
});</script>
в файле <?php include("time.php"); ?> находится три строки с датами и временем
$a = 11/09/2017 08:00:00
$b = 11/09/2017 12:00:00
$c = 11/09/2017 16:00:00
мне нужно чтобы все три скрипта обращались к одному и тому же файлу time.php и считывали с него нужную переменную, таймер 1 считывает значение $a, таймер 2 считывает значение $b, таймер 3 считывает значение $c, но как это сделать при помощи инклудов?
ps: не пинайте сильно.
Edited by GrasssLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.